From 7e527a727c6490b924c0fb8bcb1728b306c4f249 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 28 Jan 2021 12:04:46 +0000 Subject: [PATCH] wait #4219 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 14 ++++++++++++-- 1 file changed, 12 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 928c873b7..fca24f5a1 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -467,6 +467,12 @@ class wsHTML5Link if ($this->maxWidth > 0) { $res .= ' data-max-width="' . $this->maxWidth . '"'; } + if ($this->tooltipBackgroundColor) { + $res .= 'data-tooltip-background="' . $this->tooltipBackgroundColor . '" '; + } + if ($this->tooltipColor) { + $res .= 'data-tooltip-color="' . $this->tooltipColor . '" '; + } return $res; @@ -737,7 +743,11 @@ class tooltipLink extends normalLink if ($this->color) { $res .= 'data-tooltip-color="' . $this->color . '" '; } - $res .= ' data-tooltip-maxwidth="' . $this->compiler->book->parametres->linkTooltipMaxWidth . '" '; + if ($this->tooltipMaxWidth) { + $res .= ' data-tooltip-maxwidth="' . $this->tooltipMaxWidth . '" '; + } else { + $res .= ' data-tooltip-maxwidth="' . $this->compiler->book->parametres->linkTooltipMaxWidth . '" '; + } $res .= ' data-tooltip-touch="1" '; return $res; } @@ -1984,7 +1994,7 @@ class wescoLink extends normalLink public function getTarget() { - return '_blank'; + return '_popupiframe'; } public function getDefaultTooltip() -- 2.39.5