From 7de9a30147b5c33284cab30d713fa8d0ba3148a6 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 27 Jun 2023 10:46:55 +0200 Subject: [PATCH] wait #6084 --- app/SubForms/Link/Base.php | 1 + app/SubForms/Link/TextPopup.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/SubForms/Link/TextPopup.php diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index 610950ddd..e384f41b4 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -75,6 +75,7 @@ class Base extends Form ['type' => \Fluidbook\Tools\Links\Link::IMAGE, 'label' => __('Image'), 'color' => '#BE418D', 'class' => Image::class], ['type' => \Fluidbook\Tools\Links\Link::LAYER, 'label' => __('Animation de calque'), 'color' => '#3D0254', 'class' => Layer::class], ['type' => \Fluidbook\Tools\Links\Link::TEXT, 'label' => __('Texte'), 'color' => '#9090FF', 'class' => \App\SubForms\Link\Text::class], + ['type' => \Fluidbook\Tools\Links\Link::TEXT_POPUP, 'label' => __('Texte') . ' (' . __('popup') . ')', 'color' => '#05625a', 'class' => \App\SubForms\Link\TextPopup::class], ['type' => \Fluidbook\Tools\Links\Link::MULTIMEDIA, 'label' => __('Multimédia'), 'color' => '#ff00ff', 'class' => Multimedia::class], ['type' => \Fluidbook\Tools\Links\Link::WEB_INFOS, 'label' => __('Adresse web « plus d\'infos »'), 'color' => '#ff0000', 'class' => WebInfos::class], ['type' => \Fluidbook\Tools\Links\Link::CUSTOM, 'label' => __('Personnalisé'), 'color' => '#14511a', 'class' => Custom::class], diff --git a/app/SubForms/Link/TextPopup.php b/app/SubForms/Link/TextPopup.php new file mode 100644 index 000000000..7ddc33cda --- /dev/null +++ b/app/SubForms/Link/TextPopup.php @@ -0,0 +1,15 @@ +addField('to', \Cubist\Backpack\Magic\Fields\Textarea::class, __('Texte')); + } +} -- 2.39.5