Browse code

Update remote

Benjamin Roth authored on29/03/2023 14:12:43
Showing2 changed files
... ...
@@ -23,7 +23,8 @@
23 23
             <?php foreach ($this->buttons as $b) : ?>
24 24
                 <a class="d-inline-block btn <?php if ($b->link_size) : ?><?php echo $b->link_size; ?><?php endif; ?> <?php echo $b->link_type; ?>"
25 25
                    data-aos="<?php if ($b->animation_type) : ?><?php echo $b->animation_type; ?><?php else : ?>animate__fadeInUp<?php endif; ?>"
26
-                   href="<?php echo $b->link_url; ?><?php if ($b->link_betreff) : ?>?subject=<?php echo $b->link_betreff; ?><?php endif; ?>">
26
+                   href="<?php echo $b->link_url; ?><?php if ($b->link_betreff) : ?>?subject=<?php echo $b->link_betreff; ?><?php endif; ?>"
27
+                    <?php if ($b->link_attributes): ?><?= $b->link_attributes; ?><?php endif; ?>>
27 28
                     <?php if ($b->icon): ?>
28 29
                         <i class="ico" data-icon="&#x<?= $b->icon ?>;"></i>
29 30
                     <?php endif; ?>
... ...
@@ -285,6 +285,13 @@ return array(
285 285
                     'label' => array('Betreffzeile für "mailto:" - Buttons', '(optional, falls Link eine neue Email öffnen soll)'),
286 286
                     'inputType' => 'text',
287 287
                 ),
288
+                'link_attributes' => array(
289
+                    'label' => array(
290
+                        'de' => array('Link-Attribute', 'Ermöglicht dem Link weitere HTML-Attribute zuzuweisen.'),
291
+                    ),
292
+                    'inputType' => 'text',
293
+//                    'eval' => array('allowHtml' => true),
294
+                ),
288 295
                 'link_type' => array(
289 296
                     'label' => array(
290 297
                         'de' => array('Optik des Buttons', ''),