Loading templates/node/event/node--event--full.html.twig +39 −2 Original line number Diff line number Diff line Loading @@ -34,10 +34,47 @@ {% block nodefull_specialfields %} <div class="article__special-fields"> {# @todo: Leave only the event_date_advanced variable for Open Social 11.4.x and above. @see https://github.com/goalgorilla/open_social/pull/2853 #} {% if event_date_advanced is defined %} {{ event_date_advanced }} {% else %} <div class="article__special-field"> <svg class="article__special-fields-icon" aria-hidden="true"> <title>{% trans %} Event date {% endtrans %}</title> <use xlink:href="#icon-event"></use> </svg> <span class="sr-only">{% trans %}Event date {% endtrans %}</span> <span class="inline-center"> <strong>{{event_date}}</strong> </span> </div> {% endif %} {% if content.field_event_address|render or content.field_event_location|render %} {# @todo: Leave only the event_location_address variable for Open Social 11.4.x and above. @see https://github.com/goalgorilla/open_social/pull/2853 #} {% if event_location_address is defined %} {{ event_location_address }} {% else %} <div class="article__special-field"> <svg class="article__special-fields-icon" aria-hidden="true"> <title>{% trans %} Located at: {% endtrans %}</title> <use xlink:href="#icon-location"></use></svg> <span class="sr-only">{% trans %}Event location {% endtrans %}</span> <span class="inline-center"> <strong>{{content.field_event_location}}</strong> {% if content.field_event_address|render is not empty and content.field_event_location|render is not empty %} • {% endif %} {{content.field_event_address}} </span> </div> {% endif %} {% endif %} </div> Loading Loading
templates/node/event/node--event--full.html.twig +39 −2 Original line number Diff line number Diff line Loading @@ -34,10 +34,47 @@ {% block nodefull_specialfields %} <div class="article__special-fields"> {# @todo: Leave only the event_date_advanced variable for Open Social 11.4.x and above. @see https://github.com/goalgorilla/open_social/pull/2853 #} {% if event_date_advanced is defined %} {{ event_date_advanced }} {% else %} <div class="article__special-field"> <svg class="article__special-fields-icon" aria-hidden="true"> <title>{% trans %} Event date {% endtrans %}</title> <use xlink:href="#icon-event"></use> </svg> <span class="sr-only">{% trans %}Event date {% endtrans %}</span> <span class="inline-center"> <strong>{{event_date}}</strong> </span> </div> {% endif %} {% if content.field_event_address|render or content.field_event_location|render %} {# @todo: Leave only the event_location_address variable for Open Social 11.4.x and above. @see https://github.com/goalgorilla/open_social/pull/2853 #} {% if event_location_address is defined %} {{ event_location_address }} {% else %} <div class="article__special-field"> <svg class="article__special-fields-icon" aria-hidden="true"> <title>{% trans %} Located at: {% endtrans %}</title> <use xlink:href="#icon-location"></use></svg> <span class="sr-only">{% trans %}Event location {% endtrans %}</span> <span class="inline-center"> <strong>{{content.field_event_location}}</strong> {% if content.field_event_address|render is not empty and content.field_event_location|render is not empty %} • {% endif %} {{content.field_event_address}} </span> </div> {% endif %} {% endif %} </div> Loading