{% extends 'partials/base.html.twig' %} {% block content %}

{{ page.title }}

{{ page.content }} {% if config.plugins['simple-events'].use_regions %} {% for reg_id, reg in config.plugins['simple-events'].regions %} {% set events = page.collection | filterEvents(reg_id) %} {% if events.count > 0 %}

{{ reg }}

{% endif %} {% endfor %} {% else %} {% endif %} {% endblock %} {# ----- customise the date for another language: an example in German ----- #} {# put this in the for loop (for event in events), replacing the if clause above: {% if config.end is defined and config.end != config.start %} {% if config.end|date('j') == config.start|date('j') + 1 %} {% set month ="" %} {% if config.end|date('m') != config.start|date('m') %} {% set month = ' ' ~ 'GRAV.MONTHS_OF_THE_YEAR'|ta(config.start|date('n') -1) %} {% endif %} {% if config.end|date('j') == config.start|date('j') + 1 %} {% set eventdate = config.start|date('j.') ~ month ~ ' und ' ~ config.end|date('j. ') ~ 'GRAV.MONTHS_OF_THE_YEAR'|ta(config.end|date('n') -1) ~ ' ' ~ config.end|date('Y') %} {% else %} {% set eventdate = config.start|date('j.') ~ month ~ ' bis ' ~ config.end|date('j. ') ~ 'GRAV.MONTHS_OF_THE_YEAR'|ta(config.end|date('n') -1) ~ ' ' ~ config.end|date('Y') %} {% endif %} {% else %} {% set eventdate = config.start|date('j. ') ~ 'GRAV.MONTHS_OF_THE_YEAR'|ta(config.start|date('n') -1) ~ ' ' ~ config.start|date('Y') %} {% endif %} #}