$css .= $this->getCSSClipPath();
$css .= $this->getCSS();
$css .= '}';
- $css.=$this->getExtraCSS();
+ $css .= $this->getExtraCSS();
if ($this->cursor) {
$css .= '#l_' . $this->id . ' a{cursor:' . $this->cursor . ' !important;}';
}
return '';
}
- public function getExtraCSS(){
+ public function getExtraCSS()
+ {
return '';
}
{
return (!$this->animation_type || $this->animation_type === 'default') ? $this->compiler->getSetting('linksAnimation', 'fade') : $this->animation_type;
}
+
+ public function getDisplayArea()
+ {
+ return $this->animation_type == '1' || $this->display_area === 'default' ? $this->compiler->getSetting('linksDisplayArea', 'fill') : $this->display_area;
+ }
}
$attrs = '';
if ($this->compiler->getSetting('linksAnimationLayer', 'top') === 'top') {
$attrs .= ' data-animation="' . $this->getAnimationType() . '"';
- $attrs .= ' data-display-area="' . $this->display_area . '" ';
+ $attrs .= ' data-display-area="' . $this->getDisplayArea() . '" ';
} else {
- $attrs .= ' data-display-area="none" data-display-area-related=" ' . $this->display_area . '" ';
+ $attrs .= ' data-display-area="none" data-display-area-related=" ' . $this->getDisplayArea() . '" ';
}
if (count($class)) {
{
$animDuration = 0.4;
+ $borderRadius = $this->compiler->getSetting('linksRoundedCorners', 0) * 2;
+
$init = $this->_init;
$init['type'] = self::COLOR;
$init['to'] = $color;
opacity=' . $opacity . '
duration=' . $animDuration . '
delay=' . $delay . '
-borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . '
+borderradius=' . $borderRadius . '
---------------
type=fadeout
ease=power1.easeOut
} else if ($this->getAnimationType() === 'fade') {
$init['image_rollover'] = 'type=fadein
ease=power1.easeOut
+opacity=' . $opacity . '
duration=' . $animDuration . '
delay=' . $delay . '
-borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . '
+borderradius=' . $borderRadius . '
---------------
type=fadeout
ease=power1.easeOut
} else if ($this->getAnimationType() === 'none') {
$init['image_rollover'] = 'type=keephidden
duration=0.5
-borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2);
+borderradius=' . $borderRadius;
}
return self::getInstance($init['id'], $init, $this->compiler);