From: Vincent Vanwaelscappel Date: Tue, 6 Jun 2023 15:45:51 +0000 (+0200) Subject: wait #5998 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0382965f7b786fb8be39e5abba761c0fc04ef83f;p=fluidbook-toolbox.git wait #5998 @0.75 --- diff --git a/app/Fields/FluidbookLinkEditor/ShowLinkMode.php b/app/Fields/FluidbookLinkEditor/ShowLinkMode.php index 99bdbbc96..910b4733b 100644 --- a/app/Fields/FluidbookLinkEditor/ShowLinkMode.php +++ b/app/Fields/FluidbookLinkEditor/ShowLinkMode.php @@ -18,6 +18,7 @@ class ShowLinkMode extends SelectFromArray 'hide' => __('Masquer'), 'toggle' => __('Basculer (Afficher si masqué, masquer si affiché)'), 'exclusiveshow' => __('Afficher et masquer tous les autres'), + 'showhide' => __('Afficher les liens (+) et masquer les liens (-)'), 'shownext' => __('Afficher le lien suivant dans la série'), 'shownextcycle' => __('Afficher le lien suivant dans la série') . ' (' . __('cycle') . ')', 'showprev' => __('Afficher le lien précédent dans la série'), diff --git a/app/Fluidbook/Compiler/Links.php b/app/Fluidbook/Compiler/Links.php index 3e2a759c2..c08b8cac4 100644 --- a/app/Fluidbook/Compiler/Links.php +++ b/app/Fluidbook/Compiler/Links.php @@ -219,7 +219,7 @@ trait Links $ids = explode(',', $linkData['to']); $close = ($linkData['close_button'] && $linkData['close_button'] !== 'none'); foreach ($ids as $id) { - $id = trim($id); + $id = trim($id,'+- '); if ($id === 'tabs') { $this->config->tabsHiddenAtStartup = true; } else { diff --git a/app/SubForms/Link/Layer.php b/app/SubForms/Link/Layer.php index 88a78224a..2b9c9b6b7 100644 --- a/app/SubForms/Link/Layer.php +++ b/app/SubForms/Link/Layer.php @@ -3,7 +3,7 @@ namespace App\SubForms\Link; use App\Fluidbook\Link\Link; -use Cubist\Backpack\Magic\Fields\Hidden; + // __('!! Editeur de liens') class Layer extends Animated { @@ -11,7 +11,7 @@ class Layer extends Animated public function addDestinationField() { - $this->addField("to", Hidden::class, __('Animer le(s) calque(s)')); + $this->addField("to", \App\Fields\FluidbookLinkEditor\Layer::class, __('Animer le(s) calque(s)'), ['default' => 'both']); parent::addDestinationField(); } }