From: Vincent Vanwaelscappel Date: Mon, 15 May 2023 16:52:26 +0000 (+0200) Subject: wait #5932 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d82137ddb1a161da55fea518c446ff906794b230;p=fluidbook_tools.git wait #5932 @0.75 --- diff --git a/src/Compiler/Links.php b/src/Compiler/Links.php index 709b15e..2518c08 100644 --- a/src/Compiler/Links.php +++ b/src/Compiler/Links.php @@ -184,7 +184,7 @@ trait Links { // Make old "aftersearch" link compatible with new "extra" menu option by extracting link URL if ($link->page == 'aftersearch') { $this->config->afterSearchLink = $link->to; - $this->config->afterSearchTooltip = $link->infobulle; + $this->config->afterSearchTooltip = $link->tooltip; } if (strpos($link->page, 'link_') === 0) { @@ -264,7 +264,7 @@ trait Links { } $link = ['uid' => self::makeUID()]; - $cols = ['page' => '', 'left' => '', 'top' => '', 'width' => '', 'height' => '', 'type' => '', 'to' => '', 'target' => '_blank', 'video_loop' => true, 'video_auto_start' => true, 'video_controls' => true, 'video_sound_on' => true, 'infobulle' => '', 'image_rollover' => '', 'numerotation' => 'physical', "inline" => true]; + $cols = ['page' => '', 'left' => '', 'top' => '', 'width' => '', 'height' => '', 'type' => '', 'to' => '', 'target' => '_blank', 'video_loop' => true, 'video_auto_start' => true, 'video_controls' => true, 'video_sound_on' => true, 'tooltip' => '', 'image_rollover' => '', 'numerotation' => 'physical', "inline" => true]; $k = 0; @@ -284,7 +284,7 @@ trait Links { } if ($link['type'] == 18) { - $link['infobulle'] = $link['to']; + $link['tooltip'] = $link['to']; $link['to'] = ''; } diff --git a/src/Links/CustomLink.php b/src/Links/CustomLink.php index b265b50..f105db6 100644 --- a/src/Links/CustomLink.php +++ b/src/Links/CustomLink.php @@ -46,7 +46,7 @@ class CustomLink extends NormalLink if ($e[0] == '10doigts') { $init['to'] = self::_getURL($init['to']); $init['iframeType'] = '10doigts'; - $init['infobulle'] = 'Voir le produit'; + $init['tooltip'] = 'Voir le produit'; return new IFramePopupLink($id, $init, $compiler); } return new CustomLink($id, $init, $compiler); diff --git a/src/Links/Link.php b/src/Links/Link.php index 69f2f96..8d224e2 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -93,7 +93,7 @@ class Link { public $display_area; public $read_mode; public $group; - public $infobulle; + public $tooltip; public $blendmode = "normal"; public $extra; public $id; @@ -510,13 +510,13 @@ class Link { } public function getTooltip() { - if ($this->infobulle === null || !$this->infobulle) { - if ($this->getDefaultTooltip() === false) { + if (!$this->tooltip) { + if (!$this->getDefaultTooltip()) { return ''; } return '~' . $this->getDefaultTooltip(); } - return $this->infobulle; + return $this->tooltip; } diff --git a/src/Links/TextPopupLink.php b/src/Links/TextPopupLink.php index cac0fe3..3f7fe07 100644 --- a/src/Links/TextPopupLink.php +++ b/src/Links/TextPopupLink.php @@ -12,7 +12,7 @@ class TextPopupLink extends NormalLink public function getAdditionnalContent() { $res = parent::getAdditionnalContent(); - $res .= ' data-text="' . htmlspecialchars($this->infobulle, ENT_QUOTES) . '" '; + $res .= ' data-text="' . htmlspecialchars($this->tooltip, ENT_QUOTES) . '" '; return $res; }