slideshow

Sometimes you want to add a slideshow to your theme showing images from the listings showing on the page. Adding a slideshow is very easy, requiring only a single PHP method:

 <?php
 echo PLS_Slideshow::slideshow(
   array(
    'width' => 610,
    'height' => 320,
    'listings' => 'limit=5&is_featured=true&sort_by=price'
  )
);
?>

This code will add a slideshow using images from 5 featured properties sorted by price. There are many more parameters you can add to the array as shown in the more complete example in the next code block:

echo PLS_Slideshow::slideshow(
  array(
   'animation' => 'fade', // fade, horizontal-slide, vertical-slide, horizontal-push
    'animationSpeed' => 800, // how fast animtions are
    'timer' => true, // true or false to have the timer
    'advanceSpeed' => 4000, // if timer is enabled, time between transitions
    'pauseOnHover' => true, // if you hover pauses the slider
    'startClockOnMouseOut' => true, // if clock should start on MouseOut
    'startClockOnMouseOutAfter' => 500, // how long after MouseOut should the timer start again
    'directionalNav' => true, // manual advancing directional navs
    'captions' => true, // do you want captions?
    'captionAnimation' => 'fade', // fade, slideOpen, none
    'captionAnimationSpeed' => 800, // if so how quickly should they animate in
    'afterSlideChange' => 'function(){}', // empty function
    'bullets' => 'false', // true or false to activate the bullet navigation
    'width' => 620,
    'height' => 300,
    'container_height' => false,
    'context' => '',
    'context_var' => false,
    'featured_option_id' => false,
    'allow_user_slides' => false,
    'user_slides_header_id' => false,
    'listings' => 'limit=5&sort_by=price',
    'data' => false,
    'post_id' => false,
    'post_meta_key' => false,
    'fluid' => false
  )
);