<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layout/includes/header.html.twig */
class __TwigTemplate_eb21a720496fb01cf81c3510a10dbe5e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/includes/header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/includes/header.html.twig"));
// line 2
$context["currentLocale"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, true, 2), "locale", [], "any", false, false, true, 2);
// line 3
$context["loginRoute"] = ((((isset($context["currentLocale"]) || array_key_exists("currentLocale", $context) ? $context["currentLocale"] : (function () { throw new RuntimeError('Variable "currentLocale" does not exist.', 3, $this->source); })()) == "en")) ? ("login_en") : ("login_es"));
// line 4
echo "
<div id=\"sticky-header\"></div>
<div class=\"header-main header-18\">
";
// line 8
echo " ";
echo twig_include($this->env, $context, "layout/includes/navegation/desktop.html.twig");
echo "
";
// line 10
echo " <header id=\"header\" class=\"header header-space-mobile d-flex align-items-center ";
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 10, $this->source); })())) {
echo "header-authenticated";
} else {
echo "header-unauthenticated";
}
echo "\">
<div class=\"container-fluid\">
<div
class=\"row justify-content-center\">
";
// line 15
echo " <div
class=\"col-6 col-sm-6 col-md-6 col-lg-2 align-self-center justify-content-center d-flex d-lg-none\">
";
// line 18
echo " <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>
";
// line 23
echo " </div>
";
// line 25
echo " ";
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 25, $this->source); })())) {
// line 26
echo " <div class=\"col-6 col-sm-6 col-md-6 col-lg-2 align-items-end d-none d-lg-flex justify-content-end\">
";
// line 28
echo " <div class=\"dropdown\">
<div class=\"user-manual-link iconset\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" style=\"cursor: pointer;\">
<span>";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("User Guide"), "html", null, true);
echo "</span>
</div>
<div class=\"dropdown-menu-end\">
";
// line 33
echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "request", [], "any", false, false, true, 33), "locale", [], "any", false, false, true, 33), 33, $this->source)) . "/includes/user-manual"), [], false);
echo "
</div>
</div>
</div>
";
}
// line 38
echo " ";
// line 39
echo " ";
echo twig_include($this->env, $context, "layout/includes/search-inline.html.twig");
echo "
";
// line 41
echo " ";
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 41, $this->source); })())) {
echo "
<div class=\"col-6 col-sm-6 col-md-6 col-lg-2 d-none d-lg-block\">
</div>
";
}
// line 46
echo " <div class=\"col-6 col-sm-6 col-md-6 col-lg-2 align-items-center d-flex d-lg-none\">
<div class=\"site-search iconset\">
<i class=\"icon an an-search-l\"></i>
<span class=\"tooltip-label\">Search</span>
</div>
";
// line 52
echo "
";
// line 54
echo " ";
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 54, $this->source); })())) {
// line 55
echo " <div class=\"user-link iconset dropdown\">
<button class=\"btn btn-link dropdown-toggle\" type=\"button\" id=\"userDropdown\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"icon an an-user d-block\"></i>
<span class=\"text d-none\"></span>
</button>
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"userDropdown\">
";
// line 61
$context["currentLocale"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 61, $this->source); })()), "request", [], "any", false, false, true, 61), "locale", [], "any", false, false, true, 61);
// line 62
echo " ";
if (((isset($context["currentLocale"]) || array_key_exists("currentLocale", $context) ? $context["currentLocale"] : (function () { throw new RuntimeError('Variable "currentLocale" does not exist.', 62, $this->source); })()) == "en")) {
// line 63
echo " <li><a class=\"dropdown-item\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("myAccount");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("My account"), "html", null, true);
echo "</a></li>
<li><a class=\"dropdown-item\" href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account_logout");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Logout"), "html", null, true);
echo "</a></li>
";
} else {
// line 66
echo " <li><a class=\"dropdown-item\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("myAccount");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mi cuenta"), "html", null, true);
echo "</a></li>
<li><a class=\"dropdown-item\" href=\"";
// line 67
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account_logout");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Salir"), "html", null, true);
echo "</a></li>
";
}
// line 69
echo " </ul>
</div>
";
// line 72
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "request", [], "any", false, false, true, 72), "locale", [], "any", false, false, true, 72), 72, $this->source)) . "/includes/navbar-top"), [], false);
echo "
";
// line 74
echo " ";
// line 75
echo " ";
} else {
// line 76
echo " <div class=\"user-link iconset\">
<a href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed((isset($context["loginRoute"]) || array_key_exists("loginRoute", $context) ? $context["loginRoute"] : (function () { throw new RuntimeError('Variable "loginRoute" does not exist.', 77, $this->source); })()), 77, $this->source));
echo "\">
<i class=\"icon an an-sign-in-al d-block\"></i>
<span class=\"text d-none\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.navbar-desktop.professional-area_translations"), "html", null, true);
echo "</span>
</a>
</div>
";
}
// line 83
echo " ";
// line 84
echo "
";
// line 86
echo " ";
echo twig_include($this->env, $context, "layout/includes/settings.html.twig");
echo "
";
// line 88
echo " </div>
";
// line 90
echo " </div>
</div>
";
// line 93
echo " ";
echo twig_include($this->env, $context, "layout/includes/search-popup.html.twig");
echo "
";
// line 95
echo " </header>
";
// line 97
echo " ";
if (((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 97, $this->source); })()) && (twig_get_attribute($this->env, $this->source, (isset($context["api_sage"]) || array_key_exists("api_sage", $context) ? $context["api_sage"] : (function () { throw new RuntimeError('Variable "api_sage" does not exist.', 97, $this->source); })()), "access_token", [], "any", false, false, true, 97) == ""))) {
// line 98
echo " ";
echo twig_include($this->env, $context, "layout/includes/error-with-sage-api.html.twig");
echo "
";
}
// line 100
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "layout/includes/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 241 => 100, 235 => 98, 232 => 97, 229 => 95, 224 => 93, 220 => 90, 217 => 88, 212 => 86, 209 => 84, 207 => 83, 200 => 79, 195 => 77, 192 => 76, 189 => 75, 187 => 74, 182 => 72, 178 => 69, 171 => 67, 164 => 66, 157 => 64, 150 => 63, 147 => 62, 145 => 61, 137 => 55, 134 => 54, 131 => 52, 124 => 46, 115 => 41, 110 => 39, 108 => 38, 100 => 33, 94 => 30, 90 => 28, 87 => 26, 84 => 25, 81 => 23, 75 => 18, 71 => 15, 59 => 10, 54 => 8, 49 => 4, 47 => 3, 45 => 2,);
}
public function getSourceContext()
{
return new Source("{# 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-space-mobile d-flex align-items-center {% if is_authenticated %}header-authenticated{% else %}header-unauthenticated{% endif %}\">
<div class=\"container-fluid\">
<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\">
{# User Manual Dropdown #}
<div class=\"dropdown\">
<div class=\"user-manual-link iconset\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" style=\"cursor: pointer;\">
<span>{{ 'User Guide' | trans }}</span>
</div>
<div class=\"dropdown-menu-end\">
{{ pimcore_inc('/' ~ app.request.locale ~ '/includes/user-manual',{},false) }}
</div>
</div>
</div>
{% endif %}
{# Search Inline #}
{{ include(\"layout/includes/search-inline.html.twig\") }}
{# End Search Inline #}
{% if is_authenticated %}
<div class=\"col-6 col-sm-6 col-md-6 col-lg-2 d-none d-lg-block\">
</div>
{% endif %}
<div class=\"col-6 col-sm-6 col-md-6 col-lg-2 align-items-center d-flex d-lg-none\">
<div class=\"site-search iconset\">
<i class=\"icon an an-search-l\"></i>
<span class=\"tooltip-label\">Search</span>
</div>
{# End Search #}
{# User Account/Professional Area #}
{% if is_authenticated %}
<div class=\"user-link iconset dropdown\">
<button class=\"btn btn-link dropdown-toggle\" type=\"button\" id=\"userDropdown\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"icon an an-user d-block\"></i>
<span class=\"text d-none\"></span>
</button>
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"userDropdown\">
{% set currentLocale = app.request.locale %}
{% if currentLocale == 'en' %}
<li><a class=\"dropdown-item\" href=\"{{ path('myAccount')}}\">{{ \"My account\" | trans }}</a></li>
<li><a class=\"dropdown-item\" href=\"{{ path('account_logout')}}\">{{ \"Logout\" | trans }}</a></li>
{% else %}
<li><a class=\"dropdown-item\" href=\"{{ path('myAccount')}}\">{{ \"Mi cuenta\" | trans }}</a></li>
<li><a class=\"dropdown-item\" href=\"{{ path('account_logout')}}\">{{ \"Salir\" | trans }}</a></li>
{% endif %}
</ul>
</div>
{# Minicart Drawer #}
{{ pimcore_inc('/' ~ app.request.locale ~ '/includes/navbar-top',{},false) }}
{#\t\t\t\t\t\t{{ 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\"></i>
<span class=\"text d-none\">{{ 'layout.navbar-desktop.professional-area_translations' | trans }}</span>
</a>
</div>
{% endif %}
{# End User Account/Professional Area #}
{# Language Selector #}
{{ include(\"layout/includes/settings.html.twig\") }}
{# End Language Selector #}
</div>
{# End Right Action #}
</div>
</div>
{# Search Popup #}
{{ include(\"layout/includes/search-popup.html.twig\") }}
{# End Search Popup #}
</header>
{# End Header #}
{% if is_authenticated and api_sage.access_token == '' %}
{{ include(\"layout/includes/error-with-sage-api.html.twig\") }}
{% endif %}
</div>", "layout/includes/header.html.twig", "/var/www/html/templates/layout/includes/header.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 2, "if" => 10);
static $filters = array("escape" => 30, "trans" => 30);
static $functions = array("include" => 8, "pimcore_inc" => 33, "path" => 63);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape', 'trans'],
['include', 'pimcore_inc', 'path']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}