templates/includes/header-new.html.twig line 1

Open in your IDE?
  1. {# Affiche le  header #}
  2. <header id="header" class="{{ document.property('header-white') ? "apk-header-white" : "" }}">
  3.     <div class="apk-header">
  4.         <div class="apk-header-desktop uk-visible@m">
  5.             <div class="uk-container apk-container-1500 uk-position-relative">
  6.                 <div class="uk-width-auto">
  7.                     <div class="uk-flex-center" uk-navbar>
  8.                         {% include "includes/main-nav.html.twig" %}
  9.                     </div>
  10.                     {% if document.property('no-switcher') == true %}
  11.                     {% else %}
  12.                     <div class="apk-hexagone">
  13.                         {{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
  14.                         <a href="/{{ app.request.locale }}">
  15.                             <img uk-svg width="250" height="250" src="/static/img/headers/hexagone.svg" alt="" aria-hidden="true">
  16.                             {% if document.property('header-white') %}
  17.                                 <img class="apk-logo" src="{{ document.property('headerLogo').thumbnail('header-logo') }}" alt="{{ "Your website name"|trans }}">   
  18.                             {% else %}
  19.                                 <img class="apk-logo" src="{{ document.property('headerLogoDark').thumbnail('header-logo') }}" alt="{{ "Your website name"|trans }}">     
  20.                             {% endif %}
  21.                         </a>
  22.                     </div>
  23.                     {% endif %}
  24.                 </div>
  25.             </div>
  26.         </div>
  27.         <div class="apk-header-mobile uk-hidden@m">
  28.             <div class="uk-container">
  29.                 <div uk-navbar>
  30.                     <div class="uk-navbar-left">
  31.                         <a href="/{{ app.request.locale }}">
  32.                             {% if document.property('header-white') %}
  33.                                 <img class="apk-logo" src="{{ document.property('headerLogo').thumbnail('header-logo') }}" alt="{{ "Your website name"|trans }}">   
  34.                             {% else %}
  35.                                 <img class="apk-logo" src="{{ document.property('headerLogoDark').thumbnail('header-logo') }}" alt="{{ "Your website name"|trans }}">     
  36.                             {% endif %}
  37.                         </a>
  38.                     </div>
  39.                     <div class="uk-navbar-right">
  40.                         <a href="#menu-mobile" uk-toggle>
  41.                             <img uk-svg src="/static/img/pictos/menu-burger.svg" alt="">
  42.                         </a>
  43.                     </div>
  44.                 </div>
  45.             </div>
  46.         </div>
  47.     </div>
  48. </header>
  49. {% include "includes/offcanvas.html.twig" %}