templates/component/header/header_nav.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: hero content
  3.     title {string}: Titre
  4.     titleAnnex {string|null}: Sur titre au dessus du titre (Default: null, pas de sur titre)
  5.   background {image}: image de fond
  6.   breadcrumb {array|null}: tableau des liens du fil d'ariane (chacun contenant title, to, et text) (Default: null, pas de breadcrumb)
  7. #}
  8. {% set props = {}|merge(props|default({}))  %}
  9. <div data-component="header-nav" class="HeaderNav-component">
  10.     {% include "component/button.html.twig" with {
  11.     props: {
  12.       text: "header_nav.offer.libelle"|trans,
  13.       to: (getResidenceMode()) ? "header_nav.residence.offrir.to"|trans : "header_nav.offrir.to"|trans,
  14.       title: 'TODO',
  15.       icon: 'gift',
  16.       class:'offer-btn'
  17.     }
  18.   } %}
  19.     {# {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} #}
  20.     {% include "component/button.html.twig" with {
  21.       props: {
  22.         text: "header_nav.contact.libelle"|trans,
  23.         to: (getResidenceMode()) ? "header_nav.residence.contact.to"|trans : "header_nav.contact.to"|trans,
  24.         title: 'TODO',
  25.         theme: 'invert',
  26.         contactButton: true
  27.       }
  28.     } %}
  29. </div>