Ejemplo n.º 1
0
 /**
  * Helper function to print the individual slides
  *
  * @param obj $albumobj Album object
  * @param obj $imgobj Current slide obj
  * @param int $width Slide image width
  * @param int $height Slide image height
  * @param int $cropw Slide image crop width
  * @param int $croph Slide image crop height
  * @param bool $linkslides True or false if the slides should be linked to their image page.
  *                          Note: In carousel mode this means full image links as here slides are always linked to the image page.
  * @param bool $crop True or false to crop the image
  * @param bool $carousel if the slideshow is a carousel so we can enable full image linking (only images allowed!)
  */
 static function printSlide($albumobj, $imgobj, $width, $height, $cropw, $croph, $linkslides, $crop = false, $carousel = false)
 {
     echo getSlide($albumobj, $imgobj, $width, $height, $cropw, $croph, $linkslides, $crop, $carousel);
 }
Ejemplo n.º 2
0
        continue;
    }
    if (!is_array($item)) {
        //find if we should start from specific image
        if ($goToImage == $item) {
            $goToImageIndex = $counter;
        }
        ?>
 
                <div>
                   <img class="picture" src="<?php 
        echo $goToImage == $item || $goToImage == $previousItem ? getSlide($path . "/" . $item) : getThumb($path . "/" . $item);
        ?>
" 
                                        data-src="<?php 
        echo getSlide($path . "/" . $item);
        ?>
"
                                        data-thumb="<?php 
        echo getThumb($path . "/" . $item);
        ?>
"
                                        data-fullimage="<?php 
        echo $base_url . "imageviewer/" . $path . "/" . $item;
        ?>
" 
                                        data-imagename="<?php 
        echo $item;
        ?>
"/> 
                </div>