From: stephen@cubedesigners.com Date: Mon, 28 Sep 2020 13:37:12 +0000 (+0000) Subject: WIP #3881 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=933a96c3f4b2b266d5289227faa3a612a10eab28;p=cubeextranet.git WIP #3881 @0.25 --- diff --git a/inc/ws/Util/html5/slideshow/class.ws.html5.links.php b/inc/ws/Util/html5/slideshow/class.ws.html5.links.php index 4a87c03fb..80ae0e281 100644 --- a/inc/ws/Util/html5/slideshow/class.ws.html5.links.php +++ b/inc/ws/Util/html5/slideshow/class.ws.html5.links.php @@ -2238,8 +2238,6 @@ class slideshowLink extends normalLink public function generateSlideshow() { -// $this->compiler->addJsLib('slick', 'js/libs/slick/slick.min.js'); -// $this->compiler->addLess('slick/slick-bundle'); $this->compiler->addJsLib('splide', 'js/libs/splide/splide.js'); $this->compiler->addLess('fluidbook.slideshow'); @@ -2345,7 +2343,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_json = ($image_info) ? json_encode(['width' => $image_info[0], 'height' => $image_info[1]]) : ''; + $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] : ''; // When displaying thumbnails, they are a fixed size, based on height