Example #1
0
?>
" class="thb-slideshow flexslider" data-id="<?php 
echo $slideshow->getId();
?>
">
	<ul class="slides">
		<?php 
foreach ($slideshow->getSlides() as $slide) {
    ?>

			<?php 
    if ($slide['type'] == 'image') {
        if ($slideshow_smooth_height) {
            $img = $slide['url'];
        } else {
            $img = thb_get_resized_image($slide['id'], $slideshow_width, $slideshow_height, true);
        }
    } else {
        $video_data = thb_get_attributes(array('fixed_height' => $slideshow_height, 'fixed_width' => $slideshow_width));
    }
    ?>

			<li class="slide" data-thumb="<?php 
    echo $slide['thumb'];
    ?>
" data-type="<?php 
    echo $slide['type'];
    ?>
">
				<?php 
    if ($slide['type'] == 'image') {
 function thb_resize_image($id, $width, $height, $crop = true)
 {
     echo thb_get_resized_image($id, $width, $height, $crop = true);
 }