SHARE
TWEET

Untitled

a guest Apr 25th, 2013 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Pull in shortcode attributes and set defaults
  2.     $data = extract(shortcode_atts(array(
  3.         'post_type' => 'slideshow',
  4.         'category' => null,
  5.         'order' => 'DESC',
  6.         'orderby' => 'date',
  7.         'width' => '650',
  8.         'height' => '200',
  9.         'id' => 'slider',
  10.         'navigation' => 'true',
  11.         'arrows' => 'true',
  12.                 'effect' => 'slide',
  13.                 'randomize' => 'false',
  14.                 'hoverpause' => 'true',
  15.                 'autoplay' => 'true',
  16.                 'video' => 'false',
  17.                 'slidespeed' => 7000,
  18.                 'animationspeed' => 600,
  19.                 'crop_position' => 'tl',
  20.                 'image_link_class' => '',
  21.                 'image_link_rel' => '',
  22.                 'image_lightbox_class' => 'fancybox',
  23.                 'image_lightbox_rel' => 'group',
  24.                 'image_lightbox_rel_group' => '',
  25.                 'touch' => 'true',
  26.                 'remove_filters' => '',
  27.     ), $atts));
  28.  
  29.         wp_enqueue_script( 'pro-slideshow', plugins_url('js/pro-slideshow.js', __FILE__), array('jquery'), '1.0', true );
  30.     wp_localize_script( 'pro-slideshow','proSlideshowObject',$data );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top