public function getAdditionnalContent() : string {
$res = parent::getAdditionnalContent();
+
$res .= ' data-text="' . htmlspecialchars($this->to, ENT_QUOTES) . '" ';
+ $res .= ' data-icon-x="' . $this->icon_x . '" data-icon-y="' . $this->icon_y . '"';
+
return $res;
}
public function getInnerContent() : string {
+ $attrs = $this->getTooltipAttribute($this->to);
+ return '<div class="image"></div><div class="infos" ' . $attrs . '></div>';
+ }
+
+ public function getHTMLContent() : string
+ {
$class = $this->getClasses();
$attrs = '';
+
if (count($class)) {
$attrs .= ' class="' . implode(' ', $class) . '"';
}
- $attrs .= $this->getTooltipAttribute($this->to);
- return '<a href="#" data-type="' . $this->type . '"' . $attrs . $this->getAdditionnalContent() . '></a>';
- }
- public function getHTMLContent() : string
- {
- return '<div class="image"></div>'.$this->getInnerContent();
+ return '<a href="#" data-type="' . $this->type . '"' . $attrs . $this->getAdditionnalContent() . '>' . $this->getInnerContent() . '</a>';
}
}
public $attachLeft = false;
+ public $icon_x = 100;
+
+ public $icon_y = 100;
+
protected static $_encryptedTypes = [14, 15, 35, 39];
protected static $_encryptedAttributes = ['image_rollover'];