From 6295df0dd806a61ac38fb6f13dca456aa7e5bb79 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 1 Jun 2023 11:27:47 +0200 Subject: [PATCH] fix #5973 --- src/Links/LayerLink.php | 2 +- src/Links/Link.php | 1 + src/Links/ShowLinkLink.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index df2e7cd..dd6c65f 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Log; class LayerLink extends ImageLink { protected $maxzoom_default = 4; - public $defaultZIndex = 31; + public $defaultZIndex = 30; public function ignore() { return parent::ignore() || $this->isOutsidePage(); diff --git a/src/Links/Link.php b/src/Links/Link.php index c9ff149..446db6a 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -114,6 +114,7 @@ class Link { public $gamifyCoins = 0; public $tooltipColor = null; public $tooltipBackgroundColor = null; + public $transition; protected $role = 'button'; protected $_init; diff --git a/src/Links/ShowLinkLink.php b/src/Links/ShowLinkLink.php index 7472fe2..81bc9d6 100644 --- a/src/Links/ShowLinkLink.php +++ b/src/Links/ShowLinkLink.php @@ -21,7 +21,7 @@ class ShowLinkLink extends NormalLink { public function getAdditionnalContent() { $res = parent::getAdditionnalContent(); $this->close_button = $this->close_button ?: 'none'; - $res .= ' data-showmode="' . $this->target . '" data-showclose="' . $this->close_button . '" data-showid="' . $this->to . '"'; + $res .= ' data-showmode="' . $this->target . '" data-showclose="' . $this->close_button . '" data-showtransition="' . ($this->transition ?: 'fadein') . '" data-showid="' . $this->to . '"'; return $res; } } -- 2.39.5