From: Vincent Vanwaelscappel Date: Tue, 20 Jan 2026 14:46:00 +0000 (+0100) Subject: wip #7868 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=df5d7ea9e07ffe9435e15711d98bf52c05dbe72d;p=fluidbook-toolbox.git wip #7868 @1 --- 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()