class contentLink extends wsHTML5Link
{
- public $zindex = 1;
+ public $zindex = 0;
public function getHTMLContainerClass()
{
if (!isset($variables['type']) || !$variables['type']) {
$variables['type'] = 'none';
}
+ if (isset($variables['zindex'])) {
+ $this->zindex = $variables['zindex'];
+ }
$res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
public function getCSSZIndex()
{
- return '';
+ if ($this->zindex === 0) {
+ return '';
+ }
+ return 'z-index:' . ($this->zindex + 500) . ';';
}
}