{% if app.environment == 'prod' %} {# Google Consent Mode (basic) + GA4 – defaults before banner; update after consent cookies #} {% endif %} {% if block('title') is defined and block('seo') is empty %} {% block title %}{% endblock %} CUMAS365 SFT {% endif %} {% block seo %}{% endblock %} {% set currentRoute = app.request.attributes.get('_route') %} {% set currentRouteParams = app.request.attributes.get('_route_params')|default({}) %} {% set currentLocale = app.request.locale|default('en') %} {% set localeSlugs = app.request.attributes.get('_locale_slugs') %} {% set supportedLocales = ['de', 'en', 'es'] %} {% if currentRoute %} {% set canonicalParams = currentRouteParams|merge({'_locale': currentLocale}) %} {% if localeSlugs is iterable and localeSlugs[currentLocale] is defined %} {% set canonicalParams = canonicalParams|merge({slug: localeSlugs[currentLocale]}) %} {% endif %} {% for locale in supportedLocales %} {% set alternateParams = currentRouteParams|merge({'_locale': locale}) %} {% if localeSlugs is iterable and localeSlugs[locale] is defined %} {% set alternateParams = alternateParams|merge({slug: localeSlugs[locale]}) %} {% endif %} {% endfor %} {% set defaultParams = currentRouteParams|merge({'_locale': 'en'}) %} {% if localeSlugs is iterable and localeSlugs['en'] is defined %} {% set defaultParams = defaultParams|merge({slug: localeSlugs['en']}) %} {% endif %} {% endif %} {% include 'general/components/structured_data.html.twig' %} {% block header %} {% include 'general/header.html.twig' %} {% endblock %} {% if app.request.attributes.get('_route') in public_routes %} {% endif %} {% block styles %} {% endblock %}
{% block navigation %} {% include 'general/navigation.html.twig' %} {% endblock %}
{% set block_to_render = block_to_render | default('body') %} {% if block_to_render == 'body_left' %}
{% block body_left %}

default content left

{% endblock %}
{# Hintergrundbild #}
{% endif %} {% if block_to_render == 'body_right' %}
{# Hintergrundbild #}
{% block body_right %}

default content right

{% endblock %}
{% endif %} {% if block_to_render == 'body' %}
{% block messages %} {% for label, messages in app.flashes %} {% for message in messages %} {% endfor %} {% endfor %} {% endblock %} {% include 'general/navigation_menu.html.twig' %}
{% block body %}

default content

{% endblock %}
{% if license == 'pro' or license == 'business' %} {# BOTTOM MENU FOR MOBILE AND TABLET #} {% endif %} {% endif %}
{# Cookie Consent Banner #} {% include 'components/cookie_banner.html.twig' %} {% block flash_scripts %} {% endblock %} {% block javascripts %} {% if app.request.attributes.get('_route') in public_routes %} {{ encore_entry_script_tags('navigationMenu') }} {% else %} {{ encore_entry_script_tags('app') }} {% endif %} {% endblock %}