$slides = [];
// If the zip file contained a slideshow.xml file, use that for fetching images and their captions
+ $thumbnails = true;
if (file_exists($XML_path)) {
$slideshow_XML = simplexml_load_file($XML_path);
$slides[] = ['caption' => $img->_caption, 'path' => $full_path];
}
+ $thumbnails = $slideshowData->_thumbnails !== 'false' && $slideshowData->_thumbnails;
} else {
// Or by default, just get all the images that were in the zip file...
$afiles = CubeIT_Files::getRecursiveDirectoryIterator($this->path_absolute);
$res .= '</div>'; // .fb-slideshow-slide
}
- $res = '<div class="fb-slideshow" id="' . $slideshowID . '">' . $res . '</div>';
+ $res = '<div class="fb-slideshow" id="' . $slideshowID . '" data-thumbnails="' . ($thumbnails ? '1' : '0') . '">' . $res . '</div>';
$res .= '<script>';
$res .= 'fluidbook.slideshow.initSlideshow("' . $slideshowID . '");';