]> _ Git - cubeextranet.git/commitdiff
wait #4407 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 15 Apr 2021 10:28:01 +0000 (10:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 15 Apr 2021 10:28:01 +0000 (10:28 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index c4754371f341efa2edf624fe5397a362df1782d4..348f088ac99456e5436d808d7c074b7d1c095452 100644 (file)
@@ -807,7 +807,7 @@ class htmlMultimediaImage extends wsHTML5Link
         $w = $this->width;
         $h = $this->height;
         $this->copyExternalFile($this->alternative);
-        $alt = '<img class="multimediaimage" data-width="' . $w . '" data-height="' . $h . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
+        $alt = '<img class="multimediaimage"  data-width="' . $w . '" data-height="' . $h . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
         return $alt;
     }
 
@@ -864,6 +864,8 @@ class zoomhdLink extends normalLink
 
 class htmlMultimediaPopupImage extends normalLink
 {
+    public $clickToClose = 0;
+
     public function getURL()
     {
         $this->copyExternalFile($this->alternative);
@@ -876,7 +878,7 @@ class htmlMultimediaPopupImage extends normalLink
         $res = parent::getAdditionnalContent();
         $dim = CubeIT_Image::getimagesize($this->wdir . '/' . $this->alternative);
 
-        $markup = '<div class="multimediaContainer "><img data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $dim[0] . '" height="' . $dim[1] . '" class="multimedia" /></div>';
+        $markup = '<div class="multimediaContainer" data-click-to-close="' . $this->clickToClose . '"><img data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $dim[0] . '" height="' . $dim[1] . '" class="multimedia" /></div>';
         $read = '';
         if ($this->read_mode) {
             $read = ' data-readmode="1"';