// 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) {
}
$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;
}
if ($link['type'] == 18) {
- $link['infobulle'] = $link['to'];
+ $link['tooltip'] = $link['to'];
$link['to'] = '';
}
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);
public $display_area;
public $read_mode;
public $group;
- public $infobulle;
+ public $tooltip;
public $blendmode = "normal";
public $extra;
public $id;
}
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;
}
public function getAdditionnalContent()
{
$res = parent::getAdditionnalContent();
- $res .= ' data-text="' . htmlspecialchars($this->infobulle, ENT_QUOTES) . '" ';
+ $res .= ' data-text="' . htmlspecialchars($this->tooltip, ENT_QUOTES) . '" ';
return $res;
}