]> _ Git - cubeextranet.git/commitdiff
fix #3935 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 6 Oct 2020 16:30:36 +0000 (16:30 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 6 Oct 2020 16:30:36 +0000 (16:30 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 18027292d7c4d656a44545d4a9d3b615b0d530ff..933f1270e7cdf3fe06af9d333851fb09c2aa422c 100644 (file)
@@ -1308,7 +1308,9 @@ class layerLink extends imageLink
     public function getCSS()
     {
         $attributes = $this->getZoomAttributes();
-        zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
+        if (!$this->rightClone) {
+            zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
+        }
         return 'background-image:url(../links/layer_' . $attributes['id'] . '.jpg);background-size:100% 100%;background-repeat:no-repeat;';
     }
 
@@ -1444,7 +1446,9 @@ class downloadPortionLink extends fileLink
     public function getURL()
     {
         $attributes = $this->getZoomAttributes();
-        zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+        if (!$this->rightClone) {
+            zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+        }
         return 'data/links/downloadportion_' . $attributes['id'] . '.jpg';
     }
 
@@ -2087,7 +2091,9 @@ class zoomLink extends normalLink
             $res .= ' data-' . $key . '="' . htmlspecialchars($val, ENT_QUOTES) . '"';
         }
 
-        self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom');
+        if(!$this->rightClone) {
+            self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom');
+        }
 
         return $res;
     }