{# Les blocs échappent déjà leurs valeurs ; éviter un second échappement après capture. #} {% set description %}{% block meta_description %}{% endblock %}{% endset %} {% if description|trim is not empty %} {% endif %} {% set referenceUrl %}{% block reference_url %}{% endblock %}{% endset %} {% block canonical %} {% if referenceUrl|trim is not empty %} {% endif %} {% endblock %} {% block robots %}{% endblock %} {% block social_metadata %} {% if description|trim is not empty %} {% endif %} {% if referenceUrl|trim is not empty %} {% endif %} {% block og_image %}{% endblock %} {% endblock %} {% block twitter_metadata %}{% endblock %} {% if app.environment == 'prod' %} {% else %} {% endif %} {% block stylesheets %} {% endblock %} {% set route = app.request.attributes.get('_route') %} {% set bodyClass = [] %} {% set idCss = '' %} {% if route == 'home.index' %} {% set bodyClass = ['homepage'] %} {% elseif route == 'app_projet_index' %} {% set bodyClass = ['projets'] %} {% elseif route == 'app_projet_show' %} {% set bodyClass = ['projet', 'page_detail'] %} {% if projet is defined and projet.pole %} {% set bodyClass = bodyClass|merge([projet.pole.slug]) %} {% endif %} {% elseif route == 'app_pole_slug_show' %} {# <= ICI : ajoute 'pole' (ou 'pole') + le slug #} {% set bodyClass = ['pole', app.request.attributes.get('slug')] %} {% elseif route == 'app_ressource_index' %} {% set bodyClass = ['ressources'] %} {% elseif route == 'app_offre_index' %} {% set bodyClass = ['offres'] %} {% elseif route == 'app_ressource_show' %} {% set bodyClass = ['ressource', 'page_detail'] %} {% if ressource is defined and ressource.pole %} {% set bodyClass = bodyClass|merge([ressource.pole.slug]) %} {% endif %} {% elseif route == 'app_offre_show' %} {% set bodyClass = ['offre', 'page_detail'] %} {% if offre is defined and offre.pole %} {% set bodyClass = bodyClass|merge([offre.pole.slug]) %} {% endif %} {% elseif route == 'app_page_show' %} {% set bodyClass = ['page'] %} {% set idCss = app.request.attributes.get('slug') %} {% elseif route == 'app_contact' %} {% set idCss = 'page-contact' %} {% endif %} {% if route == 'app_projet_index' %} {% endif %}
{% include 'common/_menu.html.twig' %} {% block header %} {% include 'common/_header.html.twig' %} {% endblock %}
{% block body %} {% endblock %}
{% block footer %} {% include "common/_footer.html.twig" %} {% endblock %}
{% block javascripts %} {% endblock %}