{% extends 'partials/base.html.twig' %} {# Define if the primary image and the attributes of width and height are shown #} {% set show_image = header_var('show_pageimage')|defined(true) %} {% set image = page.media[page.header.primaryImage] ?: page.media.all|filter((v, k) => k != page.header.primaryImage and (v.type == 'image' or v.type == 'vector'))|first %} {% set img_width = header_var('image_width')|default(1038) %} {% set img_height = header_var('image_height')|default(437) %} {# Set title and subtitle #} {% set title = page.title|raw %} {% set subtitle = page.header.subtitle|raw %} {% block menu %} {% include 'partials/sidebar_right.html.twig' %} {% endblock %} {% block content %}

{{ title }}

{% if subtitle %}

{{ subtitle }}

{% endif %}
{% if show_image and image %} {{ image.cropZoom(img_width, img_height).loading('lazy').attribute('decoding','async').html(title, title)|raw }} {% endif %} {{ page.content|raw }}
{% if show_sidebar == false %} {% endif %} {% endblock %} {% block sidebar %} {% if show_sidebar == true %} {% include 'partials/sidebar_left.html.twig' %} {% endif %} {% endblock %}