From 4e819ffe6d32434431ddf2b9605a6f90f0d3528a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 21 Jan 2021 10:54:07 +0000 Subject: [PATCH] wait #4219 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 ddf2bddd5..928c873b7 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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(); } -- 2.39.5