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;
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;
}
public function getTarget()
{
- return '_blank';
+ return '_popupiframe';
}
public function getDefaultTooltip()