Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pull in shortcode attributes and set defaults
- $data = extract(shortcode_atts(array(
- 'post_type' => 'slideshow',
- 'category' => null,
- 'order' => 'DESC',
- 'orderby' => 'date',
- 'width' => '650',
- 'height' => '200',
- 'id' => 'slider',
- 'navigation' => 'true',
- 'arrows' => 'true',
- 'effect' => 'slide',
- 'randomize' => 'false',
- 'hoverpause' => 'true',
- 'autoplay' => 'true',
- 'video' => 'false',
- 'slidespeed' => 7000,
- 'animationspeed' => 600,
- 'crop_position' => 'tl',
- 'image_link_class' => '',
- 'image_link_rel' => '',
- 'image_lightbox_class' => 'fancybox',
- 'image_lightbox_rel' => 'group',
- 'image_lightbox_rel_group' => '',
- 'touch' => 'true',
- 'remove_filters' => '',
- ), $atts));
- wp_enqueue_script( 'pro-slideshow', plugins_url('js/pro-slideshow.js', __FILE__), array('jquery'), '1.0', true );
- wp_localize_script( 'pro-slideshow','proSlideshowObject',$data );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement