templates/_includes/_header.html.twig line 1
{# {{ dump() }} #}{# Condition si c'est la Homepage OU une Page pour changement image de background #}{% if pathInfo == '/' or pathInfo == '/admin' or pathInfo == '/login' %}<div class="container-fluid py-5" style="background-image: linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url({{ asset('assets/img/homepage/' ~ homepage[0].heroImage) }}); background-position: center; background-repeat: no-repeat; background-size: cover; height: 70vh;">{% else %}{% if page != null %}<div class="container-fluid py-5" style="background-image: linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url({{ asset('assets/img/pages/' ~ page.heroImage) }}); background-position: center; background-repeat: no-repeat; background-size: cover; height: 70vh;">{% endif %}{% endif %}{# Menu principal #}<div class="container"><header class="d-flex flex-wrap align-items-center justify-content-center"><ul class="nav col-12 col-md-auto justify-content-center mb-md-0 header-menu"><li><a href="{{ path('app_home') }}" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'home' %}active{% endif %}">Accueil</a></li><li><a href="/a-propos/a-propos" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'a-propos' %}active{% endif %}">A propos</a></li><div class="dropdown"><a href="" role="button" class="nav-link px-4 text-white text-uppercase {% if 'nos-domaines-dintervention' in pathInfo %}active{% endif %}" data-bs-toggle="dropdown" aria-expanded="false">Nos domaines d'intervention</a><ul class="dropdown-menu">{% for cat in categories %}{% if cat.id == 2 %}{% for page in cat.pages|sort((a, b) => a.name <=> b.name) %}<li><a class="dropdown-item"href="/{{ cat.slug }}/{{ page.slug }}">{{ page.title|raw }}</a></li>{% endfor %}{% endif %}{% endfor %}</ul></div><li><a href="/lequipe/equipe" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'equipe' %}active{% endif %}">L'équipe</a></li><li><a href="/ventes-immobilieres/ventes" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'ventes' %}active{% endif %}">Ventes immobilières</a></li><li><a href="/honoraires/nos-honoraires" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'nos-honoraires' %}active{% endif %}">Honoraires</a></li><li><a href="/contact/contactez-nous" class="nav-link px-4 text-white text-uppercase {% if pageTitle is defined and pageTitle != null and pageTitle == 'contactez-nous' %}active{% endif %}">Contact</a></li></ul></header><div class="row"><div class="col home-main-title"><h1 class="text-uppercase fw-bold text-white">{{ homepage[0].mainTitle|raw }}</h1><h2 class="text-uppercase text-white">{{ homepage[0].mainSubtitle|raw }}</h2><div class="home-logo-title"><img src="{{ asset('assets/img/homepage/' ~ homepage[0].logo ) }}" alt="{{ homepage[0].mainTitle|raw }}" class="img-fluid" style="max-width: 125px; width: 100%;"></div></div></div></div></div>