var/cache/dev/twig/42/42527e8ca63ca9920c1427344e9362c6.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* header.html.twig */
  14. class __TwigTemplate_541b3a53ce4292cbbaf89902806d5852 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""header.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""header.html.twig"));
  33.         // line 1
  34.         echo "<header id=\"header\"
  35.         class=\"fixed top-0 w-full z-[1000001] bg-white\">
  36.     ";
  37.         // line 3
  38.         if (is_active_sidebar("header-top")) {
  39.             // line 4
  40.             echo "        <section id=\"header-top\">
  41.             ";
  42.             // line 5
  43.             echo $this->env->getFunction('dynamic_sidebar')->getCallable()("header-top");
  44.             echo "
  45.         </section>
  46.     ";
  47.         }
  48.         // line 8
  49.         echo "    <div class=\"flex flex-row justify-between items-center max-w-screen-2xl mx-auto lg:px-20 px-5 py-4\">
  50.         <a href=\"";
  51.         // line 9
  52.         echo twig_escape_filter($this->env, (isset($context["home_url"]) || array_key_exists("home_url"$context) ? $context["home_url"] : (function () { throw new RuntimeError('Variable "home_url" does not exist.'9$this->source); })()), "html"nulltrue);
  53.         echo "\" class=\"max-w-7xl\" aria-label=\"";
  54.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["bloginfo"]) || array_key_exists("bloginfo"$context) ? $context["bloginfo"] : (function () { throw new RuntimeError('Variable "bloginfo" does not exist.'9$this->source); })()), "name", [], "any"falsefalsefalse9), "html"nulltrue);
  55.         echo "\">
  56.             <img src=\"";
  57.         // line 10
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/logo.png"), "html"nulltrue);
  59.         echo "\" alt=\"Logo ";
  60.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["bloginfo"]) || array_key_exists("bloginfo"$context) ? $context["bloginfo"] : (function () { throw new RuntimeError('Variable "bloginfo" does not exist.'10$this->source); })()), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  61.         echo "\" loading=\"lazy\"
  62.                  class=\"w-64 h-auto\">
  63.         </a>
  64.         <div class=\"flex flex-row items-center gap-4 lg:gap-10 xl:gap-20\">
  65.             ";
  66.         // line 14
  67.         if ((((twig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"truetruefalse14)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsefalsefalse14))) : ("")) && twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["menu"]) || array_key_exists("menu"$context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.'14$this->source); })()), "header", [], "any"falsefalsefalse14), "items", [], "any"falsefalsefalse14)))) {
  68.             // line 15
  69.             echo "                <div class=\"lg:flex flex-row gap-7 hidden\">
  70.                     ";
  71.             // line 16
  72.             $context['_parent'] = $context;
  73.             $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsetruefalse16), "items", [], "any"truetruefalse16)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsetruefalse16), "items", [], "any"falsefalsefalse16))) : ("")));
  74.             $context['loop'] = [
  75.               'parent' => $context['_parent'],
  76.               'index0' => 0,
  77.               'index'  => 1,
  78.               'first'  => true,
  79.             ];
  80.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  81.                 $length count($context['_seq']);
  82.                 $context['loop']['revindex0'] = $length 1;
  83.                 $context['loop']['revindex'] = $length;
  84.                 $context['loop']['length'] = $length;
  85.                 $context['loop']['last'] = === $length;
  86.             }
  87.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  88.                 // line 17
  89.                 echo "                        <div class=\"group relative ";
  90.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "class", [], "any"falsefalsefalse17), "html"nulltrue);
  91.                 echo "\">
  92.                             <a href=\"";
  93.                 // line 18
  94.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse18), "html"nulltrue);
  95.                 echo "\" target=\"";
  96.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "target", [], "any"falsefalsefalse18), "html"nulltrue);
  97.                 echo "\"
  98.                                ";
  99.                 // line 19
  100.                 if (((twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"truetruefalse19)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse19))) : (""))) {
  101.                     echo "rel=\"";
  102.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse19), "html"nulltrue);
  103.                     echo "\"";
  104.                 }
  105.                 // line 20
  106.                 echo "                               class=\"";
  107.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse20))) {
  108.                     echo " flex flex-row items-center gap-2 ";
  109.                 }
  110.                 echo " text-black block text-sm group transition-all duration-300 ease-in-out uppercase\">
  111.                                 <span class=\"";
  112.                 // line 21
  113.                 if ( !twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse21))) {
  114.                     echo " pb-[2px] ";
  115.                 }
  116.                 echo " bg-left-bottom bg-gradient-to-r from-primary to-primary bg-[length:0%_1px] bg-no-repeat group-hover:bg-[length:100%_1px] transition-all duration-500 ease-out\">";
  117.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse21), "html"nulltrue);
  118.                 echo "</span>
  119.                                 ";
  120.                 // line 22
  121.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse22))) {
  122.                     // line 23
  123.                     echo "                                    <div class=\"group-hover:rotate-180 transition-all duration-500 ease-in-out\">
  124.                                         ";
  125.                     // line 24
  126.                     $this->loadTemplate("assets/arrow-down.svg""header.html.twig"24)->display($context);
  127.                     // line 25
  128.                     echo "                                    </div>
  129.                                 ";
  130.                 }
  131.                 // line 27
  132.                 echo "                            </a>
  133.                             ";
  134.                 // line 28
  135.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse28))) {
  136.                     // line 29
  137.                     echo "                                <div class=\"pt-5 absolute w-max\">
  138.                                     <div class=\"group-hover:flex flex-col gap-4 hidden bg-white py-4 px-2 rounded-2xl -translate-x-6\">
  139.                                         ";
  140.                     // line 31
  141.                     $context['_parent'] = $context;
  142.                     $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->source$context["item"], "children", [], "any"truetruefalse31)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse31))) : ("")));
  143.                     foreach ($context['_seq'] as $context["_key"] => $context["children"]) {
  144.                         // line 32
  145.                         echo "                                            <div class=\"group/item relative ";
  146.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["children"], "class", [], "any"falsefalsefalse32), "html"nulltrue);
  147.                         echo "\">
  148.                                                 <a href=\"";
  149.                         // line 33
  150.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["children"], "link", [], "any"falsefalsefalse33), "html"nulltrue);
  151.                         echo "\" target=\"";
  152.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["children"], "target", [], "any"falsefalsefalse33), "html"nulltrue);
  153.                         echo "\"
  154.                                                    ";
  155.                         // line 34
  156.                         if (((twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"truetruefalse34)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse34))) : (""))) {
  157.                             echo "rel=\"";
  158.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse34), "html"nulltrue);
  159.                             echo "\"";
  160.                         }
  161.                         // line 35
  162.                         echo "                                                   class=\"flex flex-col justify-between px-4 space-y-3.5 h-full rounded-2xl text-black text-sm group transition-all duration-300 ease-in-out group-[.current_page_item]/item:font-bold uppercase\">
  163.                                                     <span>";
  164.                         // line 36
  165.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["children"], "title", [], "any"falsefalsefalse36), "html"nulltrue);
  166.                         echo "</span>
  167.                                                 </a>
  168.                                             </div>
  169.                                         ";
  170.                     }
  171.                     $_parent $context['_parent'];
  172.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['children'], $context['_parent'], $context['loop']);
  173.                     $context array_intersect_key($context$_parent) + $_parent;
  174.                     // line 40
  175.                     echo "                                    </div>
  176.                                 </div>
  177.                             ";
  178.                 }
  179.                 // line 43
  180.                 echo "                        </div>
  181.                     ";
  182.                 ++$context['loop']['index0'];
  183.                 ++$context['loop']['index'];
  184.                 $context['loop']['first'] = false;
  185.                 if (isset($context['loop']['length'])) {
  186.                     --$context['loop']['revindex0'];
  187.                     --$context['loop']['revindex'];
  188.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  189.                 }
  190.             }
  191.             $_parent $context['_parent'];
  192.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  193.             $context array_intersect_key($context$_parent) + $_parent;
  194.             // line 45
  195.             echo "                </div>
  196.             ";
  197.         }
  198.         // line 47
  199.         echo "            <div class=\"flex justify-end\">
  200.                 <div class=\"group\">
  201.                     <a rel=\"nofollow\" href=\"";
  202.         // line 49
  203.         echo twig_escape_filter($this->env$this->extensions['Metabolism\WordpressBundle\Twig\WordpressTwigExtension']->execFunction("wc_get_cart_url"), "html"nulltrue);
  204.         echo "\"
  205.                        class=\"relative flex flex-row items-center justify-center w-[50px] h-[40px]\">
  206.                         ";
  207.         // line 51
  208.         $this->loadTemplate("assets/menu-cart.svg""header.html.twig"51)->display($context);
  209.         // line 52
  210.         echo "                        <span id=\"cartContentsCount\"
  211.                               class=\"bg-primary text-[10px] text-white absolute h-4 block top-0 right-[4px] min-w-[15px] text-center rounded-full z-[-1]\"></span>
  212.                     </a>
  213.                 </div>
  214.                 <button data-modal-target=\"searchModal\" class=\"px-3\">
  215.                     ";
  216.         // line 57
  217.         $this->loadTemplate("assets/search.svg""header.html.twig"57)->display($context);
  218.         // line 58
  219.         echo "                    <span class=\"sr-only\">Abrir buscador</span>
  220.                 </button>
  221.             </div>
  222.             <button id=\"moreInfo\" class=\"block lg:hidden\">
  223.                 ";
  224.         // line 62
  225.         $this->loadTemplate("assets/menu.svg""header.html.twig"62)->display($context);
  226.         // line 63
  227.         echo "                <span class=\"sr-only\">Abrir menĂº</span>
  228.             </button>
  229.         </div>
  230.     </div>
  231.     <div id=\"menuOpen\"
  232.          class=\"hidden fixed xl:absolute xl:hidden top-0 w-screen h-screen bg-[#00000060] z-10\">
  233.         <div class=\"bg-white w-full xl:w-fit\">
  234.             <div class=\"max-w-screen-2xl mx-auto h-screen px-5 lg:px-20 py-4 flex flex-col gap-16 lg:gap-32\">
  235.                 <div class=\"flex flex-row justify-between items-center\">
  236.                     <a href=\"";
  237.         // line 72
  238.         echo twig_escape_filter($this->env, (isset($context["home_url"]) || array_key_exists("home_url"$context) ? $context["home_url"] : (function () { throw new RuntimeError('Variable "home_url" does not exist.'72$this->source); })()), "html"nulltrue);
  239.         echo "\">
  240.                         <img src=\"";
  241.         // line 73
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/logo.png"), "html"nulltrue);
  243.         echo "\" alt=\"Logo mobile ";
  244.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["bloginfo"]) || array_key_exists("bloginfo"$context) ? $context["bloginfo"] : (function () { throw new RuntimeError('Variable "bloginfo" does not exist.'73$this->source); })()), "name", [], "any"falsefalsefalse73), "html"nulltrue);
  245.         echo "\"
  246.                              loading=\"lazy\" class=\"w-64 h-auto\">
  247.                     </a>
  248.                     <button id=\"menuClose\">
  249.                         ";
  250.         // line 77
  251.         $this->loadTemplate("assets/close.svg""header.html.twig"77)->display($context);
  252.         // line 78
  253.         echo "                        <span class=\"sr-only\">Cerrar menĂº</span>
  254.                     </button>
  255.                 </div>
  256.                 ";
  257.         // line 81
  258.         if ((((twig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"truetruefalse81)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsefalsefalse81))) : ("")) && twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["menu"]) || array_key_exists("menu"$context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.'81$this->source); })()), "header", [], "any"falsefalsefalse81), "items", [], "any"falsefalsefalse81)))) {
  259.             // line 82
  260.             echo "                    <div class=\"flex flex-col gap-10 overflow-auto max-h-[60vh]\">
  261.                         <div class=\"flex flex-col pb-52\">
  262.                             ";
  263.             // line 84
  264.             $context['_parent'] = $context;
  265.             $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsetruefalse84), "items", [], "any"truetruefalse84)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["menu"] ?? null), "header", [], "any"falsetruefalse84), "items", [], "any"falsefalsefalse84))) : ("")));
  266.             $context['loop'] = [
  267.               'parent' => $context['_parent'],
  268.               'index0' => 0,
  269.               'index'  => 1,
  270.               'first'  => true,
  271.             ];
  272.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  273.                 $length count($context['_seq']);
  274.                 $context['loop']['revindex0'] = $length 1;
  275.                 $context['loop']['revindex'] = $length;
  276.                 $context['loop']['length'] = $length;
  277.                 $context['loop']['last'] = === $length;
  278.             }
  279.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  280.                 // line 85
  281.                 echo "                                <div class=\"flex flex-col gap-3 justify-between border-b border-background py-4\">
  282.                                     <div class=\"flex flex-row items-center gap-3 justify-between\">
  283.                                         <a href=\"";
  284.                 // line 87
  285.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse87), "html"nulltrue);
  286.                 echo "\"
  287.                                            target=\"";
  288.                 // line 88
  289.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "target", [], "any"falsefalsefalse88), "html"nulltrue);
  290.                 echo "\"
  291.                                            ";
  292.                 // line 89
  293.                 if (((twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"truetruefalse89)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse89))) : (""))) {
  294.                     echo "rel=\"";
  295.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse89), "html"nulltrue);
  296.                     echo "\"";
  297.                 }
  298.                 // line 90
  299.                 echo "                                                ";
  300.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse90))) {
  301.                     // line 91
  302.                     echo "                                                    id=\"submenuChildrenOpen\"
  303.                                                 ";
  304.                 }
  305.                 // line 93
  306.                 echo "                                           class=\"text-black block text-base group uppercase w-full\">";
  307.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse93), "html"nulltrue);
  308.                 echo "</a>
  309.                                         ";
  310.                 // line 94
  311.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse94))) {
  312.                     // line 95
  313.                     echo "                                            <a href=\"#\" class=\"submenuOpen px-4 flex\">
  314.                                                 <i class=\"arrow-icon\">";
  315.                     // line 96
  316.                     $this->loadTemplate("assets/arrow-down-mobile.svg""header.html.twig"96)->display($context);
  317.                     echo "</i>
  318.                                             </a>
  319.                                         ";
  320.                 }
  321.                 // line 99
  322.                 echo "                                    </div>
  323.                                     ";
  324.                 // line 100
  325.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse100))) {
  326.                     // line 101
  327.                     echo "                                        <div class=\"submenu hidden flex flex-col gap-2 ps-4\">
  328.                                             ";
  329.                     // line 102
  330.                     $context['_parent'] = $context;
  331.                     $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->source$context["item"], "children", [], "any"truetruefalse102)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "children", [], "any"falsefalsefalse102))) : ("")));
  332.                     foreach ($context['_seq'] as $context["_key"] => $context["item_children"]) {
  333.                         // line 103
  334.                         echo "                                                <a href=\"";
  335.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item_children"], "link", [], "any"falsefalsefalse103), "html"nulltrue);
  336.                         echo "\" target=\"";
  337.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item_children"], "target", [], "any"falsefalsefalse103), "html"nulltrue);
  338.                         echo "\"
  339.                                                    ";
  340.                         // line 104
  341.                         if (((twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"truetruefalse104)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse104))) : (""))) {
  342.                             echo "rel=\"";
  343.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "xfn", [], "any"falsefalsefalse104), "html"nulltrue);
  344.                             echo "\"";
  345.                         }
  346.                         // line 105
  347.                         echo "                                                   class=\"text-black block text-sm group uppercase w-full\">";
  348.                         echo twig_get_attribute($this->env$this->source$context["item_children"], "title", [], "any"falsefalsefalse105);
  349.                         echo "</a>
  350.                                             ";
  351.                     }
  352.                     $_parent $context['_parent'];
  353.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item_children'], $context['_parent'], $context['loop']);
  354.                     $context array_intersect_key($context$_parent) + $_parent;
  355.                     // line 107
  356.                     echo "                                        </div>
  357.                                     ";
  358.                 }
  359.                 // line 109
  360.                 echo "                                </div>
  361.                             ";
  362.                 ++$context['loop']['index0'];
  363.                 ++$context['loop']['index'];
  364.                 $context['loop']['first'] = false;
  365.                 if (isset($context['loop']['length'])) {
  366.                     --$context['loop']['revindex0'];
  367.                     --$context['loop']['revindex'];
  368.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  369.                 }
  370.             }
  371.             $_parent $context['_parent'];
  372.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  373.             $context array_intersect_key($context$_parent) + $_parent;
  374.             // line 111
  375.             echo "                        </div>
  376.                     </div>
  377.                 ";
  378.         }
  379.         // line 114
  380.         echo "                ";
  381.         if (is_active_sidebar("sidebar-mobile")) {
  382.             // line 115
  383.             echo "                    <div class=\"absolute bottom-0 left-0 right-0 px-5 bg-white py-4 flex flex-col justify-between gap-2 pb-4 text-black z-100\">
  384.                         ";
  385.             // line 116
  386.             echo $this->env->getFunction('dynamic_sidebar')->getCallable()("sidebar-mobile");
  387.             echo "
  388.                     </div>
  389.                 ";
  390.         }
  391.         // line 119
  392.         echo "            </div>
  393.         </div>
  394.     </div>
  395.     <div id=\"searchModal\" tabindex=\"-1\" style=\"margin:0;\" aria-hidden=\"true\"
  396.          class=\"hidden fixed inset-0 z-50 w-full overflow-x-hidden overflow-y-auto h-[100dvh] justify-start items-start\">
  397.         <div class=\"relative w-full h-auto z-50\">
  398.             <button type=\"button\" data-modal-hide=\"searchModal\"
  399.                     class=\"fixed top-5 z-50 right-5 text-black bg-transparent text-sm p-1.5 ml-auto inline-flex items-center\">
  400.                 ";
  401.         // line 127
  402.         $this->loadTemplate("assets/close.svg""header.html.twig"127)->display($context);
  403.         // line 128
  404.         echo "                <span class=\"sr-only\">Cerrar modal</span>
  405.             </button>
  406.             <div class=\"relative bg-white shadow overflow-hidden max-h-full max-w-full m-auto p-6 2xl:px-20 space-y-6\">
  407.                 <span class=\"uppercase text-xl block text-center text-black\">Encuentra tu producto</span>
  408.                 <div class=\"bg-gray-100 max-w-2xl m-auto rounded-lg border border-gray-100\">
  409.                     ";
  410.         // line 133
  411.         echo do_shortcode("[aws_search_form id=\"1\"]");
  412.         echo "
  413.                 </div>
  414.             </div>
  415.         </div>
  416.         <div class=\"hidden bg-gray-900 bg-opacity-90 fixed inset-0 z-40 overflow-hidden cursor-pointer\"
  417.              style=\"margin: 0;\" data-modal-backdrop=\"searchModal\"></div>
  418.     </div>
  419. </header>";
  420.         
  421.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  422.         
  423.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  424.     }
  425.     /**
  426.      * @codeCoverageIgnore
  427.      */
  428.     public function getTemplateName()
  429.     {
  430.         return "header.html.twig";
  431.     }
  432.     /**
  433.      * @codeCoverageIgnore
  434.      */
  435.     public function isTraitable()
  436.     {
  437.         return false;
  438.     }
  439.     /**
  440.      * @codeCoverageIgnore
  441.      */
  442.     public function getDebugInfo()
  443.     {
  444.         return array (  420 => 133,  413 => 128,  411 => 127,  401 => 119,  395 => 116,  392 => 115,  389 => 114,  384 => 111,  369 => 109,  365 => 107,  356 => 105,  350 => 104,  343 => 103,  339 => 102,  336 => 101,  334 => 100,  331 => 99,  325 => 96,  322 => 95,  320 => 94,  315 => 93,  311 => 91,  308 => 90,  302 => 89,  298 => 88,  294 => 87,  290 => 85,  273 => 84,  269 => 82,  267 => 81,  262 => 78,  260 => 77,  251 => 73,  247 => 72,  236 => 63,  234 => 62,  228 => 58,  226 => 57,  219 => 52,  217 => 51,  212 => 49,  208 => 47,  204 => 45,  189 => 43,  184 => 40,  174 => 36,  171 => 35,  165 => 34,  159 => 33,  154 => 32,  150 => 31,  146 => 29,  144 => 28,  141 => 27,  137 => 25,  135 => 24,  132 => 23,  130 => 22,  122 => 21,  115 => 20,  109 => 19,  103 => 18,  98 => 17,  81 => 16,  78 => 15,  76 => 14,  67 => 10,  61 => 9,  58 => 8,  52 => 5,  49 => 4,  47 => 3,  43 => 1,);
  445.     }
  446.     public function getSourceContext()
  447.     {
  448.         return new Source("<header id=\"header\"
  449.         class=\"fixed top-0 w-full z-[1000001] bg-white\">
  450.     {% if is_active_sidebar( 'header-top' ) %}
  451.         <section id=\"header-top\">
  452.             {{ dynamic_sidebar('header-top') }}
  453.         </section>
  454.     {% endif %}
  455.     <div class=\"flex flex-row justify-between items-center max-w-screen-2xl mx-auto lg:px-20 px-5 py-4\">
  456.         <a href=\"{{ home_url }}\" class=\"max-w-7xl\" aria-label=\"{{ bloginfo.name }}\">
  457.             <img src=\"{{ asset('build/img/logo.png') }}\" alt=\"Logo {{ bloginfo.name }}\" loading=\"lazy\"
  458.                  class=\"w-64 h-auto\">
  459.         </a>
  460.         <div class=\"flex flex-row items-center gap-4 lg:gap-10 xl:gap-20\">
  461.             {% if menu.header|default() and menu.header.items|length %}
  462.                 <div class=\"lg:flex flex-row gap-7 hidden\">
  463.                     {% for item in menu.header.items|default() %}
  464.                         <div class=\"group relative {{ item.class }}\">
  465.                             <a href=\"{{ item.link }}\" target=\"{{ item.target }}\"
  466.                                {% if item.xfn|default %}rel=\"{{ item.xfn }}\"{% endif %}
  467.                                class=\"{% if item.children|length %} flex flex-row items-center gap-2 {% endif %} text-black block text-sm group transition-all duration-300 ease-in-out uppercase\">
  468.                                 <span class=\"{% if not item.children|length %} pb-[2px] {% endif %} bg-left-bottom bg-gradient-to-r from-primary to-primary bg-[length:0%_1px] bg-no-repeat group-hover:bg-[length:100%_1px] transition-all duration-500 ease-out\">{{ item.title }}</span>
  469.                                 {% if item.children|length %}
  470.                                     <div class=\"group-hover:rotate-180 transition-all duration-500 ease-in-out\">
  471.                                         {% include 'assets/arrow-down.svg' %}
  472.                                     </div>
  473.                                 {% endif %}
  474.                             </a>
  475.                             {% if item.children|length %}
  476.                                 <div class=\"pt-5 absolute w-max\">
  477.                                     <div class=\"group-hover:flex flex-col gap-4 hidden bg-white py-4 px-2 rounded-2xl -translate-x-6\">
  478.                                         {% for children in item.children|default() %}
  479.                                             <div class=\"group/item relative {{ children.class }}\">
  480.                                                 <a href=\"{{ children.link }}\" target=\"{{ children.target }}\"
  481.                                                    {% if item.xfn|default %}rel=\"{{ item.xfn }}\"{% endif %}
  482.                                                    class=\"flex flex-col justify-between px-4 space-y-3.5 h-full rounded-2xl text-black text-sm group transition-all duration-300 ease-in-out group-[.current_page_item]/item:font-bold uppercase\">
  483.                                                     <span>{{ children.title }}</span>
  484.                                                 </a>
  485.                                             </div>
  486.                                         {% endfor %}
  487.                                     </div>
  488.                                 </div>
  489.                             {% endif %}
  490.                         </div>
  491.                     {% endfor %}
  492.                 </div>
  493.             {% endif %}
  494.             <div class=\"flex justify-end\">
  495.                 <div class=\"group\">
  496.                     <a rel=\"nofollow\" href=\"{{ fn('wc_get_cart_url') }}\"
  497.                        class=\"relative flex flex-row items-center justify-center w-[50px] h-[40px]\">
  498.                         {% include 'assets/menu-cart.svg' %}
  499.                         <span id=\"cartContentsCount\"
  500.                               class=\"bg-primary text-[10px] text-white absolute h-4 block top-0 right-[4px] min-w-[15px] text-center rounded-full z-[-1]\"></span>
  501.                     </a>
  502.                 </div>
  503.                 <button data-modal-target=\"searchModal\" class=\"px-3\">
  504.                     {% include 'assets/search.svg' %}
  505.                     <span class=\"sr-only\">Abrir buscador</span>
  506.                 </button>
  507.             </div>
  508.             <button id=\"moreInfo\" class=\"block lg:hidden\">
  509.                 {% include 'assets/menu.svg' %}
  510.                 <span class=\"sr-only\">Abrir menĂº</span>
  511.             </button>
  512.         </div>
  513.     </div>
  514.     <div id=\"menuOpen\"
  515.          class=\"hidden fixed xl:absolute xl:hidden top-0 w-screen h-screen bg-[#00000060] z-10\">
  516.         <div class=\"bg-white w-full xl:w-fit\">
  517.             <div class=\"max-w-screen-2xl mx-auto h-screen px-5 lg:px-20 py-4 flex flex-col gap-16 lg:gap-32\">
  518.                 <div class=\"flex flex-row justify-between items-center\">
  519.                     <a href=\"{{ home_url }}\">
  520.                         <img src=\"{{ asset('build/img/logo.png') }}\" alt=\"Logo mobile {{ bloginfo.name }}\"
  521.                              loading=\"lazy\" class=\"w-64 h-auto\">
  522.                     </a>
  523.                     <button id=\"menuClose\">
  524.                         {% include 'assets/close.svg' %}
  525.                         <span class=\"sr-only\">Cerrar menĂº</span>
  526.                     </button>
  527.                 </div>
  528.                 {% if menu.header|default() and menu.header.items|length %}
  529.                     <div class=\"flex flex-col gap-10 overflow-auto max-h-[60vh]\">
  530.                         <div class=\"flex flex-col pb-52\">
  531.                             {% for item in menu.header.items|default() %}
  532.                                 <div class=\"flex flex-col gap-3 justify-between border-b border-background py-4\">
  533.                                     <div class=\"flex flex-row items-center gap-3 justify-between\">
  534.                                         <a href=\"{{ item.link }}\"
  535.                                            target=\"{{ item.target }}\"
  536.                                            {% if item.xfn|default %}rel=\"{{ item.xfn }}\"{% endif %}
  537.                                                 {% if item.children|length %}
  538.                                                     id=\"submenuChildrenOpen\"
  539.                                                 {% endif %}
  540.                                            class=\"text-black block text-base group uppercase w-full\">{{ item.title }}</a>
  541.                                         {% if item.children|length %}
  542.                                             <a href=\"#\" class=\"submenuOpen px-4 flex\">
  543.                                                 <i class=\"arrow-icon\">{% include 'assets/arrow-down-mobile.svg' %}</i>
  544.                                             </a>
  545.                                         {% endif %}
  546.                                     </div>
  547.                                     {% if item.children|length %}
  548.                                         <div class=\"submenu hidden flex flex-col gap-2 ps-4\">
  549.                                             {% for item_children in item.children|default() %}
  550.                                                 <a href=\"{{ item_children.link }}\" target=\"{{ item_children.target }}\"
  551.                                                    {% if item.xfn|default %}rel=\"{{ item.xfn }}\"{% endif %}
  552.                                                    class=\"text-black block text-sm group uppercase w-full\">{{ item_children.title|raw }}</a>
  553.                                             {% endfor %}
  554.                                         </div>
  555.                                     {% endif %}
  556.                                 </div>
  557.                             {% endfor %}
  558.                         </div>
  559.                     </div>
  560.                 {% endif %}
  561.                 {% if is_active_sidebar( 'sidebar-mobile' ) %}
  562.                     <div class=\"absolute bottom-0 left-0 right-0 px-5 bg-white py-4 flex flex-col justify-between gap-2 pb-4 text-black z-100\">
  563.                         {{ dynamic_sidebar('sidebar-mobile') }}
  564.                     </div>
  565.                 {% endif %}
  566.             </div>
  567.         </div>
  568.     </div>
  569.     <div id=\"searchModal\" tabindex=\"-1\" style=\"margin:0;\" aria-hidden=\"true\"
  570.          class=\"hidden fixed inset-0 z-50 w-full overflow-x-hidden overflow-y-auto h-[100dvh] justify-start items-start\">
  571.         <div class=\"relative w-full h-auto z-50\">
  572.             <button type=\"button\" data-modal-hide=\"searchModal\"
  573.                     class=\"fixed top-5 z-50 right-5 text-black bg-transparent text-sm p-1.5 ml-auto inline-flex items-center\">
  574.                 {% include 'assets/close.svg' %}
  575.                 <span class=\"sr-only\">Cerrar modal</span>
  576.             </button>
  577.             <div class=\"relative bg-white shadow overflow-hidden max-h-full max-w-full m-auto p-6 2xl:px-20 space-y-6\">
  578.                 <span class=\"uppercase text-xl block text-center text-black\">Encuentra tu producto</span>
  579.                 <div class=\"bg-gray-100 max-w-2xl m-auto rounded-lg border border-gray-100\">
  580.                     {{ shortcode('[aws_search_form id=\"1\"]')|raw }}
  581.                 </div>
  582.             </div>
  583.         </div>
  584.         <div class=\"hidden bg-gray-900 bg-opacity-90 fixed inset-0 z-40 overflow-hidden cursor-pointer\"
  585.              style=\"margin: 0;\" data-modal-backdrop=\"searchModal\"></div>
  586.     </div>
  587. </header>""header.html.twig""/srv/app/templates/header.html.twig");
  588.     }
  589. }