From: Vincent Vanwaelscappel Date: Tue, 27 Jun 2023 08:46:55 +0000 (+0200) Subject: wait #6084 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7de9a30147b5c33284cab30d713fa8d0ba3148a6;p=fluidbook-toolbox.git wait #6084 --- 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')); + } +}