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

Open in your IDE?
  1. {# Get the current language from the Request #}
  2. {% set currentLocale = app.request.locale %}
  3. {% set loginRoute = (currentLocale == 'en') ? 'login_en' : 'login_es' %}
  4. <div id="sticky-header"></div>
  5. <div class="header-main header-18">
  6.     {# Main Navigation Desktop #}
  7.     {{ include("layout/includes/navegation/desktop.html.twig") }}
  8.     {# End Main Navigation Desktop #}
  9.     <header id="header" class="header header-wrap d-flex align-items-center {% if is_authenticated %}header-authenticated{% else %}header-unauthenticated{% endif %}">
  10.     <div class="container">
  11.             <div
  12.                 class="row justify-content-center">
  13.                 {# Logo / Menu Toggle #}
  14.                 <div
  15.                     class="col-6 col-sm-6 col-md-6 col-lg-2 align-self-center justify-content-center d-flex d-lg-none">
  16.                     {# Mobile Toggle #}
  17.                     <button type="button" class="btn--link site-header__menu js-mobile-nav-toggle mobile-nav--open me-3 d-lg-none">
  18.                         <i class="icon an an-times-l"></i>
  19.                         <i class="icon an an-bars-l"></i>
  20.                     </button>
  21.                     {# End Mobile Toggle #}
  22.                 </div>
  23.                 {# End Logo / Menu Toggle #}
  24.                 {% if is_authenticated %}
  25.                     <div class="col-6 col-sm-6 col-md-6 col-lg-2 align-items-end d-none d-lg-flex justify-content-end">
  26.                         {# Setting Dropdown #}
  27.                         <div class="user-manual-link iconset">
  28.                                 <span>{{ 'User Guide' | trans }}</span>
  29.                         </div>
  30.                         {{ pimcore_inc('/' ~ app.request.locale ~ '/includes/user-manual',{},false) }}
  31.                     </div>
  32.                 {% endif %}
  33.                 {# Search Inline #}
  34.                 {{ include("layout/includes/search-inline.html.twig") }}
  35.                 {# End Search Inline #}
  36.                 {# Right Action #}
  37.                 <div class="col-6 col-sm-6 col-md-6 col-lg-2 align-items-center d-flex"> {# Search #}
  38.                     <div class="site-search iconset d-block d-lg-none">
  39.                         <i class="icon an an-search-l"></i>
  40.                         <span class="tooltip-label">Search</span>
  41.                     </div>
  42.                     {# End Search #}
  43.                     {# Setting Dropdown #}
  44.                     {% if is_authenticated %}
  45.                         <div class="user-link iconset">
  46.                             <i class="icon an an-user d-block"></i>
  47.                             <span class="text d-none d-lg-flex"></span>
  48.                         </div>
  49.                         {{ include("layout/includes/user-links.html.twig") }}
  50.                         {# Minicart Drawer #}
  51.                         {{ pimcore_inc('/' ~ app.request.locale ~ '/includes/navbar-top',{},false) }}
  52.                         {#                        {{ include("layout/includes/minicart/minicart-drawer-btn.html.twig") }}#}
  53.                         {# End Minicart Drawer #}
  54.                     {% else %}
  55.                         <div class="user-link iconset">
  56.                             <a href="{{ path(loginRoute) }}">
  57.                                 <i class="icon an an-sign-in-al d-block d-lg-none"></i>
  58.                                 <span class="text d-none d-lg-flex">{{ 'layout.navbar-desktop.professional-area_translations' | trans }}</span>
  59.                             </a>
  60.                         </div>
  61.                     {% endif %}
  62.                     {# End Setting Dropdown #}
  63.                     {# Setting Dropdown #}
  64.                     {{ include("layout/includes/settings.html.twig") }}
  65.                     {# End Setting Dropdown #}
  66.                 </div>
  67.                 {# End Right Action #}
  68.             </div>
  69.         </div>
  70.         {# Search Popup #}
  71.         {{ include("layout/includes/search-popup.html.twig") }}
  72.         {# End Search Popup #}
  73.     </header>
  74.     {# End Header #}
  75.      {{ pimcore_inc(document.getProperty('categories-navbar'), {}, false) }}
  76.     {% if is_authenticated and api_sage.access_token == '' %}
  77.         {{ include("layout/includes/error-with-sage-api.html.twig") }}
  78.     {% endif %}
  79. </div>