templates/layout/header/topbar.html.twig line 1

Open in your IDE?
  1. {% set topbarpages = build_property_nav(document, 'navigationTopbar').pages|filter(page => page.visible) %}
  2. <div class="hidden bg-secondary-900 border-t-5 border-primary lg:flex z-1700">
  3.   <div class="container flex items-center justify-between p-3 text-white max-w-screen-xxl">
  4.     <div class="flex items-center justify-start space-x-8">
  5.       {# Topbar Pages #}
  6.         <ul class="flex gap-5 text-sm">
  7.           <li>
  8.             <a href="/{{app.request.locale}}" class="flex items-center gap-2 px-2 text-white">
  9.               {# prettier-ignore #}
  10.               {% include "icons/home.svg.twig" ignore missing with {class: "w-5 h-5 text-primary"} %}
  11.               <span>{{ "topbar-homepage"|trans }}</span>
  12.             </a>
  13.           </li>
  14.           {% if topbarpages %}
  15.             {% for page in topbarpages %}
  16.               <li>
  17.                 <a href="{{ page.href }}" target="{{ page.target }}" class="flex items-baseline px-2 gap-2 text-white {{ page.active ? 'font-medium' : '' }}">
  18.                   {# prettier-ignore #}
  19.                   {% include "icons/" ~ page.document.property("icon") ~ ".svg.twig" ignore missing with {class: "w-5 h-5 text-primary"}  %}
  20.                   <span>{{ page.label }}</span>
  21.                 </a>
  22.               </li>
  23.             {% endfor %}
  24.           {% endif %}
  25.         </ul>
  26.     </div>
  27.     <div class="flex gap-6">
  28.       {# User #}
  29.       {% include "layout/header/topbar-user.html.twig" %}
  30.       {# Language #}
  31.       {% include "layout/navigation/language.html.twig" %}
  32.     </div>
  33.   </div>
  34. </div>