From 72d19d0e00578d44551f833fcc464446a4c5543f Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 23 Feb 2026 11:09:37 +0100 Subject: [PATCH] wip #7913 --- app/SubForms/Link/AltTextImage.php | 19 +++++++++++++++++++ app/SubForms/Link/Base.php | 1 + 2 files changed, 20 insertions(+) create mode 100644 app/SubForms/Link/AltTextImage.php diff --git a/app/SubForms/Link/AltTextImage.php b/app/SubForms/Link/AltTextImage.php new file mode 100644 index 000000000..25551850c --- /dev/null +++ b/app/SubForms/Link/AltTextImage.php @@ -0,0 +1,19 @@ +addField('to', \Cubist\Backpack\Magic\Fields\Textarea::class, __('Texte')); + $this->addField('group_position_icon', FieldGroupStart::class, __('Position de l\'icône')); + $this->addField('icon_x', Text::class, 'X', ['suffix' => '%', 'class' => 'calculation', 'default' => '100']); + $this->addField('icon_y', Text::class, 'Y', ['suffix' => '%', 'class' => 'calculation', 'default' => '100']); + } +} diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index 9ba371ad9..2b9bf6e5f 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -125,6 +125,7 @@ class Base extends Form ['type' => \Fluidbook\Tools\Links\Link::OBJECT3D, 'label' => __('Objet 3D'), 'color' => '#00ffff', 'class' => Object3D::class], ['type' => \Fluidbook\Tools\Links\Link::LAYER_MASK, 'label' => __('Masque'), 'color' => '#e34f7b', 'class' => LayerMask::class], ['type' => \Fluidbook\Tools\Links\Link::SEARCH_WORD, 'label' => __('Mots à ajouter au moteur de recherche'), 'color' => '#726b45', 'class' => SearchWord::class], + ['type' => \Fluidbook\Tools\Links\Link::ALT_TEXT_IMAGE, 'label' => __('Texte alternatif'), 'color' => '#726b45', 'class' => AltTextImage::class], //['type' => \Fluidbook\Tools\Links\Link::HTML5MULTIMEDIA, 'label' => __('Lien Multimédia (HTML)'), 'color' => '#34A853', 'disabled' => true, 'class' => Web::class], //['type' => \Fluidbook\Tools\Links\Link::BOOKMARK_CORNER, 'label' => __('Lien marque-page sur coin de page'), 'color' => '#000000', 'disabled' => true, 'class' => Web::class], //['type' => \Fluidbook\Tools\Links\Link::PAGE_CORNER, 'label' => __('Coin de page'), 'color' => '#f19043', 'disabled' => true, 'class' => Web::class], -- 2.39.5