{#
component: hero content
title {string}: Titre
titleAnnex {string|null}: Sur titre au dessus du titre (Default: null, pas de sur titre)
background {image}: image de fond
breadcrumb {array|null}: tableau des liens du fil d'ariane (chacun contenant title, to, et text) (Default: null, pas de breadcrumb)
#}
{% set props = {}|merge(props|default({})) %}
<div data-component="header-nav" class="HeaderNav-component">
{% include "component/button.html.twig" with {
props: {
text: "header_nav.offer.libelle"|trans,
to: (getResidenceMode()) ? "header_nav.residence.offrir.to"|trans : "header_nav.offrir.to"|trans,
title: 'TODO',
icon: 'gift',
class:'offer-btn'
}
} %}
{# {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} #}
{% include "component/button.html.twig" with {
props: {
text: "header_nav.contact.libelle"|trans,
to: (getResidenceMode()) ? "header_nav.residence.contact.to"|trans : "header_nav.contact.to"|trans,
title: 'TODO',
theme: 'invert',
contactButton: true
}
} %}
</div>