{% extends 'partials/base.html.twig' %} {% set collection = page.collection() %} {% if page.header.show_breadcrumbs is defined %} {% set show_breadcrumbs = page.header.show_breadcrumbs %} {% else %} {% set show_breadcrumbs = true %} {% endif %} {% block menu %} {% include 'partials/sidebar_right.html.twig' %} {% endblock %} {% block content %} {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% include 'partials/breadcrumbs.html.twig' %} {% endif %}

{{ page.header.title }}

{% if page.header.subtitle %}

{{ page.header.subtitle }}

{% endif %}
{{ page.content|raw }}
{% if collection|length != 0 %} {% for event in collection %} {% include 'partials/event_item.html.twig' with { 'page': event, 'single': false } %} {% endfor %} {% else %}

{{ "PLUGIN_EVENTS.EVENTS.NO_EVENTS_TITLE"|t }}

{{ ("PLUGIN_EVENTS.EVENTS.NO_EVENTS_CONTENT"|t(uri.param('category')))|markdown }}

{% endif %}
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %} {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %} {% endif %} {% endblock %}