{# Get the current language from the Request #}
{% set currentLocale = app.request.locale %}
{% set loginRoute = (currentLocale == 'en') ? 'login_en' : 'login_es' %}
<div id="sticky-header"></div>
<div class="header-main header-18">
{# Main Navigation Desktop #}
{{ include("layout/includes/navegation/desktop.html.twig") }}
{# End Main Navigation Desktop #}
<header id="header" class="header header-wrap d-flex align-items-center {% if is_authenticated %}header-authenticated{% else %}header-unauthenticated{% endif %}">
<div class="container">
<div
class="row justify-content-center">
{# Logo / Menu Toggle #}
<div
class="col-6 col-sm-6 col-md-6 col-lg-2 align-self-center justify-content-center d-flex d-lg-none">
{# Mobile Toggle #}
<button type="button" class="btn--link site-header__menu js-mobile-nav-toggle mobile-nav--open me-3 d-lg-none">
<i class="icon an an-times-l"></i>
<i class="icon an an-bars-l"></i>
</button>
{# End Mobile Toggle #}
</div>
{# End Logo / Menu Toggle #}
{% if is_authenticated %}
<div class="col-6 col-sm-6 col-md-6 col-lg-2 align-items-end d-none d-lg-flex justify-content-end">
{# Setting Dropdown #}
<div class="user-manual-link iconset">
<span>{{ 'User Guide' | trans }}</span>
</div>
{{ pimcore_inc('/' ~ app.request.locale ~ '/includes/user-manual',{},false) }}
</div>
{% endif %}
{# Search Inline #}
{{ include("layout/includes/search-inline.html.twig") }}
{# End Search Inline #}
{# Right Action #}
<div class="col-6 col-sm-6 col-md-6 col-lg-2 align-items-center d-flex"> {# Search #}
<div class="site-search iconset d-block d-lg-none">
<i class="icon an an-search-l"></i>
<span class="tooltip-label">Search</span>
</div>
{# End Search #}
{# Setting Dropdown #}
{% if is_authenticated %}
<div class="user-link iconset">
<i class="icon an an-user d-block"></i>
<span class="text d-none d-lg-flex"></span>
</div>
{{ include("layout/includes/user-links.html.twig") }}
{# Minicart Drawer #}
{{ pimcore_inc('/' ~ app.request.locale ~ '/includes/navbar-top',{},false) }}
{# {{ include("layout/includes/minicart/minicart-drawer-btn.html.twig") }}#}
{# End Minicart Drawer #}
{% else %}
<div class="user-link iconset">
<a href="{{ path(loginRoute) }}">
<i class="icon an an-sign-in-al d-block d-lg-none"></i>
<span class="text d-none d-lg-flex">{{ 'layout.navbar-desktop.professional-area_translations' | trans }}</span>
</a>
</div>
{% endif %}
{# End Setting Dropdown #}
{# Setting Dropdown #}
{{ include("layout/includes/settings.html.twig") }}
{# End Setting Dropdown #}
</div>
{# End Right Action #}
</div>
</div>
{# Search Popup #}
{{ include("layout/includes/search-popup.html.twig") }}
{# End Search Popup #}
</header>
{# End Header #}
{{ pimcore_inc(document.getProperty('categories-navbar'), {}, false) }}
{% if is_authenticated and api_sage.access_token == '' %}
{{ include("layout/includes/error-with-sage-api.html.twig") }}
{% endif %}
</div>