From df5d7ea9e07ffe9435e15711d98bf52c05dbe72d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 20 Jan 2026 15:46:00 +0100 Subject: [PATCH] wip #7868 @1 --- app/Fluidbook/LinkShortener.php | 11 +++++++++++ app/Models/Traits/PublicationSettings.php | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 app/Fluidbook/LinkShortener.php diff --git a/app/Fluidbook/LinkShortener.php b/app/Fluidbook/LinkShortener.php new file mode 100644 index 000000000..3d89617bb --- /dev/null +++ b/app/Fluidbook/LinkShortener.php @@ -0,0 +1,11 @@ +_addSettingField('linkFilePrefix', LongText::class, $this->__('Préfixer les liens de téléchargement')); $this->_addSettingField('', FormSeparator::class); $this->_addSettingField('autolinkRule', SelectFromArray::class, $this->__('Règle pour l\'ajout des liens via excel'), ["default" => "web", 'options' => ['web' => 'Lien web', 'cart' => __('Lien panier'), 'steelite' => 'Steelite']]); + $this->_addSettingField('', FormSeparator::class); + $shorteners = LinkShortener::getAvaiableShorteners(); + $options = ['none' => $this->__('Aucun')]; + foreach ($shorteners as $shortener) { + $options[$shortener] = $shortener; + } + $this->_addSettingField('linkShortener', SelectFromArray::class, $this->__('Raccourcisseur de liens'), ['default' => 'none', 'options' => $options]); + } protected function _multimedia() -- 2.39.5