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

index ddf2bddd5441bf5c78ed38d587d93386318515d8..928c873b79473134a87c1d508f5a164c55cd2fc4 100644 (file)
@@ -731,6 +731,12 @@ class tooltipLink extends normalLink
     public function getAdditionnalContent()
     {
         $res = parent::getAdditionnalContent();
+        if ($this->backgroundColor) {
+            $res .= 'data-tooltip-background="' . $this->backgroundColor . '" ';
+        }
+        if ($this->color) {
+            $res .= 'data-tooltip-color="' . $this->color . '" ';
+        }
         $res .= ' data-tooltip-maxwidth="' . $this->compiler->book->parametres->linkTooltipMaxWidth . '" ';
         $res .= ' data-tooltip-touch="1" ';
         return $res;
@@ -1543,8 +1549,8 @@ class inlineSlideshowLink extends slideshowLink
 {
     public function getDepth()
     {
-        if( $this->compiler->book->parametres->inlineSlideshowLibrary==='dummy'){
-            $this->defaultZIndex=30;
+        if ($this->compiler->book->parametres->inlineSlideshowLibrary === 'dummy') {
+            $this->defaultZIndex = 30;
         }
         return parent::getDepth();
     }