]> _ Git - cubeextranet.git/commitdiff
wip #3901 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Sep 2020 13:56:51 +0000 (13:56 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Sep 2020 13:56:51 +0000 (13:56 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 35231b8d63e3e158a85385f3dca7d504d1e93392..7de817732ae56a8675a6d8e1cdf3616c6945be5f 100644 (file)
@@ -1280,14 +1280,15 @@ class layerLink extends imageLink
 
     public function getCSS()
     {
-        zoomLink::generateImage($this->getZoomAttributes(), $this->compiler, 'layerlink', 'layer');
-        return 'background-image:url(../links/layer_' . $this->id . '.jpg);background-size:100% 100%;background-repeat:no-repeat;';
+        $attributes = $this->getZoomAttributes();
+        zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
+        return 'background-image:url(../links/layer_' . $attributes['id'] . '.jpg);background-size:100% 100%;background-repeat:no-repeat;';
     }
 
     public function getZoomAttributes()
     {
         return [
-            'id' => $this->id,
+            'id' => $this->uid,
             'page' => $this->page,
             'maxzoom' => $this->maxzoom_default,
             'width' => round($this->width),
@@ -1415,8 +1416,9 @@ class downloadPortionLink extends fileLink
 {
     public function getURL()
     {
-        zoomLink::generateImage($this->getZoomAttributes(), $this->compiler, 'downloadportion', 'downloadportion');
-        return 'data/links/downloadportion_' . $this->id . '.jpg';
+        $attributes = $this->getZoomAttributes();
+        zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+        return 'data/links/downloadportion_' . $attributes['id'] . '.jpg';
     }
 
     public function getZoomAttributes()
@@ -2046,7 +2048,7 @@ class zoomLink extends normalLink
     public function getZoomAttributes()
     {
         return [
-            'id' => $this->id,
+            'id' => $this->uid,
             'page' => $this->page,
             'maxzoom' => empty($this->to) ? $this->maxzoom_default : $this->to,
             'group' => implode(',', $this->getGroups()),