]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6084
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 Jun 2023 08:46:55 +0000 (10:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 Jun 2023 08:46:55 +0000 (10:46 +0200)
app/SubForms/Link/Base.php
app/SubForms/Link/TextPopup.php [new file with mode: 0644]

index 610950ddd680702bb3d28de579265c0087520b15..e384f41b4a66f29cfe21272b054053c14b8647e9 100644 (file)
@@ -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 (file)
index 0000000..7ddc33c
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+namespace App\SubForms\Link;
+
+use App\Fluidbook\Link\Link;
+use Fluidbook\Tools\Links\NormalLink;
+
+class TextPopup extends Base
+{
+    public $type = Link::TEXT_POPUP;
+    public function addDestinationField()
+    {
+        $this->addField('to', \Cubist\Backpack\Magic\Fields\Textarea::class, __('Texte'));
+    }
+}