public $borderColor = '#ffffff';
public $maxWidth = 0;
public $wdir;
+ public $initialOrder = 0;
public $gamifyCoins = 0;
public $tooltipColor = null;
public $tooltipBackgroundColor = null;
$this->init();
}
+ /**
+ * @param int $initialOrder
+ */
+ public function setInitialOrder(int $initialOrder): void
+ {
+ $this->initialOrder = $initialOrder;
+ }
+
+ /**
+ * @return int
+ */
+ public function getInitialOrder(): int
+ {
+ return $this->initialOrder;
+ }
+
public function getDepth()
{
if ($this->zindex == -1 || null === $this->zindex || !$this->zindex) {
public function getCSSZIndex()
{
- $zindex = (($this->getDepth() + 1) * 1000) - min(999, round(($this->width * $this->height) / 300));
+ $zindex = $this->getAddZIndex() + (($this->getDepth() + 1) * 1000) - min(999, round(($this->width * $this->height) / 300));
return 'z-index:' . $zindex . ';';
}
+ public function getAddZIndex()
+ {
+ return 0;
+ }
+
public function moveOnEvenPage()
{
return false;
class contentLink extends wsHTML5Link
{
public $defaultZIndex = 30;
+ public $animZindex = 0;
public function getHTMLContainerClass()
{
$res = parent::getAdditionnalContent();
$animations = self::parseAnimations($this->image_rollover);
foreach ($animations as $animation) {
-// if (isset($animation['zindex'])) {
-// $this->defaultZIndex = $animation['zindex'];
-// }
+ if (isset($animation['zindex'])) {
+ $this->animZindex = $animation['zindex'];
+ }
}
$res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" ';
if ($this->_isHiddenFirst($animations)) {
}
return false;
}
+
+ public function getAddZIndex()
+ {
+ return parent::getAddZIndex() + $this->animZindex;
+ }
}
class eventOverlayLink extends wsHTML5Link