public function getHTMLContent()
{
$class = $this->getClasses();
+ $attrs = '';
if ($this->display_area) {
- $class[] = 'displayArea';
+ if ($this->compiler->getSetting('linksAnimationLayer', 'top') === 'top' || $this->compiler->getSetting('linksAnimation', 'fade') === 'fade') {
+ $class[] = 'displayArea';
+ $attrs .= ' data-animation="' . $this->compiler->getSetting('linksAnimation', 'fade') . '"';
+ } else {
+ $attrs .= ' data-display-area=""';
+ }
}
- $attrs = '';
if (count($class)) {
$attrs .= ' class="' . implode(' ', $class) . '"';
}
$attrs .= $this->getTooltipAttribute();
- if ($this->blinkdelay>0) {
+ if ($this->blinkdelay > 0) {
$attrs .= ' data-blinkdelay="' . intval($this->blinkdelay) . '"';
}
return '<a href="' . $this->getURL() . '" data-type="' . $this->type . '" target="' . $this->getTarget() . '"' . $attrs . $this->getAdditionnalContent() . $this->getTrack() . '>' . $this->getInnerContent() . '</a>';
return '_self';
}
+ /**
+ * @throws \Exception
+ */
+ public function getDisplayAreaLink($color, $opacity, $duration)
+ {
+ $init = $this->_init;
+ $init['type'] = self::COLOR;
+ $init['to'] = $color;
+ $init['zindex'] = 29;
+ $init['uid'] .= '_da';
+ $init['id'] .= '_da';
+ $init['image_rollover'] = 'type=reveal
+direction=right
+ease=power1.easeOut
+opacity=' . $opacity . '
+duration=' . $duration . '
+delay=0.5
+borderRadius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . '
+---------------
+type=fadeout
+ease=power1.easeOut
+duration=' . $duration . '
+delay=' . ($duration + 0.5);
+ return self::getInstance($init['id'], $init, $this->compiler);
+ }
}