templates/front/common/navigation.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'menu' %}
  2. <nav class="main w-100 h-100 position-fixed bg-dark pt-3 pb-5">
  3.     <div class="container-fluid position-relative">
  4.         <a href="" class="toggleNav white position-absolute pl-3">
  5.             <img src="{{ asset('images/front/alliance-reseaux/times.svg') }}"
  6.                  class="img-fluid" width="16" height="16" />
  7.         </a>
  8.         <div class="row d-block d-lg-none">
  9.             <div class="col-12 text-center d-inline-block">
  10.                 <a href="{{ url('front_home') }}">
  11.                     <img src="{{ asset('images/front/header/logo-home.svg') }}"
  12.                          class="img-fluid logoMobile" alt="Alpes Isère"
  13.                          title="Alpes Isère"/>
  14.                 </a>
  15.             </div>
  16.         </div>
  17.         <div class="row">
  18.             <div class="container">
  19.                 <div class="row">
  20.                     <div class="col-12 pt-5">
  21.                         <div class="row">
  22.                             <div class="col-10 offset-1 col-lg-3 offset-lg-1 experiences">
  23.                                 <ul>
  24.                                     <li>{{ 'experience.title'|trans }}</li>
  25.                                     {% if getTypologies() %}
  26.                                         {% for typology in getTypologies() %}
  27.                                             {# @var  typology \App\Entity\Typology #}
  28.                                             <li><a href="{{ path('catalog',{'typology': typology.slug }) }}">{{ typology.label }}</a></li>
  29.                                         {% endfor %}
  30.                                         <li><a href="{{ path('catalog',{'typology': constant('App\\Constant\\SlugConstants::ALL_EXPERIENCES') }) }}">{{ 'experience.all'|trans }}</a></li>
  31.                                     {% endif %}
  32.                                 </ul>
  33.                             </div>
  34.                             <div class="w-100 d-block d-lg-none"></div>
  35.                             <div class="col-10 offset-1 col-sm-6 col-lg-3 offset-lg-1 pages pt-5 pt-lg-0">
  36.                                 <ul>
  37.                                     <li><a href="{{ path('magazine') }}">{{ 'magazine'|trans }}</a></li>
  38.                                     {% if getPages() %}
  39.                                         {% for page in getPages() %}
  40.                                             {# @var page \App\Entity\Page  #}
  41.                                             <li><a href="{{ path('page',{'slug': page.slug  }) }}">{{ page.title }}</a></li>
  42.                                         {% endfor %}
  43.                                     {% endif %}
  44.                                     <li><a href="{{ path('contact') }}">{{ 'contact'|trans }}</a></li>
  45.                                 </ul>
  46.                             </div>
  47.                             <div class="col-12 col-lg-2 offset-lg-1 d-none d-lg-block">
  48.                                 <ul>
  49.                                     <li>
  50.                                         <a href="{{ url('front_home') }}">
  51.                                             <img src="{{ asset('images/front/header/logo-home.svg') }}"
  52.                                                  class="img-fluid" alt="Alpes Isère"
  53.                                                  title="Alpes Isère"/>
  54.                                         </a>
  55.                                     </li>
  56.                                 </ul>
  57.                             </div>
  58.                         </div>
  59.                     </div>
  60.                 </div>
  61.             </div>
  62.         </div>
  63.     </div>
  64. </nav>