]> _ Git - cubeextranet.git/commitdiff
fix #3110
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 4 Oct 2019 14:47:51 +0000 (14:47 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 4 Oct 2019 14:47:51 +0000 (14:47 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index e49b0d48ace2f369451bdbd5e19afaf2454b9647..c36b520bde3eeb1a51d8e4593bd94f37611c8935 100644 (file)
@@ -1938,6 +1938,7 @@ class slideshowLink extends normalLink
 
         $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);
@@ -1947,6 +1948,7 @@ class slideshowLink extends normalLink
                 $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);
@@ -1976,7 +1978,7 @@ class slideshowLink extends normalLink
             $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 . '");';