]> _ Git - cubeextranet.git/commitdiff
fix #3714 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 17 Jun 2020 15:20:15 +0000 (15:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 17 Jun 2020 15:20:15 +0000 (15:20 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index f85517cf41b71917c647ba13362fd80d8e324a72..66b81f54cd1c56b1b0097467dbf0be99452bc811 100644 (file)
@@ -677,7 +677,7 @@ class htmlMultimediaPopupImage extends normalLink
 
 class contentLink extends wsHTML5Link
 {
-    public $zindex = 1;
+    public $zindex = 0;
 
     public function getHTMLContainerClass()
     {
@@ -692,6 +692,9 @@ class contentLink extends wsHTML5Link
         if (!isset($variables['type']) || !$variables['type']) {
             $variables['type'] = 'none';
         }
+        if (isset($variables['zindex'])) {
+            $this->zindex = $variables['zindex'];
+        }
         $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
 
 
@@ -731,7 +734,10 @@ class contentLink extends wsHTML5Link
 
     public function getCSSZIndex()
     {
-        return '';
+        if ($this->zindex === 0) {
+            return '';
+        }
+        return 'z-index:' . ($this->zindex + 500) . ';';
     }
 }