templates/header.html.twig line 1

Open in your IDE?
  1. <div class="header-container dflex jcsb header-section introjs-no-highlight">
  2.     <div class="header-logo dflex jcfe aic">
  3.         <a href="{{ sulu_content_root_path() }}"><img src="/resources/img/header-logo.svg" alt="retour à l'accueil" width="239" height="79" loading="lazy"></a>
  4.     </div>
  5.     <div class="header-right">
  6.         <div class="header-top not-visible-mobile aic jcfe dflex bgblue">
  7.             <div class="dflex aic">
  8.                 <div class="dflex">
  9.                     {% include 'header/gt-newsletter-user.html.twig' %}
  10.                 </div>
  11.             </div>
  12.         </div>
  13.         <div class="header-middle bgorange dflex aic jcfe">
  14.             <nav class="main-nav dflex jcc aic">
  15.                 <ul class="dflex fwwrap jcsa">
  16.                     {% for item in sulu_navigation_root_tree('main', 3,true) %}
  17.                         <li class="menu-element dflex aic">
  18.                             {% if item.children|length > 0 %}
  19.                                 <a href="javascript:;" onclick="return false;" title="{{ item.title }}" class="diflex cwhite fw600 fs18 lh28 nodeco dropdown-button" aria-expanded="false">{{ item.title }}
  20.                                     <div class="dflex aic arrow-container">{{ source('svg/arrow-icon.html.twig') }}</div>
  21.                                 </a>
  22.                                 <ul class="submenu dropdown-element">
  23.                                     {% for child in item.children %}
  24.                                         {% set icon = false %}
  25.                                         {% for item in child.excerpt.icon %}
  26.                                             {% if item.url is defined and item.url is not empty %}
  27.                                                 {% set icon = item %}
  28.                                             {% endif %}
  29.                                         {% endfor %}
  30.                                         <li class="dflex">
  31.                                             <a href="{{ sulu_content_path(child.url) }}" title="{{ child.title }}" class="fw400 nodeco menu-link icon-display">
  32.                                                 {% if icon %}
  33.                                                 <span class="span-icon"><img src="{{ icon.formats['300x'] }}" alt="" width={{icon.fileVersion.properties.width}} height={{icon.fileVersion.properties.height}} loading="lazy"></span>
  34.                                                 {% endif %}
  35.                                                 <span>{{ child.title }}</span>
  36.                                             </a>
  37.                                         </li>
  38.                                     {% endfor %}
  39.                                 </ul>
  40.                             {% else %}
  41.                                 <a href="{{ sulu_content_path(item.url, item.webspaceKey) }}" title="{{ item.title }}" class="dblock cwhite fw600 fs18 lh28 nodeco">{{ item.title }}</a>
  42.                             {% endif %}
  43.                         </li>
  44.                     {% endfor %}
  45.                 </ul>
  46.                 <div class="visible-mobile dflex aic fdc">
  47.                     {% include 'header/gt-newsletter-user.html.twig' %}
  48.                 </div>
  49.             </nav>
  50.             <nav id="search-nav" class="search-nav pr-1p5em">
  51.                 <a href="#" id="main-search-button" class="main-search-button dflex jcc aic" title="Rechercher"><img src="/resources/img/search-icon.svg" alt="Icone de recherche loupe" style="pointer-events: none;" width="16" height="16" loading="lazy"></a>
  52.             </nav>
  53.             <div class="visible-mobile-flex dflex aic">
  54.                 <button id="menu-button" class="menu buttons" aria-label="Main Menu">
  55.                     {{ source('svg/menu-icon.html.twig') }}
  56.                 </button>
  57.             </div>
  58.         </div>
  59.     </div>
  60.     <div class="header-deco not-visible-mobile">
  61.         <div class="bgblue"></div>
  62.         <div class="bgorange"></div>
  63.     </div>
  64. </div>