templates/include/header.html.twig line 1

Open in your IDE?
  1. {# --------------------------------------------------- ------ ---------------------------------------------------#}
  2. {# --------------------------------------------------- HEADER ---------------------------------------------------#}
  3. {# --------------------------------------------------- ------ ---------------------------------------------------#}
  4. <div id="header" {% if antibiogarde is defined and antibiogarde == 1 %} style="display: none;" {% endif %}>
  5.     <a href="{{ path('index') }}">
  6.         <img id="logoABXBMI" src="{{ asset('build/img/icon1024.png') }}" alt="Logo ABXBMI">
  7.     </a>
  8.     <div id="titres">
  9.         <p id="titre1">{{ 'title'|trans }}</p>
  10.         <div id="petiteLigneImg">
  11.             <img id="logoANTIBIO" src="{{ asset('build/img/antibiogarde-logo.png') }}" alt="antibiogardeLogo">
  12.             <img id="logoSPLIF" src="{{ asset('build/img/spilf-logo.png') }}" alt="spilfLogo">
  13.         </div>
  14.         <div id="petiteLigne">
  15.             <p align="right" class="pl">{{ 'spilf'|trans }}</p>
  16.         </div>
  17.     </div>
  18.     {# Bloc pour les drapeaux en haut à droite #}
  19.     <div id="lang-switcher" style="position: absolute; top: 10px; right: 10px;">
  20.         {# Drapeau français #}
  21.         <a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'fr'})) }}" style="text-decoration: none">
  22.             <img src="{{ asset('build/img/fr_flag.jpg') }}" alt="Français"
  23.                  style="
  24.                  {% if currentLocale == 'fr' %}
  25.                          width: 40px; height: 25px;
  26.                  {% else %}
  27.                          width: 30px; height: 20px; filter: grayscale(100%);
  28.                  {% endif %}
  29.                          margin-right: 5px;
  30.                          ">
  31.         </a>
  32.         {# Drapeau anglais #}
  33.         <a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}" style="text-decoration: none">
  34.             <img src="{{ asset('build/img/en_flag.jpg') }}" alt="English"
  35.                  style="
  36.                  {% if currentLocale == 'en' %}
  37.                          width: 40px; height: 25px;
  38.                  {% else %}
  39.                          width: 30px; height: 20px; filter: grayscale(100%);
  40.                  {% endif %}
  41.                          ">
  42.         </a>
  43.     </div>
  44. </div>