From 445e48143c41f3c3962d8916dd18674907b9ef16 Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Thu, 5 Sep 2024 12:15:42 -0700 Subject: [PATCH] Update node--ubc-event--full.html.twig --- templates/content/node--ubc-event--full.html.twig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/content/node--ubc-event--full.html.twig b/templates/content/node--ubc-event--full.html.twig index 2ea7213..e78fdf4 100755 --- a/templates/content/node--ubc-event--full.html.twig +++ b/templates/content/node--ubc-event--full.html.twig @@ -115,6 +115,9 @@ {% set eventdate = 'Ongoing event' %} {% set time = '' %} {% endif %} +{% if node.field_event_is_virtual.value %} + {% set eventvirtual = 'Virtual event' %} +{% endif %} @@ -132,7 +135,12 @@ {% if not (node.field_event_date.isEmpty == true) and content.field_event_date is defined %}

{{ eventdate }}{{ time }}

{% endif %} - {% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %} + {% if not (node.field_event_is_virtual.isEmpty == true) and content.field_event_is_virtual is defined %} +
+ {{ eventvirtual }} +
+ {% endif %} + {% if not eventvirtual and not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
{{ content.field_event_location.0.address_line1 }} {% if not (node.field_event_location.0.address_line2.isEmpty == true) %}