bSuite v.3 or greater). Insert the following in your post content to create the slideshow (accepts any number of photos, seperate photo URLs with space or newline): [[slideshow|height=375px|http://path/to/photo/1.jpg http://path/to/photo/2.jpg]]
Version: .01
Author: Casey Bisson
Author URI: http://maisonbisson.com/blog/
*/
add_filter('bsuite_tokens', 'bsuite_slideshow_token_register');
function bsuite_slideshow_token_register($tokens){
$tokens['slideshow'] = 'bsuite_slideshow_token_replace';
return($tokens);
}
function bsuite_slideshow_token_replace($args){
list($args, $images) = explode('|', $args, 2);
$defaults = array(
'height' => '357px', 'width' => '100%'
);
$args = wp_parse_args( $args, $defaults );
$images = array_filter(preg_split('/[\s|\n|\r|\t]/', trim($images)));
if(!is_array($images))
return NULL;
add_action('wp_footer', 'bsuite_slideshow_footer');
$return = $script . '