From a1e6093075512703d7d916d0f9b8a019fb9abe37 Mon Sep 17 00:00:00 2001 From: Campii <dominik.chrzanowski183@gmail.com> Date: Wed, 16 Mar 2022 17:17:28 +0100 Subject: [PATCH] feat: Added new setting (show link) [Timeline] quiqqer/timeline#1 --- bricks.xml | 4 ++++ locale.xml | 5 +++++ src/QUI/Timeline/Bricks/Timeline.php | 1 + 3 files changed, 10 insertions(+) diff --git a/bricks.xml b/bricks.xml index 70bf977..4623ee8 100644 --- a/bricks.xml +++ b/bricks.xml @@ -43,6 +43,10 @@ var="brick.timeline.setting.order.inverted"/> </option> </setting> + + <setting name="showLinks" type="checkbox"> + <locale group="quiqqer/timeline" var="brick.timeline.setting.showLinks"/> + </setting> </settings> </brick> diff --git a/locale.xml b/locale.xml index b8838be..310e2f1 100644 --- a/locale.xml +++ b/locale.xml @@ -80,6 +80,11 @@ <en><![CDATA[Inverted]]></en> </locale> + <locale name="brick.timeline.setting.showLinks"> + <de><![CDATA[Hyperlinks für jede Site anzeigen?]]></de> + <en><![CDATA[Show hyperlinks for each site?]]></en> + </locale> + </groups> <groups name="quiqqer/timeline" datatype="php"> diff --git a/src/QUI/Timeline/Bricks/Timeline.php b/src/QUI/Timeline/Bricks/Timeline.php index 131fe68..f19e9a4 100644 --- a/src/QUI/Timeline/Bricks/Timeline.php +++ b/src/QUI/Timeline/Bricks/Timeline.php @@ -48,6 +48,7 @@ public function getBody() $Control->setAttribute('parentInputList', $this->getAttribute('site')); $Control->setAttribute('imageFit', $this->getAttribute('image')); $Control->setAttribute('order', $this->getAttribute('order')); + $Control->setAttribute('showLinks', $this->getAttribute('showLinks')); $result = $Control->create(); -- GitLab