From: vincent@cubedesigners.com Date: Wed, 17 Jun 2020 15:20:15 +0000 (+0000) Subject: fix #3714 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b48c6eacdc4b386418d0f4715a231e583c8d7dd3;p=cubeextranet.git fix #3714 @0:10 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index f85517cf4..66b81f54c 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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) . ';'; } }