From 2dc5e8400c6b1edabb85345fe514eef212ff9242 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 14 Nov 2022 13:07:23 -0800 Subject: [PATCH] Update events display --- templates/content/node--ubc-event--card-horizontal.html.twig | 5 +++++ templates/content/node--ubc-event--card-image.html.twig | 5 +++++ templates/content/node--ubc-event--card-vertical.html.twig | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/templates/content/node--ubc-event--card-horizontal.html.twig b/templates/content/node--ubc-event--card-horizontal.html.twig index d527d9c..a4ee058 100755 --- a/templates/content/node--ubc-event--card-horizontal.html.twig +++ b/templates/content/node--ubc-event--card-horizontal.html.twig @@ -196,6 +196,11 @@ {{ label }} {{ title_suffix }} + {% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %} + + {{ content.field_event_location }} + + {% endif %} {% if not node.isPublished() %}
Unpublished
{% endif %} diff --git a/templates/content/node--ubc-event--card-image.html.twig b/templates/content/node--ubc-event--card-image.html.twig index dcee7ba..552d7b7 100644 --- a/templates/content/node--ubc-event--card-image.html.twig +++ b/templates/content/node--ubc-event--card-image.html.twig @@ -200,6 +200,11 @@ {{ label }} {{ title_suffix }} + {% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %} + + {{ content.field_event_location }} + + {% endif %} {% if not node.isPublished() %}
Unpublished
{% endif %} diff --git a/templates/content/node--ubc-event--card-vertical.html.twig b/templates/content/node--ubc-event--card-vertical.html.twig index b185362..c3c3ee7 100644 --- a/templates/content/node--ubc-event--card-vertical.html.twig +++ b/templates/content/node--ubc-event--card-vertical.html.twig @@ -198,6 +198,11 @@ {{ label }} {{ title_suffix }} + {% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %} + + {{ content.field_event_location }} + + {% endif %} {% if not node.isPublished() %}
Unpublished
{% endif %}