<?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/navegation/desktop.html.twig */
class __TwigTemplate_c7af060569d2f7f971c082bf2a322d66 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/navegation/desktop.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/navegation/desktop.html.twig"));
// line 1
echo "<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
";
// line 4
if ((((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 4, $this->source); })()) == "/es/empresa") || ((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 4, $this->source); })()) == "/en/about-us"))) {
// line 5
echo " ";
$context["isAboutUs"] = true;
// line 6
echo " ";
} else {
// line 7
echo " ";
$context["isAboutUs"] = false;
// line 8
echo " ";
}
// line 9
echo "
/* Base styles */
.menu-outer {
background-color: #fff;
}
#siteNav.medium {
font-family: 'Montserrat', sans-serif;
display: flex;
align-items: center;
flex-wrap: nowrap;
list-style-type: none;
padding-left: 0;
flex-grow: 1;
justify-content: space-between;
width: 100%;
gap: 5px;
}
#siteNav.medium > li a {
font-size: 16px;
padding: 8px 15px;
font-weight: 600;
";
// line 32
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 32, $this->source); })())) {
// line 33
echo " color: #6c757d;
";
} else {
// line 35
echo " color: #000000;
";
}
// line 37
echo " position: relative;
display: inline-block;
overflow: hidden;
text-transform: capitalize;
border-radius: 4px;
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
text-decoration: none;
}
#siteNav.medium > li > a {
margin-left: 0;
}
#siteNav.medium > li {
margin-right: 5px;
}
#siteNav.medium > li:last-child {
margin-right: 0;
}
/* Hover line effect */
#siteNav.medium > li a::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
";
// line 66
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 66, $this->source); })())) {
// line 67
echo " background-color: #6c757d;
";
} else {
// line 69
echo " background-color: #333;
";
}
// line 71
echo " transition: width 0.3s ease-out, transform 0.3s ease-out;
transform: translateX(-50%);
transform-origin: center;
}
#siteNav.medium > li a:hover::after {
width: 100%;
transform: translateX(-50%) scaleX(1);
}
#siteNav.medium > li .dropdown-item {
";
// line 82
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 82, $this->source); })())) {
// line 83
echo " color: #6c757d;
";
} else {
// line 85
echo " color: #333;
";
}
// line 87
echo " font-family: 'Montserrat', sans-serif;
}
#siteNav.medium > li .dropdown-item:hover {
background-color: #0d6efd;
color: #fff;
font-weight: 600;
}
/* Active link */
#siteNav.medium > li.active-link > a {
";
// line 98
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 98, $this->source); })())) {
// line 99
echo " color: #6c757d !important;
";
} else {
// line 101
echo " color: #333 !important;
";
}
// line 103
echo " font-weight: 700;
background-color: transparent !important;
}
#siteNav.medium > li.active-link > a::after {
width: 100%;
transform: translateX(-50%) scaleX(1);
";
// line 110
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 110, $this->source); })())) {
// line 111
echo " background-color: #6c757d;
";
} else {
// line 113
echo " background-color: #333;
";
}
// line 115
echo " }
#siteNav.medium > li a:hover {
";
// line 118
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 118, $this->source); })())) {
// line 119
echo " color: #6c757d !important;
";
} else {
// line 121
echo " color: #000000 !important;
";
}
// line 123
echo " background-color: transparent !important;
}
#siteNav.medium > li.lvl1.parent.megamenu .megamenu a:hover{
color: inherit !important;
}
#siteNav.medium > li a:hover::after {
";
// line 131
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 131, $this->source); })())) {
// line 132
echo " background-color: #6c757d;
";
} else {
// line 134
echo " background-color: #333;
";
}
// line 136
echo " }
/* Professional area button */
.login-nav-item a.site-nav {
background: linear-gradient(to bottom right, #91D6F3, #3F91F3);
color: #fff !important;
padding: 10px 25px !important;
border-radius: 50px !important;
text-transform: capitalize !important;
font-weight: 700 !important;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
border: none;
white-space: nowrap !important;
min-width: max-content !important;
}
/* Technical area button */
#siteNav.medium > li a[href*=\"technicalArea\"],
#siteNav.medium > li a[href*=\"technical-area\"] {
white-space: nowrap !important;
min-width: max-content !important;
}
.login-nav-item a.site-nav:hover {
background: linear-gradient(to bottom right, #3F91F3, #91D6F3);
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
}
.login-nav-item a.site-nav i {
color: #fff !important;
}
/* Professional area header styling - cart and user icons */
.header-cart .site-header__cart i {
color: #6c757d !important;
}
.header-cart .site-header__cart:hover i {
color: #6c757d !important;
}
.header-cart .site-cart-count {
background-color: #6c757d !important;
color: #fff !important;
transition: background-color 0.2s ease-in-out;
}
.header-cart .site-header__cart:hover .site-cart-count {
background-color: #6c757d !important;
}
";
// line 188
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 188, $this->source); })())) {
// line 189
echo " .user-link.iconset .icon.an-user {
color: #6c757d !important;
}
.user-link.iconset:hover .icon.an-user {
color: #6c757d !important;
}
.user-link.iconset .icon {
color: #6c757d !important;
}
.user-link.iconset:hover .icon {
color: #6c757d !important;
}
.d-flex.align-items-center .user-link.iconset .icon {
color: #6c757d !important;
}
.d-flex.align-items-center .user-link.iconset:hover .icon {
color: #6c757d !important;
}
i.icon.an-user.d-block {
color: #6c757d !important;
}
.user-link.iconset i.icon.an-user.d-block {
color: #6c757d !important;
}
.user-link.iconset:hover i.icon.an-user.d-block {
color: #6c757d !important;
}
";
}
// line 225
echo "
/* User manual link styling */
";
// line 227
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 227, $this->source); })())) {
// line 228
echo " .user-manual-link.iconset {
font-family: 'Montserrat', sans-serif;
}
.user-manual-link.iconset span {
color: #6c757d !important;
font-weight: 600;
font-size: 11px;
text-transform: capitalize;
transition: color 0.2s ease-in-out;
cursor: pointer;
}
.user-manual-link.iconset:hover span {
color: #6c757d !important;
}
";
}
// line 245
echo "
/* Logo sizing */
#siteNav.medium > li:first-child a img,
.navbar-logo {
min-width: 45px !important;
width: 60px !important;
}
/* Hover de logo, megamenu, empresa y idioma */
.logo-nav-item .logo-link::after {
display: none;
}
.logo-nav-item .logo-link:hover::after {
display: none;
}
#siteNav.medium > li.logo-nav-item a::after {
display: none;
}
#siteNav.medium > li.logo-nav-item a:hover::after {
display: none;
}
.lvl1.parent.megamenu * a::after,
.lvl1.parent.megamenu * a:hover::after
{
display: none;
color: initial;
background-color: initial;
}
#siteNav .menu-brand-logo a {
transition: background-color 0.3s ease-in-out;
background-color: transparent;
}
#siteNav .menu-brand-logo a:hover {
background-color: #f0f0f0 !important;
}
#siteNav.medium .menu-brand-logo a:hover {
background-color: #f0f0f0 !important;
}
#siteNav.medium > li.lvl1.parent.dropdown ul.dropdown a::after,
#siteNav.medium > li.lvl1.parent.dropdown ul.dropdown a:hover::after {
display: none;
}
.lang-image {
min-width: 25px !important;
width: 30px !important;
object-fit: contain;
}
#siteNav.medium > li.lang-image-li a:hover::after {
display: none;
}
/* Search animation */
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
animation: shake 0.5s;
}
#search-box::placeholder {
color: #FF0000;
}
#siteNav.medium .d-flex.align-items-center .iconset {
display: flex;
align-items: center;
height: auto;
padding: 8px 15px;
margin: 0;
}
/* Responsive breakpoints */
@media only screen and (min-width: 1800px) {
#siteNav.medium > li a {
padding: 10px 20px;
font-size: 17px;
}
}
@media only screen and (min-width: 1740px) and (max-width: 1640px) {
#siteNav.medium {
gap: 10px;
}
#siteNav.medium > li a {
padding: 8px 15px;
font-size: 16px;
}
#siteNav.medium > li {
flex: 0 1 auto;
}
#siteNav.medium > li:not(:first-child):not(.lang-image-li):not(.user-menu):not(.login-nav-item):not(.minicart-nav-item) {
flex: 1 1 auto;
max-width: 180px;
}
}
@media only screen and (max-width: 1690px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 15px;
}
}
@media only screen and (max-width: 1500px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 15px;
}
}
@media only screen and (max-width: 1300px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 14px;
}
}
@media (max-width: 1090px) {
#siteNav.medium > li a {
padding: 8px 5px;
font-size: 14px;
}
.login-nav-item a.site-nav .text {
display: inline !important;
white-space: nowrap !important;
}
.login-nav-item a.site-nav i {
display: none !important;
}
#siteNav.medium > li a[href*=\"technicalArea\"],
#siteNav.medium > li a[href*=\"technical-area\"] {
white-space: nowrap !important;
min-width: max-content !important;
}
}
@media (min-width: 1240px) {
.login-nav-item a.site-nav .text.d-none.d-xl-inline {
display: inline !important;
}
.login-nav-item a.site-nav i.d-block.d-xl-none {
display: none !important;
}
}
@media (max-width: 1239px) {
.login-nav-item a.site-nav .text.d-none.d-xl-inline {
display: none !important;
}
.login-nav-item a.site-nav i.d-block.d-xl-none {
display: block !important;
}
}
@media (min-width: 991px) {
.header.header-space-mobile {
padding-bottom: 15px;
}
}
@media (max-width: 991px) {
.header.header-space-mobile {
padding: 15px 0;
}
}
</style>
<div class=\"menu-outer d-none d-lg-block pb-1 mt-1\">
\t<div class=\"container-fluid\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-1 col-sm-1 col-md-1 col-lg-12 align-self-center d-menu-col\">
\t\t\t\t<nav class=\"grid__item position-relative\" id=\"AccessibleNav\" >
";
// line 434
echo "\t\t\t\t\t<ul id=\"siteNav\" class=\"site-nav medium center hidearrow align-items-center\">
<li class=\"lvl1 logo-nav-item\"> ";
// line 436
echo " <a href=\"";
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 436, $this->source); })())) ? (print ("#sticky-header")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 436, $this->source); })()) . "/"), "html", null, true))));
echo "\" class=\"m-0 p-0 py-2 logo-link\">
<img src=\"";
// line 437
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static2/images/midnight/assets/logo-bsn.png"), "html", null, true);
echo "\" class=\"rounded-circle navbar-logo\" style=\"width: 35px; vertical-align: middle;\">
</a>
</li>
";
// line 441
echo " <li class=\"lvl1 parent megamenu\">
<a href=\"";
// line 442
echo twig_escape_filter($this->env, ("/" . (((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.', 442, $this->source); })()), "request", [], "any", false, false, true, 442), "locale", [], "any", false, false, true, 442) == "en")) ? ("en/products/default_m1") : ("es/productos/default_m1"))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.navbar-desktop.products_translations"), "html", null, true);
echo "
<i class=\"an an-angle-down-l\"></i>
</a>
";
// line 445
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 445, $this->source); })()), "getProperty", ["categories-navbar"], "method", false, false, true, 445), 445, $this->source), [], false);
echo "
</li>
";
// line 448
echo " ";
// line 449
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 450
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 450, $this->source); })())) ? (print ("#featured-services")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 450, $this->source); })()) . "#featured-services"), "html", null, true))));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.footer.information.professional-area_translations"), "html", null, true);
echo "
<i class=\"an an-angle-down-l\"></i>
</a>
<ul class=\"dropdown\">
<li><a href=\"";
// line 454
(((isset($context["isAboutUs"]) || array_key_exists("isAboutUs", $context) ? $context["isAboutUs"] : (function () { throw new RuntimeError('Variable "isAboutUs" does not exist.', 454, $this->source); })())) ? (print ("#company")) : (print (twig_escape_filter($this->env, (((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 454, $this->source); })()) . "/") . (((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.', 454, $this->source); })()), "request", [], "any", false, false, true, 454), "locale", [], "any", false, false, true, 454) == "en")) ? ("about-us") : ("empresa"))), "html", null, true))));
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.about-us_title_translations"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 455
(((isset($context["isAboutUs"]) || array_key_exists("isAboutUs", $context) ? $context["isAboutUs"] : (function () { throw new RuntimeError('Variable "isAboutUs" does not exist.', 455, $this->source); })())) ? (print ("#technicalAdvice")) : (print (twig_escape_filter($this->env, (((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 455, $this->source); })()) . "/") . (((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.', 455, $this->source); })()), "request", [], "any", false, false, true, 455), "locale", [], "any", false, false, true, 455) == "en")) ? ("about-us#technicalAdvice") : ("empresa#technicalAdvice"))), "html", null, true))));
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.about-us-cards.technical_advice_translations"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 456
(((isset($context["isAboutUs"]) || array_key_exists("isAboutUs", $context) ? $context["isAboutUs"] : (function () { throw new RuntimeError('Variable "isAboutUs" does not exist.', 456, $this->source); })())) ? (print ("#customService")) : (print (twig_escape_filter($this->env, (((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 456, $this->source); })()) . "/") . (((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.', 456, $this->source); })()), "request", [], "any", false, false, true, 456), "locale", [], "any", false, false, true, 456) == "en")) ? ("about-us#customService") : ("empresa#customService"))), "html", null, true))));
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.about-us-cards.custom_service_translations"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 457
(((isset($context["isAboutUs"]) || array_key_exists("isAboutUs", $context) ? $context["isAboutUs"] : (function () { throw new RuntimeError('Variable "isAboutUs" does not exist.', 457, $this->source); })())) ? (print ("#stockLogistic")) : (print (twig_escape_filter($this->env, (((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 457, $this->source); })()) . "/") . (((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.', 457, $this->source); })()), "request", [], "any", false, false, true, 457), "locale", [], "any", false, false, true, 457) == "en")) ? ("about-us#stockLogistic") : ("empresa#stockLogistic"))), "html", null, true))));
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.about-us-cards.stock_and_logistics_translations"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 458
(((isset($context["isAboutUs"]) || array_key_exists("isAboutUs", $context) ? $context["isAboutUs"] : (function () { throw new RuntimeError('Variable "isAboutUs" does not exist.', 458, $this->source); })())) ? (print ("#stockLogistic")) : (print (twig_escape_filter($this->env, (((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 458, $this->source); })()) . "/") . (((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.', 458, $this->source); })()), "request", [], "any", false, false, true, 458), "locale", [], "any", false, false, true, 458) == "en")) ? ("about-us#stockLogistic") : ("empresa#stockLogistic"))), "html", null, true))));
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.about-us-cards.training_translations"), "html", null, true);
echo "</a></li>
</ul>
</li>
";
// line 462
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 463
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 463, $this->source); })())) ? (print ("#technicalArea")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 463, $this->source); })()) . "#technicalArea"), "html", null, true))));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Layout.Navegation.Technical-Area_translations"), "html", null, true);
echo "
<i class=\"an an-angle-down-l\"></i>
</a>
";
// line 466
if ((((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 466, $this->source); })()) != "/") && ((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 466, $this->source); })()) != "/en"))) {
// line 467
echo " <ul class=\"dropdown\">
<li><a href=\"";
// line 468
echo twig_escape_filter($this->env, ("/" . (((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.', 468, $this->source); })()), "request", [], "any", false, false, true, 468), "locale", [], "any", false, false, true, 468) == "en")) ? ("en/technical-area/painting-schemes") : ("es/area-tecnica/esquemas-de-pintado"))), "html", null, true);
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Esquemas de pintado"), "html", null, true);
echo "</a></li>
<li><a href=\"#\" class=\"site-nav\" id=\"search-link\">";
// line 469
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Fichas técnicas y de seguridad"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 470
echo twig_escape_filter($this->env, ("/" . (((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.', 470, $this->source); })()), "request", [], "any", false, false, true, 470), "locale", [], "any", false, false, true, 470) == "en")) ? ("en/technical-area/calculate-square-meters") : ("es/area-tecnica/calcular-metros-cuadrados"))), "html", null, true);
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Calcular metros cuadrados"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 471
echo twig_escape_filter($this->env, ("/" . (((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.', 471, $this->source); })()), "request", [], "any", false, false, true, 471), "locale", [], "any", false, false, true, 471) == "en")) ? ("en/technical-area/how-much-paint-do-I-need") : ("es/area-tecnica/cuanta-pintura-necesito"))), "html", null, true);
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cuánta pintura necesito?"), "html", null, true);
echo "</a></li>
</ul>
";
}
// line 474
echo " </li>
";
// line 476
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 477
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 477, $this->source); })())) ? (print ("#catalog")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 477, $this->source); })()) . "#catalog"), "html", null, true))));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("lbl_Catálogo"), "html", null, true);
echo "
<i class=\"an an-angle-down-l\"></i>
</a>
</li>
";
// line 481
if ( !(isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 481, $this->source); })())) {
// line 482
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 483
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 483, $this->source); })())) ? (print ("#collaborators")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 483, $this->source); })()) . "#collaborators"), "html", null, true))));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.navegation.collaborators_translations"), "html", null, true);
echo "<i class=\"an an-angle-down-l\"></i></a>
";
// line 484
if ((((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 484, $this->source); })()) != "/") && ((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 484, $this->source); })()) != "/en"))) {
// line 485
echo " <ul class=\"dropdown\">
<li>
<a href=\"";
// line 487
echo twig_escape_filter($this->env, ("/" . (((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.', 487, $this->source); })()), "request", [], "any", false, false, true, 487), "locale", [], "any", false, false, true, 487) == "en")) ? ("en/point-of-sale") : ("es/puntos-de-venta"))), "html", null, true);
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.collaborators.points-of-sale_translations"), "html", null, true);
echo "</a>
</li>
<li>
<a href=\"";
// line 490
echo twig_escape_filter($this->env, ("/" . (((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.', 490, $this->source); })()), "request", [], "any", false, false, true, 490), "locale", [], "any", false, false, true, 490) == "en")) ? ("en/industry-professionals") : ("es/profesionales-del-sector"))), "html", null, true);
echo "\" class=\"site-nav\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home.collaborators.industry-professionals_translations"), "html", null, true);
echo "</a>
</li>
</ul>
";
}
// line 494
echo " </li>
";
} else {
// line 496
echo "
";
// line 498
echo " ";
$context["ratesEnRoute"] = "rates-view-translated-en";
// line 499
echo " ";
$context["ratesEsRoute"] = "rates-view-translated-es";
// line 500
echo "
";
// line 502
echo " ";
if (((isset($context["currentLocale"]) || array_key_exists("currentLocale", $context) ? $context["currentLocale"] : (function () { throw new RuntimeError('Variable "currentLocale" does not exist.', 502, $this->source); })()) == "en")) {
// line 503
echo " ";
$context["ratesRoute"] = (isset($context["ratesEnRoute"]) || array_key_exists("ratesEnRoute", $context) ? $context["ratesEnRoute"] : (function () { throw new RuntimeError('Variable "ratesEnRoute" does not exist.', 503, $this->source); })());
// line 504
echo " ";
} else {
// line 505
echo " ";
$context["ratesRoute"] = (isset($context["ratesEsRoute"]) || array_key_exists("ratesEsRoute", $context) ? $context["ratesEsRoute"] : (function () { throw new RuntimeError('Variable "ratesEsRoute" does not exist.', 505, $this->source); })());
// line 506
echo " ";
}
// line 507
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 508
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed((isset($context["ratesRoute"]) || array_key_exists("ratesRoute", $context) ? $context["ratesRoute"] : (function () { throw new RuntimeError('Variable "ratesRoute" does not exist.', 508, $this->source); })()), 508, $this->source));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("lbl_Tarifa"), "html", null, true);
echo "<i class=\"an an-angle-down-l\"></i></a>
</li>
";
}
// line 511
echo " ";
// line 514
echo " <li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 515
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 515, $this->source); })())) ? (print ("#team")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 515, $this->source); })()) . "#team"), "html", null, true))));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.navbar-desktop.team_translations"), "html", null, true);
echo "<i class=\"an an-angle-down-l\"></i></a>
</li>
<li class=\"lvl1 parent dropdown\">
<a href=\"";
// line 518
(((isset($context["isRoot"]) || array_key_exists("isRoot", $context) ? $context["isRoot"] : (function () { throw new RuntimeError('Variable "isRoot" does not exist.', 518, $this->source); })())) ? (print ("#contact")) : (print (twig_escape_filter($this->env, ((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 518, $this->source); })()) . "#contact"), "html", null, true))));
echo "\" class=\"site-nav\">
";
// line 519
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("BotonContacto"), "html", null, true);
echo "<i class=\"an an-angle-down-l\"></i>
</a>
</li>
";
// line 523
echo " ";
$context["documentName"] = (((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.', 523, $this->source); })()), "request", [], "any", false, false, true, 523), "locale", [], "any", false, false, true, 523) == "en")) ? ("/recent-events") : ("/eventos-recientes"));
// line 524
echo " ";
$context["eventDocument"] = Pimcore\Model\Document::getByPath((("/" . $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.', 524, $this->source); })()), "request", [], "any", false, false, true, 524), "locale", [], "any", false, false, true, 524), 524, $this->source)) . $this->sandbox->ensureToStringAllowed((isset($context["documentName"]) || array_key_exists("documentName", $context) ? $context["documentName"] : (function () { throw new RuntimeError('Variable "documentName" does not exist.', 524, $this->source); })()), 524, $this->source)));
// line 525
echo " ";
$context["eventBlock"] = twig_get_attribute($this->env, $this->source, (isset($context["eventDocument"]) || array_key_exists("eventDocument", $context) ? $context["eventDocument"] : (function () { throw new RuntimeError('Variable "eventDocument" does not exist.', 525, $this->source); })()), "getEditable", ["eventBlock"], "method", false, false, true, 525);
// line 526
echo " ";
if (( !(null === (isset($context["eventBlock"]) || array_key_exists("eventBlock", $context) ? $context["eventBlock"] : (function () { throw new RuntimeError('Variable "eventBlock" does not exist.', 526, $this->source); })())) && !twig_get_attribute($this->env, $this->source, (isset($context["eventBlock"]) || array_key_exists("eventBlock", $context) ? $context["eventBlock"] : (function () { throw new RuntimeError('Variable "eventBlock" does not exist.', 526, $this->source); })()), "isEmpty", [], "method", false, false, true, 526))) {
// line 527
echo " <li class=\"lvl1 parent dropdown\">
";
// line 528
$context["eventsPath"] = (((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.', 528, $this->source); })()), "request", [], "any", false, false, true, 528), "locale", [], "any", false, false, true, 528) == "en")) ? ("/en/recent-events") : ("/es/eventos-recientes"));
// line 529
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["eventsPath"]) || array_key_exists("eventsPath", $context) ? $context["eventsPath"] : (function () { throw new RuntimeError('Variable "eventsPath" does not exist.', 529, $this->source); })()), 529, $this->source), "html", null, true);
echo "\" class=\"site-nav\">
";
// line 530
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events"), "html", null, true);
echo "<i class=\"an an-angle-down-l\"></i>
</a>
</li>
";
}
// line 534
echo "
<div class=\"d-flex align-items-center\">
";
// line 536
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 536, $this->source); })())) {
// line 537
echo " <div class=\"user-link iconset\">
<i class=\"icon an an-user d-block\"></i>
<span class=\"text d-none d-lg-flex\"></span>
</div>
";
// line 541
echo twig_include($this->env, $context, "layout/includes/user-links.html.twig");
echo "
";
// line 542
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.', 542, $this->source); })()), "request", [], "any", false, false, true, 542), "locale", [], "any", false, false, true, 542), 542, $this->source)) . "/includes/navbar-top"), [], false);
echo "
";
} else {
// line 544
echo " <li class=\"lvl1 login-nav-item\">
<a href=\"";
// line 545
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.', 545, $this->source); })()), 545, $this->source));
echo "\" class=\"site-nav\">
<i class=\"icon an an-sign-in-al d-block d-xl-none\"></i>
<span class=\"text d-none d-xl-inline\">";
// line 547
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>
</li>
";
}
// line 551
echo "
<li class=\"lvl1 lang-image-li iconset\" >
";
// line 553
$context["currentLanguage"] = 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.', 553, $this->source); })()), "request", [], "any", false, false, true, 553), "locale", [], "any", false, false, true, 553);
// line 554
echo " ";
if (((isset($context["currentLanguage"]) || array_key_exists("currentLanguage", $context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.', 554, $this->source); })()) == "es")) {
// line 555
echo " <a href=\"";
echo twig_escape_filter($this->env, (Pimcore\Model\Document::getById(1) . "en"), "html", null, true);
echo "\">
<img class=\"lang-image\" src=\"";
// line 556
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-great-britain-48.png"), "html", null, true);
echo "\" alt=\"English\"/>
</a>
<span class=\"tooltip-label\">English</span>
";
} elseif (( // line 559
(isset($context["currentLanguage"]) || array_key_exists("currentLanguage", $context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.', 559, $this->source); })()) == "en")) {
// line 560
echo " <a href=\"";
echo twig_escape_filter($this->env, (Pimcore\Model\Document::getById(1) . "es"), "html", null, true);
echo "\">
<img class=\"lang-image\" src=\"";
// line 561
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-spain-48.png"), "html", null, true);
echo "\" alt=\"Español\"/>
</a>
<span class=\"tooltip-label\">Español</span>
";
}
// line 565
echo " </li>
</div>
\t\t\t\t\t</ul>
\t\t\t\t</nav>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
<script>
document.addEventListener(\"DOMContentLoaded\", function() {
var searchLink = document.getElementById(\"search-link\");
var searchBox = document.getElementById(\"search-box\");
var lang = document.documentElement.lang;
var placeholderText = lang === \"en\" ? \"What product do you want technical information for?\" : \"¿De qué producto quiere su ficha técnica?\";
var placeholderInterval;
var placeholderTextIndex = 0;
var isTyping = false;
function typePlaceholderText(element, text, interval) {
placeholderTextIndex = 0;
clearInterval(placeholderInterval);
isTyping = true;
placeholderInterval = setInterval(function() {
element.setAttribute(\"placeholder\", text.slice(0, placeholderTextIndex));
element.style.color = \"red\";
placeholderTextIndex++;
if (placeholderTextIndex > text.length) {
clearInterval(placeholderInterval);
isTyping = false;
}
}, interval);
}
function shakeSearchBox() {
if (isTyping) {
clearInterval(placeholderInterval);
isTyping = false;
searchBox.style.color = \"black\";
}
searchBox.value = \"\";
searchBox.removeAttribute(\"placeholder\");
searchBox.focus();
searchBox.classList.add(\"shake\");
setTimeout(function() {
searchBox.classList.remove(\"shake\");
typePlaceholderText(searchBox, placeholderText, 100);
}, 600);
searchBox.focus();
}
searchLink.addEventListener(\"click\", function(event) {
event.preventDefault();
shakeSearchBox();
});
searchBox.addEventListener(\"input\", function() {
if (searchBox.getAttribute(\"placeholder\") === placeholderText) {
searchBox.value = \"\";
searchBox.removeAttribute(\"placeholder\");
}
if (searchBox.value.length > 0) {
searchBox.style.setProperty(\"color\", \"#000000\", \"important\");
} else if (!isTyping) {
searchBox.style.setProperty(\"color\", \"#FF0000\", \"important\");
}
});
searchBox.addEventListener(\"keydown\", function() {
if (isTyping) {
clearInterval(placeholderInterval);
isTyping = false;
searchBox.removeAttribute(\"style\");
}
});
});
</script>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "layout/includes/navegation/desktop.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 878 => 565, 871 => 561, 866 => 560, 864 => 559, 858 => 556, 853 => 555, 850 => 554, 848 => 553, 844 => 551, 837 => 547, 832 => 545, 829 => 544, 824 => 542, 820 => 541, 814 => 537, 812 => 536, 808 => 534, 801 => 530, 796 => 529, 794 => 528, 791 => 527, 788 => 526, 785 => 525, 782 => 524, 779 => 523, 773 => 519, 769 => 518, 761 => 515, 758 => 514, 756 => 511, 748 => 508, 745 => 507, 742 => 506, 739 => 505, 736 => 504, 733 => 503, 730 => 502, 727 => 500, 724 => 499, 721 => 498, 718 => 496, 714 => 494, 705 => 490, 697 => 487, 693 => 485, 691 => 484, 685 => 483, 682 => 482, 680 => 481, 671 => 477, 668 => 476, 665 => 474, 657 => 471, 651 => 470, 647 => 469, 641 => 468, 638 => 467, 636 => 466, 628 => 463, 625 => 462, 617 => 458, 611 => 457, 605 => 456, 599 => 455, 593 => 454, 584 => 450, 581 => 449, 579 => 448, 574 => 445, 566 => 442, 563 => 441, 557 => 437, 552 => 436, 549 => 434, 359 => 245, 340 => 228, 338 => 227, 334 => 225, 296 => 189, 294 => 188, 240 => 136, 236 => 134, 232 => 132, 230 => 131, 220 => 123, 216 => 121, 212 => 119, 210 => 118, 205 => 115, 201 => 113, 197 => 111, 195 => 110, 186 => 103, 182 => 101, 178 => 99, 176 => 98, 163 => 87, 159 => 85, 155 => 83, 153 => 82, 140 => 71, 136 => 69, 132 => 67, 130 => 66, 99 => 37, 95 => 35, 91 => 33, 89 => 32, 64 => 9, 61 => 8, 58 => 7, 55 => 6, 52 => 5, 50 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
{% if currentPath == '/es/empresa' or currentPath == '/en/about-us'%}
{% set isAboutUs = true%}
{% else %}
{% set isAboutUs = false %}
{% endif %}
/* Base styles */
.menu-outer {
background-color: #fff;
}
#siteNav.medium {
font-family: 'Montserrat', sans-serif;
display: flex;
align-items: center;
flex-wrap: nowrap;
list-style-type: none;
padding-left: 0;
flex-grow: 1;
justify-content: space-between;
width: 100%;
gap: 5px;
}
#siteNav.medium > li a {
font-size: 16px;
padding: 8px 15px;
font-weight: 600;
{% if is_authenticated %}
color: #6c757d;
{% else %}
color: #000000;
{% endif %}
position: relative;
display: inline-block;
overflow: hidden;
text-transform: capitalize;
border-radius: 4px;
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
text-decoration: none;
}
#siteNav.medium > li > a {
margin-left: 0;
}
#siteNav.medium > li {
margin-right: 5px;
}
#siteNav.medium > li:last-child {
margin-right: 0;
}
/* Hover line effect */
#siteNav.medium > li a::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
{% if is_authenticated %}
background-color: #6c757d;
{% else %}
background-color: #333;
{% endif %}
transition: width 0.3s ease-out, transform 0.3s ease-out;
transform: translateX(-50%);
transform-origin: center;
}
#siteNav.medium > li a:hover::after {
width: 100%;
transform: translateX(-50%) scaleX(1);
}
#siteNav.medium > li .dropdown-item {
{% if is_authenticated %}
color: #6c757d;
{% else %}
color: #333;
{% endif %}
font-family: 'Montserrat', sans-serif;
}
#siteNav.medium > li .dropdown-item:hover {
background-color: #0d6efd;
color: #fff;
font-weight: 600;
}
/* Active link */
#siteNav.medium > li.active-link > a {
{% if is_authenticated %}
color: #6c757d !important;
{% else %}
color: #333 !important;
{% endif %}
font-weight: 700;
background-color: transparent !important;
}
#siteNav.medium > li.active-link > a::after {
width: 100%;
transform: translateX(-50%) scaleX(1);
{% if is_authenticated %}
background-color: #6c757d;
{% else %}
background-color: #333;
{% endif %}
}
#siteNav.medium > li a:hover {
{% if is_authenticated %}
color: #6c757d !important;
{% else %}
color: #000000 !important;
{% endif %}
background-color: transparent !important;
}
#siteNav.medium > li.lvl1.parent.megamenu .megamenu a:hover{
color: inherit !important;
}
#siteNav.medium > li a:hover::after {
{% if is_authenticated %}
background-color: #6c757d;
{% else %}
background-color: #333;
{% endif %}
}
/* Professional area button */
.login-nav-item a.site-nav {
background: linear-gradient(to bottom right, #91D6F3, #3F91F3);
color: #fff !important;
padding: 10px 25px !important;
border-radius: 50px !important;
text-transform: capitalize !important;
font-weight: 700 !important;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
border: none;
white-space: nowrap !important;
min-width: max-content !important;
}
/* Technical area button */
#siteNav.medium > li a[href*=\"technicalArea\"],
#siteNav.medium > li a[href*=\"technical-area\"] {
white-space: nowrap !important;
min-width: max-content !important;
}
.login-nav-item a.site-nav:hover {
background: linear-gradient(to bottom right, #3F91F3, #91D6F3);
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
}
.login-nav-item a.site-nav i {
color: #fff !important;
}
/* Professional area header styling - cart and user icons */
.header-cart .site-header__cart i {
color: #6c757d !important;
}
.header-cart .site-header__cart:hover i {
color: #6c757d !important;
}
.header-cart .site-cart-count {
background-color: #6c757d !important;
color: #fff !important;
transition: background-color 0.2s ease-in-out;
}
.header-cart .site-header__cart:hover .site-cart-count {
background-color: #6c757d !important;
}
{% if is_authenticated %}
.user-link.iconset .icon.an-user {
color: #6c757d !important;
}
.user-link.iconset:hover .icon.an-user {
color: #6c757d !important;
}
.user-link.iconset .icon {
color: #6c757d !important;
}
.user-link.iconset:hover .icon {
color: #6c757d !important;
}
.d-flex.align-items-center .user-link.iconset .icon {
color: #6c757d !important;
}
.d-flex.align-items-center .user-link.iconset:hover .icon {
color: #6c757d !important;
}
i.icon.an-user.d-block {
color: #6c757d !important;
}
.user-link.iconset i.icon.an-user.d-block {
color: #6c757d !important;
}
.user-link.iconset:hover i.icon.an-user.d-block {
color: #6c757d !important;
}
{% endif %}
/* User manual link styling */
{% if is_authenticated %}
.user-manual-link.iconset {
font-family: 'Montserrat', sans-serif;
}
.user-manual-link.iconset span {
color: #6c757d !important;
font-weight: 600;
font-size: 11px;
text-transform: capitalize;
transition: color 0.2s ease-in-out;
cursor: pointer;
}
.user-manual-link.iconset:hover span {
color: #6c757d !important;
}
{% endif %}
/* Logo sizing */
#siteNav.medium > li:first-child a img,
.navbar-logo {
min-width: 45px !important;
width: 60px !important;
}
/* Hover de logo, megamenu, empresa y idioma */
.logo-nav-item .logo-link::after {
display: none;
}
.logo-nav-item .logo-link:hover::after {
display: none;
}
#siteNav.medium > li.logo-nav-item a::after {
display: none;
}
#siteNav.medium > li.logo-nav-item a:hover::after {
display: none;
}
.lvl1.parent.megamenu * a::after,
.lvl1.parent.megamenu * a:hover::after
{
display: none;
color: initial;
background-color: initial;
}
#siteNav .menu-brand-logo a {
transition: background-color 0.3s ease-in-out;
background-color: transparent;
}
#siteNav .menu-brand-logo a:hover {
background-color: #f0f0f0 !important;
}
#siteNav.medium .menu-brand-logo a:hover {
background-color: #f0f0f0 !important;
}
#siteNav.medium > li.lvl1.parent.dropdown ul.dropdown a::after,
#siteNav.medium > li.lvl1.parent.dropdown ul.dropdown a:hover::after {
display: none;
}
.lang-image {
min-width: 25px !important;
width: 30px !important;
object-fit: contain;
}
#siteNav.medium > li.lang-image-li a:hover::after {
display: none;
}
/* Search animation */
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
animation: shake 0.5s;
}
#search-box::placeholder {
color: #FF0000;
}
#siteNav.medium .d-flex.align-items-center .iconset {
display: flex;
align-items: center;
height: auto;
padding: 8px 15px;
margin: 0;
}
/* Responsive breakpoints */
@media only screen and (min-width: 1800px) {
#siteNav.medium > li a {
padding: 10px 20px;
font-size: 17px;
}
}
@media only screen and (min-width: 1740px) and (max-width: 1640px) {
#siteNav.medium {
gap: 10px;
}
#siteNav.medium > li a {
padding: 8px 15px;
font-size: 16px;
}
#siteNav.medium > li {
flex: 0 1 auto;
}
#siteNav.medium > li:not(:first-child):not(.lang-image-li):not(.user-menu):not(.login-nav-item):not(.minicart-nav-item) {
flex: 1 1 auto;
max-width: 180px;
}
}
@media only screen and (max-width: 1690px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 15px;
}
}
@media only screen and (max-width: 1500px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 15px;
}
}
@media only screen and (max-width: 1300px) {
#siteNav.medium > li a {
padding: 8px 10px;
font-size: 14px;
}
}
@media (max-width: 1090px) {
#siteNav.medium > li a {
padding: 8px 5px;
font-size: 14px;
}
.login-nav-item a.site-nav .text {
display: inline !important;
white-space: nowrap !important;
}
.login-nav-item a.site-nav i {
display: none !important;
}
#siteNav.medium > li a[href*=\"technicalArea\"],
#siteNav.medium > li a[href*=\"technical-area\"] {
white-space: nowrap !important;
min-width: max-content !important;
}
}
@media (min-width: 1240px) {
.login-nav-item a.site-nav .text.d-none.d-xl-inline {
display: inline !important;
}
.login-nav-item a.site-nav i.d-block.d-xl-none {
display: none !important;
}
}
@media (max-width: 1239px) {
.login-nav-item a.site-nav .text.d-none.d-xl-inline {
display: none !important;
}
.login-nav-item a.site-nav i.d-block.d-xl-none {
display: block !important;
}
}
@media (min-width: 991px) {
.header.header-space-mobile {
padding-bottom: 15px;
}
}
@media (max-width: 991px) {
.header.header-space-mobile {
padding: 15px 0;
}
}
</style>
<div class=\"menu-outer d-none d-lg-block pb-1 mt-1\">
\t<div class=\"container-fluid\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-1 col-sm-1 col-md-1 col-lg-12 align-self-center d-menu-col\">
\t\t\t\t<nav class=\"grid__item position-relative\" id=\"AccessibleNav\" >
{# LOGO MOVED INSIDE UL #}
\t\t\t\t\t<ul id=\"siteNav\" class=\"site-nav medium center hidearrow align-items-center\">
<li class=\"lvl1 logo-nav-item\"> {# LOGO ADDED AS LI #}
<a href=\"{{ isRoot ? '#sticky-header' : navStartNode~'/' }}\" class=\"m-0 p-0 py-2 logo-link\">
<img src=\"{{ asset('/static2/images/midnight/assets/logo-bsn.png') }}\" class=\"rounded-circle navbar-logo\" style=\"width: 35px; vertical-align: middle;\">
</a>
</li>
{# PRODUCTS #}
<li class=\"lvl1 parent megamenu\">
<a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/products/default_m1' : 'es/productos/default_m1') }}\">{{ 'layout.navbar-desktop.products_translations'|trans }}
<i class=\"an an-angle-down-l\"></i>
</a>
{{ pimcore_inc(document.getProperty('categories-navbar'), {}, false) }}
</li>
{# HOME #}
{# ABOUT US #}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#featured-services' : navStartNode~'#featured-services' }}\">{{ 'layout.footer.information.professional-area_translations' | trans }}
<i class=\"an an-angle-down-l\"></i>
</a>
<ul class=\"dropdown\">
<li><a href=\"{{ isAboutUs ? '#company' : navStartNode~'/'~ (app.request.locale == 'en' ? 'about-us' : 'empresa') }}\" class=\"site-nav\">{{ 'home.about-us_title_translations' | trans}}</a></li>
<li><a href=\"{{ isAboutUs ? '#technicalAdvice' : navStartNode~'/'~ (app.request.locale == 'en' ? 'about-us#technicalAdvice' : 'empresa#technicalAdvice') }}\" class=\"site-nav\">{{ 'home.about-us-cards.technical_advice_translations' | trans }}</a></li>
<li><a href=\"{{ isAboutUs ? '#customService' : navStartNode~'/'~ (app.request.locale == 'en' ? 'about-us#customService' : 'empresa#customService') }}\" class=\"site-nav\">{{ 'home.about-us-cards.custom_service_translations' | trans }}</a></li>
<li><a href=\"{{ isAboutUs ? '#stockLogistic' : navStartNode~'/'~ (app.request.locale == 'en' ? 'about-us#stockLogistic' : 'empresa#stockLogistic') }}\" class=\"site-nav\">{{ 'home.about-us-cards.stock_and_logistics_translations' | trans }}</a></li>
<li><a href=\"{{ isAboutUs ? '#stockLogistic' : navStartNode~'/'~ (app.request.locale == 'en' ? 'about-us#stockLogistic' : 'empresa#stockLogistic') }}\" class=\"site-nav\">{{ 'home.about-us-cards.training_translations'| trans }}</a></li>
</ul>
</li>
{# Technical Area #}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#technicalArea' : navStartNode~'#technicalArea' }}\">{{ 'Layout.Navegation.Technical-Area_translations' | trans }}
<i class=\"an an-angle-down-l\"></i>
</a>
{% if currentPath != '/' and currentPath != '/en' %}
<ul class=\"dropdown\">
<li><a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/technical-area/painting-schemes' : 'es/area-tecnica/esquemas-de-pintado') }}\" class=\"site-nav\">{{ \"Esquemas de pintado\" | trans }}</a></li>
<li><a href=\"#\" class=\"site-nav\" id=\"search-link\">{{ \"Fichas técnicas y de seguridad\" | trans }}</a></li>
<li><a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/technical-area/calculate-square-meters' : 'es/area-tecnica/calcular-metros-cuadrados') }}\" class=\"site-nav\">{{ \"Calcular metros cuadrados\" | trans }}</a></li>
<li><a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/technical-area/how-much-paint-do-I-need' : 'es/area-tecnica/cuanta-pintura-necesito') }}\" class=\"site-nav\">{{ \"Cuánta pintura necesito?\" | trans }}</a></li>
</ul>
{% endif %}
</li>
{# Catalog Area #}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#catalog' : navStartNode~'#catalog' }}\">{{ 'lbl_Catálogo' | trans }}
<i class=\"an an-angle-down-l\"></i>
</a>
</li>
{% if not is_authenticated %}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#collaborators' : navStartNode~'#collaborators' }}\">{{ \"layout.navegation.collaborators_translations\" | trans}}<i class=\"an an-angle-down-l\"></i></a>
{% if currentPath != '/' and currentPath != '/en' %}
<ul class=\"dropdown\">
<li>
<a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/point-of-sale' : 'es/puntos-de-venta') }}\" class=\"site-nav\">{{ 'home.collaborators.points-of-sale_translations' | trans}}</a>
</li>
<li>
<a href=\"{{ '/' ~ (app.request.locale == 'en' ? 'en/industry-professionals' : 'es/profesionales-del-sector') }}\" class=\"site-nav\">{{ 'home.collaborators.industry-professionals_translations' | trans}}</a>
</li>
</ul>
{% endif %}
</li>
{% else %}
{# Define las rutas para ambos idiomas #}
{% set ratesEnRoute = 'rates-view-translated-en' %}
{% set ratesEsRoute = 'rates-view-translated-es' %}
{# Asigna las rutas según el idioma actual #}
{% if currentLocale == 'en' %}
{% set ratesRoute = ratesEnRoute %}
{% else %}
{% set ratesRoute = ratesEsRoute %}
{% endif %}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{path(ratesRoute)}}\">{{ 'lbl_Tarifa' | trans }}<i class=\"an an-angle-down-l\"></i></a>
</li>
{% endif %}
{# <li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#news' : navStartNode~'#news' }}\">{{ 'layout.navbar-desktop.new-arrivals_translations' | trans }}<i class=\"an an-angle-down-l\"></i></a>
</li> #}
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#team' : navStartNode~'#team' }}\">{{ 'layout.navbar-desktop.team_translations' | trans }}<i class=\"an an-angle-down-l\"></i></a>
</li>
<li class=\"lvl1 parent dropdown\">
<a href=\"{{ isRoot ? '#contact' : navStartNode~'#contact' }}\" class=\"site-nav\">
{{ 'BotonContacto' | trans }}<i class=\"an an-angle-down-l\"></i>
</a>
</li>
{# Gets the events document dinamically with his path to get the data from the editables in it#}
{% set documentName = app.request.locale == 'en' ? '/recent-events' : '/eventos-recientes' %}
{% set eventDocument = pimcore_document_by_path('/' ~ app.request.locale ~ documentName) %}
{% set eventBlock = eventDocument.getEditable('eventBlock') %}
{% if eventBlock is not null and not eventBlock.isEmpty() %}
<li class=\"lvl1 parent dropdown\">
{% set eventsPath = app.request.locale == 'en' ? '/en/recent-events' : '/es/eventos-recientes' %}
<a href=\"{{ eventsPath }}\" class=\"site-nav\">
{{ 'Events' | trans }}<i class=\"an an-angle-down-l\"></i>
</a>
</li>
{% endif %}
<div class=\"d-flex align-items-center\">
{% 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\") }}
{{ pimcore_inc('/' ~ app.request.locale ~ '/includes/navbar-top',{},false) }}
{% else %}
<li class=\"lvl1 login-nav-item\">
<a href=\"{{ path(loginRoute) }}\" class=\"site-nav\">
<i class=\"icon an an-sign-in-al d-block d-xl-none\"></i>
<span class=\"text d-none d-xl-inline\">{{ 'layout.navbar-desktop.professional-area_translations' | trans }}</span>
</a>
</li>
{% endif %}
<li class=\"lvl1 lang-image-li iconset\" >
{% set currentLanguage = app.request.locale %}
{% if currentLanguage == 'es' %}
<a href=\"{{ pimcore_document(1) ~ 'en'}}\">
<img class=\"lang-image\" src=\"{{ asset('assets/images/icons8-great-britain-48.png') }}\" alt=\"English\"/>
</a>
<span class=\"tooltip-label\">English</span>
{% elseif currentLanguage == 'en' %}
<a href=\"{{ pimcore_document(1) ~ 'es'}}\">
<img class=\"lang-image\" src=\"{{ asset('assets/images/icons8-spain-48.png') }}\" alt=\"Español\"/>
</a>
<span class=\"tooltip-label\">Español</span>
{% endif %}
</li>
</div>
\t\t\t\t\t</ul>
\t\t\t\t</nav>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
<script>
document.addEventListener(\"DOMContentLoaded\", function() {
var searchLink = document.getElementById(\"search-link\");
var searchBox = document.getElementById(\"search-box\");
var lang = document.documentElement.lang;
var placeholderText = lang === \"en\" ? \"What product do you want technical information for?\" : \"¿De qué producto quiere su ficha técnica?\";
var placeholderInterval;
var placeholderTextIndex = 0;
var isTyping = false;
function typePlaceholderText(element, text, interval) {
placeholderTextIndex = 0;
clearInterval(placeholderInterval);
isTyping = true;
placeholderInterval = setInterval(function() {
element.setAttribute(\"placeholder\", text.slice(0, placeholderTextIndex));
element.style.color = \"red\";
placeholderTextIndex++;
if (placeholderTextIndex > text.length) {
clearInterval(placeholderInterval);
isTyping = false;
}
}, interval);
}
function shakeSearchBox() {
if (isTyping) {
clearInterval(placeholderInterval);
isTyping = false;
searchBox.style.color = \"black\";
}
searchBox.value = \"\";
searchBox.removeAttribute(\"placeholder\");
searchBox.focus();
searchBox.classList.add(\"shake\");
setTimeout(function() {
searchBox.classList.remove(\"shake\");
typePlaceholderText(searchBox, placeholderText, 100);
}, 600);
searchBox.focus();
}
searchLink.addEventListener(\"click\", function(event) {
event.preventDefault();
shakeSearchBox();
});
searchBox.addEventListener(\"input\", function() {
if (searchBox.getAttribute(\"placeholder\") === placeholderText) {
searchBox.value = \"\";
searchBox.removeAttribute(\"placeholder\");
}
if (searchBox.value.length > 0) {
searchBox.style.setProperty(\"color\", \"#000000\", \"important\");
} else if (!isTyping) {
searchBox.style.setProperty(\"color\", \"#FF0000\", \"important\");
}
});
searchBox.addEventListener(\"keydown\", function() {
if (isTyping) {
clearInterval(placeholderInterval);
isTyping = false;
searchBox.removeAttribute(\"style\");
}
});
});
</script>
", "layout/includes/navegation/desktop.html.twig", "/var/www/html/templates/layout/includes/navegation/desktop.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4, "set" => 5);
static $filters = array("escape" => 436, "trans" => 442);
static $functions = array("asset" => 437, "pimcore_inc" => 445, "path" => 508, "pimcore_document_by_path" => 524, "include" => 541, "pimcore_document" => 555);
try {
$this->sandbox->checkSecurity(
['if', 'set'],
['escape', 'trans'],
['asset', 'pimcore_inc', 'path', 'pimcore_document_by_path', 'include', 'pimcore_document']
);
} 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;
}
}
}