From 28d130f62b246973ff3a649d8e9452b3d0f65e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Moreira?= Date: Mon, 30 Sep 2024 21:27:53 +0200 Subject: [PATCH] Template for K-centre URL field --- ...ield--field-k-centre-website-url.html.twig | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/field/field--field-k-centre-website-url.html.twig diff --git a/templates/field/field--field-k-centre-website-url.html.twig b/templates/field/field--field-k-centre-website-url.html.twig new file mode 100644 index 0000000..82b2ba1 --- /dev/null +++ b/templates/field/field--field-k-centre-website-url.html.twig @@ -0,0 +1,27 @@ +{% + set classes = [ + 'field', + 'field--name-' ~ field_name|clean_class, + 'field--type-' ~ field_type|clean_class, + 'field--label-' ~ label_display, + ] +%} +{% + set title_classes = [ + 'field--label', + label_display == 'visually_hidden' ? 'visually-hidden', + ] +%} + +{% if label_hidden %} + {% for item in items %} + {{ item.content }} + {% endfor %} +{% else %} + + {{ label }} + {% for item in items %} + {{ item.content }} + {% endfor %} + +{% endif %} \ No newline at end of file