templates/front/inc/header.html.twig line 1

Open in your IDE?
  1. <header class="position-fixed w-100 {% if app.request.attributes.get('_route') == 'front_home_management' %}header-iris{% endif %}">
  2.     <div class="row col-md-3">
  3.         {% if app.request.attributes.get('_route') == 'front_home_management' %}
  4.             <a href="{{ path('front_home_index') }}" class="container-logo bg-red p-2 d-flex justify-content-center align-items-center" id="logoContainer">
  5.                 <img src="{{ asset('img/iris-logo.svg') }}" id="logoRis" alt="Logo RIS">
  6.             </a>
  7.         {% else %}
  8.             <a href="{{ path('front_home_index') }}" class="container-logo bg-red p-2 d-flex justify-content-center align-items-center" id="logoContainer">
  9.                 <img src="{{ asset('img/stugalux-logo.svg') }}" alt="Logo Stugalux">
  10.             </a>
  11.         {% endif %}
  12.     </div>
  13.     <div class="col-md-8 header-nav container-1300">
  14.         <ul class="h-100 d-flex justify-content-around align-items-center p-0">
  15.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_home_index' %}active{% endif %}" href="{{ path('front_home_index') }}">Accueil</a></li>
  16.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_realestate_list' and app.request.get('advertType') == 'vente' %}active{% endif %}" href="{{ path('front_realestate_list', {'advertType': 'vente'}) }}">Ventes</a></li>
  17.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_realestate_list' and app.request.get('advertType') == 'location' %}active{% endif %}" href="{{ path('front_realestate_list', {'advertType': 'location'}) }}">Locations</a></li>
  18.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_construction' %}active{% endif %}" href="{{ path('front_construction') }}">Construction</a></li>
  19.             {#
  20.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_home_management' %}active{% endif %}" href="{{ path('front_home_management') }}">Gérance</a></li>
  21.             #}
  22.             <li><a class="grey {% if app.request.attributes.get('_route') == 'front_who_is' %}active{% endif %}" href="{{ path('front_who_is') }}">Qui sommes-nous ?</a></li>
  23.             {% if app.request.attributes.get('_route') == 'front_contact' %}
  24.                 <li><a class="active" href="{{ path('front_contact') }}"><img src="{{ asset('img/icon-envelop-red.svg') }}"></a></li>
  25.             {% elseif app.request.attributes.get('_route') == 'front_home_management' %}
  26.                 <li><a href="{{ path('front_contact') }}"><img src="{{ asset('img/icon-envelop-menu-white.svg') }}"></a></li>
  27.             {% else %}
  28.                 <li><a href="{{ path('front_contact') }}"><img src="{{ asset('img/icon-envelop.svg') }}"></a></li>
  29.             {% endif %}
  30.         </ul>
  31.     </div>
  32.     <div class="submenu-fixed position-fixed {% if app.request.attributes.get('_route') == 'front_realestate_list' %}with-filter{% endif %}">
  33.         <ul class="d-flex flex-column p-0 m-0">
  34.             <li class="submenu-link deactive" {% if app.request.attributes.get('_route') == 'front_realestate_list' and 'vente' in app.request.uri %}style="background:#e30613"{% endif %}>
  35.                 <a href="{{ path('front_realestate_list', {'advertType': 'vente'}) }}" class="position-relative">
  36.                     <span>Ventes</span> <img src="{{ asset('img/STUGALUX_vente_NEG.svg') }}" style="width:67px;">
  37.                 </a>
  38.             </li>
  39.             <li class="submenu-link deactive" {% if app.request.attributes.get('_route') == 'front_realestate_list' and 'location' in app.request.uri %}style="background:#e30613"{% endif %}>
  40.                 <a href="{{ path('front_realestate_list', {'advertType': 'location'}) }}" class="position-relative">
  41.                     <span>Locations</span> <img src="{{ asset('img/STUGALUX_location_NEG.svg') }}" style="width:67px;">
  42.                 </a>
  43.             </li>
  44.             <li class="submenu-link deactive" {% if app.request.attributes.get('_route') == 'front_construction' %}style="background:#e30613"{% endif %}>
  45.                 <a href="{{ path('front_construction') }}" class="position-relative">
  46.                     <span>Construction</span> <img src="{{ asset('img/icon-construction.svg') }}">
  47.                 </a>
  48.             </li>
  49.             {#
  50.             <li class="submenu-link deactive" {% if app.request.attributes.get('_route') == 'front_home_management' %}style="background:#e30613"{% endif %}>
  51.                 <a href="{{ path('front_home_management') }}" class="position-relative">
  52.                     <span>Gérance</span> <img src="{{ asset('img/icon-management.svg') }}">
  53.                 </a>
  54.             </li>
  55.             #}
  56.             <li class="submenu-link deactive" {% if app.request.attributes.get('_route') == 'front_contact' %}style="background:#e30613"{% endif %}>
  57.                 <a href="{{ path('front_contact') }}" class="position-relative">
  58.                     <span class="position-absolute">Contact</span> <img src="{{ asset('img/icon-users.svg') }}">
  59.                 </a>
  60.             </li>
  61.         </ul>
  62.     </div>
  63.     <div id="burgerMenu" class="burger-menu position-fixed">
  64.         <div class="bar bar1"></div>
  65.         <div class="bar bar2"></div>
  66.         <div class="bar bar3"></div>
  67.         <i class="fas fa-times fa-2x" id="crossMenu" style="color:#E30613"></i>
  68.     </div>
  69.     <div id="responsiveMenu" class="menu-responsive position-fixed bg-red">
  70.         <ul>
  71.             <li><a class="grey" href="{{ path('front_home_index') }}">Accueil</a></li>
  72.             <li><a class="grey" href="{{ path('front_realestate_list', {'advertType': 'vente'}) }}">Ventes</a></li>
  73.             <li><a class="grey" href="{{ path('front_realestate_list', {'advertType': 'location'}) }}">Locations</a></li>
  74.             <li><a class="grey" href="{{ path('front_construction') }}">Construction</a></li>
  75.             {#
  76.             <li><a class="grey" href="{{ path('front_home_management') }}">Gérance</a></li>
  77.             #}
  78.             <li><a class="grey" href="{{ path('front_who_is') }}">Qui sommes-nous ?</a></li>
  79.             <li><a href="{{ path('front_contact') }}"><img src="{{ asset('img/icon-envelop-menu-white.svg') }}"></a></li>
  80.         </ul>
  81.     </div>
  82. </header>