]> _ Git - cubeextranet.git/commitdiff
wait #4093 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 24 Nov 2020 10:09:15 +0000 (10:09 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 24 Nov 2020 10:09:15 +0000 (10:09 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index f5cc634b6f26ba1784f110fdc82be8c5589fde50..d64a05f4e67404f0a365ec393c36ff6813e8c332 100644 (file)
@@ -2355,9 +2355,9 @@ class slideshowLink extends normalLink
 
     public function generateSlideshow($context)
     {
-        $this->compiler->addSlideshowLibrary($context==='inline');
+        $this->compiler->addSlideshowLibrary($context === 'inline');
 
-        $this->allowed_extensions = ['jpg', 'png', 'jpeg', 'gif'];
+        $this->allowed_extensions = ['jpg', 'png', 'jpeg', 'gif', 'svg'];
 
         $slideshowID = 'slideshow_' . $this->uid;
         $XML_path = $this->path_absolute . '/slideshow.xml'; // Optional file so it may not exist
@@ -2430,7 +2430,7 @@ class slideshowLink extends normalLink
         }
 
         $lib = $context === 'popup' ? $this->compiler->book->parametres->popupSlideshowLibrary : $this->compiler->book->parametres->inlineSlideshowLibrary;
-        $res = '<div class="fb-slideshow-wrapper ' . $lib . ' fb-slideshow-'.$context.'">' . $res . '</div>';
+        $res = '<div class="fb-slideshow-wrapper ' . $lib . ' fb-slideshow-' . $context . '">' . $res . '</div>';
 
         return $res;
     }
@@ -2475,7 +2475,7 @@ class slideshowLink extends normalLink
 
         foreach ($slides as $slide) {
             $image_path_relative = $this->compiler->vdir->relativePath($slide['path']);
-            $image_info = getimagesize($slide['path']);
+            $image_info = CubeIT_Image::getimagesize($slide['path']);
             $image_info_json = ($image_info) ? json_encode(['width' => $image_info[0], 'height' => $image_info[1], 'ratio' => round($image_info[0] / $image_info[1], 4)]) : '';
             $image_dimensions = ($image_info) ? $image_info[3] : '';