var/cache/dev/twig/ea/eababc5488284d46f087a915e4ee7a92.php line 126

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. /* Includes/topnav.html.twig */
  14. class __TwigTemplate_b0a630af391cf8388f3557cfa50080c9 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Includes/topnav.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Includes/topnav.html.twig"));
  35.         // line 1
  36.         $context["referer"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruetrue1), "server", [], "any"falsetruetrue1), "get", ["http-referer"], "method"truetruetrue1)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruetrue1), "server", [], "any"falsetruetrue1), "get", ["http-referer"], "method"falsefalsetrue1), 1$this->source), "/")) : ("/"));
  37.         // line 2
  38.         echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->setCookie($this->sandbox->ensureToStringAllowed((isset($context["referer"]) || array_key_exists("referer"$context) ? $context["referer"] : (function () { throw new RuntimeError('Variable "referer" does not exist.'2$this->source); })()), 2$this->source)), "html"nulltrue);
  39.         echo "
  40. <header id=\"header\">
  41.   <div class=\"container\">
  42.     <!-- page logo -->
  43.     <div class=\"logo\">
  44.       <a href=\"/";
  45.         // line 9
  46.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'9$this->source); })()), 9$this->source), "html"nulltrue);
  47.         echo "/\">
  48.         <img id=\"logo\" src=\"/logo_image.jpg\" width=\"80\"  alt=\"image description\">
  49.       </a>
  50.     </div>
  51.     <div class=\"sitetitle\">
  52.       <ul>
  53.         <li class=\"active site-title\"><a href=\"/";
  54.         // line 15
  55.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'15$this->source); })()), 15$this->source), "html"nulltrue);
  56.         echo "/\">DEMO ITHRA DAM</a></li>
  57.       </ul>
  58.     </div>
  59.     ";
  60.         // line 18
  61.         $context["navStartNode"] = $this->extensions['App\Twig\AppExtension']->getNavStartNode();
  62.         // line 19
  63.         echo "    ";
  64.         echo $this->env->getFunction('pimcore_inc')->getCallable()((((("/" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'19$this->source); })()), "getKey", [], "method"falsefalsetrue19), 19$this->source)) . "/") . $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'19$this->source); })()), 19$this->source)) . "/shared/top-nav-cart"));
  65.         echo "
  66.     
  67.   </div>
  68.   <nav id=\"nav\">
  69.     <!-- menu opener of the page -->
  70.     <a href=\"#\" class=\"nav-opener\"><span></span></a>
  71.     <div class=\"nav-drop\">
  72.       <div class=\"nav-wrap\">
  73.         <!-- navigation of the page -->
  74.         <ul class=\"navigation\">
  75.           <li class=\"country\">
  76.             <img alt=\"flag\" src=\"";
  77.         // line 32
  78.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'32$this->source); })()), "getFlagIconImage", [], "method"falsefalsetrue32), "getUrl", [], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  79.         echo "\"></img>
  80.             ";
  81.         // line 33
  82.         echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'33$this->source); })()), "GetName", [], "method"falsefalsetrue33) == "International")) ? (twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'33$this->source); })()), "GetName", [], "method"falsefalsetrue33)) : ($this->extensions['App\Twig\AppExtension']->getRegionBundle($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'33$this->source); })()), "GetName", [], "method"falsefalsetrue33), 33$this->source)))), "html"nulltrue);
  83.         echo "
  84.           </li> 
  85.         
  86.           <li><a href=\"/";
  87.         // line 36
  88.         echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'36$this->source); })()), 36$this->source)), "html"nulltrue);
  89.         echo "/brand/list\">Categories A-Z</a>
  90.         
  91.           ";
  92.         // line 38
  93.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'38$this->source); })())) {
  94.             // line 39
  95.             echo "          <li><a href=\"";
  96.             echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["prefix" => twig_lower_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'39$this->source); })()), 39$this->source))], "product-landing", ["absolute" => false]), "html"nulltrue);
  97.             echo "\">Documents</a>
  98.             <div class=\"dropdown\">
  99.               <div class=\"container\">
  100.                 <div class=\"top-block\">
  101.                  
  102.                 </div>
  103.                 <div class=\"bottom-block\">
  104.                   <div class=\"row\">
  105.                   
  106.                   ";
  107.             // line 48
  108.             $context["filterDefinition2"] = $this->extensions['App\Twig\AppExtension']->getFilterDefinitions();
  109.             // line 49
  110.             echo "                  
  111.                   ";
  112.             // line 50
  113.             $context["products2"] = $this->extensions['App\Twig\AppExtension']->getProductList($this->sandbox->ensureToStringAllowed((isset($context["filterDefinition2"]) || array_key_exists("filterDefinition2"$context) ? $context["filterDefinition2"] : (function () { throw new RuntimeError('Variable "filterDefinition2" does not exist.'50$this->source); })()), 50$this->source), $this->sandbox->ensureToStringAllowed(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.'50$this->source); })()), "request", [], "any"falsefalsetrue50), 50$this->source));
  114.             // line 51
  115.             echo "                  ";
  116.             $context["valuesIndex"] = $this->extensions['App\Twig\AppExtension']->getValueIndex($this->sandbox->ensureToStringAllowed((isset($context["filterDefinition2"]) || array_key_exists("filterDefinition2"$context) ? $context["filterDefinition2"] : (function () { throw new RuntimeError('Variable "filterDefinition2" does not exist.'51$this->source); })()), 51$this->source), $this->sandbox->ensureToStringAllowed((isset($context["products2"]) || array_key_exists("products2"$context) ? $context["products2"] : (function () { throw new RuntimeError('Variable "products2" does not exist.'51$this->source); })()), 51$this->source));
  117.             // line 52
  118.             echo "                      
  119.                   ";
  120.             // line 53
  121.             $context["showcount"] = 0;
  122.             // line 54
  123.             echo "                  ";
  124.             $context["subCategories"] = $this->extensions['App\Twig\AppExtension']->getsubCategories();
  125.             // line 55
  126.             echo "                  ";
  127.             $context["x"] = 0;
  128.             // line 56
  129.             echo "
  130.                   ";
  131.             // line 57
  132.             if ((isset($context["subCategories"]) || array_key_exists("subCategories"$context) ? $context["subCategories"] : (function () { throw new RuntimeError('Variable "subCategories" does not exist.'57$this->source); })())) {
  133.                 // line 58
  134.                 echo "                    ";
  135.                 $context['_parent'] = $context;
  136.                 $context['_seq'] = twig_ensure_traversable((isset($context["subCategories"]) || array_key_exists("subCategories"$context) ? $context["subCategories"] : (function () { throw new RuntimeError('Variable "subCategories" does not exist.'58$this->source); })()));
  137.                 foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
  138.                     // line 59
  139.                     echo "                      ";
  140.                     if ((twig_get_attribute($this->env$this->source, ($context["valuesIndex"] ?? null), twig_get_attribute($this->env$this->source$context["subCategory"], "getId", [], "method"falsefalsetrue59), [], "array"truetruetrue59) && (twig_get_attribute($this->env$this->source, (isset($context["valuesIndex"]) || array_key_exists("valuesIndex"$context) ? $context["valuesIndex"] : (function () { throw new RuntimeError('Variable "valuesIndex" does not exist.'59$this->source); })()), twig_get_attribute($this->env$this->source$context["subCategory"], "getId", [], "method"falsefalsetrue59), [], "array"falsefalsetrue59) > 0))) {
  141.                         // line 60
  142.                         echo "                        ";
  143.                         $context["url"] = twig_get_attribute($this->env$this->source$context["subCategory"], "getDetailUrl", [["rootCategory" => twig_get_attribute($this->env$this->source$context["subCategory"], "getParent", [], "method"falsefalsetrue60), "document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'60$this->source); })())]], "method"falsefalsetrue60);
  144.                         // line 61
  145.                         echo "                        ";
  146.                         $context["x"] = ((isset($context["x"]) || array_key_exists("x"$context) ? $context["x"] : (function () { throw new RuntimeError('Variable "x" does not exist.'61$this->source); })()) + 1);
  147.                         // line 62
  148.                         echo "                        <div class=\"col-sm-2 col-sm-2-";
  149.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["x"]) || array_key_exists("x"$context) ? $context["x"] : (function () { throw new RuntimeError('Variable "x" does not exist.'62$this->source); })()), 62$this->source), "html"nulltrue);
  150.                         echo "\">
  151.                           <ul class=\"liquor-type\">
  152.                             <li>
  153.                               <a href=\"";
  154.                         // line 65
  155.                         echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'65$this->source); })()), 65$this->source)), "html"nulltrue);
  156.                         echo "\">";
  157.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["subCategory"], "getName", [], "method"falsefalsetrue65), 65$this->source), "html"nulltrue);
  158.                         echo "</a>
  159.                               ";
  160.                         // line 66
  161.                         if (twig_get_attribute($this->env$this->source$context["subCategory"], "getChildren", [], "method"falsefalsetrue66)) {
  162.                             // line 67
  163.                             echo "                                <ul>
  164.                                   ";
  165.                             // line 68
  166.                             $context['_parent'] = $context;
  167.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["subCategory"], "getChildren", [], "method"falsefalsetrue68));
  168.                             foreach ($context['_seq'] as $context["_key"] => $context["sub"]) {
  169.                                 // line 69
  170.                                 echo "                                    ";
  171.                                 $context["suburl"] = twig_get_attribute($this->env$this->source$context["sub"], "getDetailUrl", [["rootCategory" => twig_get_attribute($this->env$this->source$context["sub"], "parent", [], "any"falsefalsetrue69), "document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'69$this->source); })())]], "method"falsefalsetrue69);
  172.                                 // line 70
  173.                                 echo "                                    ";
  174.                                 $context["subId"] = twig_get_attribute($this->env$this->source$context["sub"], "getId", [], "method"falsefalsetrue70);
  175.                                 // line 71
  176.                                 echo "                                    ";
  177.                                 if ((twig_in_filter((isset($context["subId"]) || array_key_exists("subId"$context) ? $context["subId"] : (function () { throw new RuntimeError('Variable "subId" does not exist.'71$this->source); })()), (isset($context["valuesIndex"]) || array_key_exists("valuesIndex"$context) ? $context["valuesIndex"] : (function () { throw new RuntimeError('Variable "valuesIndex" does not exist.'71$this->source); })())) && (twig_get_attribute($this->env$this->source, (isset($context["valuesIndex"]) || array_key_exists("valuesIndex"$context) ? $context["valuesIndex"] : (function () { throw new RuntimeError('Variable "valuesIndex" does not exist.'71$this->source); })()), (isset($context["subId"]) || array_key_exists("subId"$context) ? $context["subId"] : (function () { throw new RuntimeError('Variable "subId" does not exist.'71$this->source); })()), [], "array"falsefalsetrue71) > 0))) {
  178.                                     // line 72
  179.                                     echo "                                      <li><a href=\"";
  180.                                     echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["suburl"]) || array_key_exists("suburl"$context) ? $context["suburl"] : (function () { throw new RuntimeError('Variable "suburl" does not exist.'72$this->source); })()), 72$this->source)), "html"nulltrue);
  181.                                     echo "\">";
  182.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["sub"], "getName", [], "method"falsefalsetrue72), 72$this->source), "html"nulltrue);
  183.                                     echo "</a></li>
  184.                                     ";
  185.                                 }
  186.                                 // line 74
  187.                                 echo "                                  ";
  188.                             }
  189.                             $_parent $context['_parent'];
  190.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sub'], $context['_parent'], $context['loop']);
  191.                             $context array_intersect_key($context$_parent) + $_parent;
  192.                             // line 75
  193.                             echo "                                </ul>
  194.                               ";
  195.                         }
  196.                         // line 77
  197.                         echo "                            </li>
  198.                           </ul>
  199.                         </div>
  200.                       ";
  201.                     }
  202.                     // line 81
  203.                     echo "                    ";
  204.                 }
  205.                 $_parent $context['_parent'];
  206.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
  207.                 $context array_intersect_key($context$_parent) + $_parent;
  208.                 // line 82
  209.                 echo "                  ";
  210.             }
  211.             // line 83
  212.             echo "                  </div>
  213.                 </div>
  214.               </div>
  215.             </div>
  216.           </li>
  217.           ";
  218.         }
  219.         // line 88
  220.         echo "          
  221.                    
  222.         </ul>
  223.         <!-- search form of the page -->
  224.         <form class=\"search-form\" action=\"/";
  225.         // line 92
  226.         echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'92$this->source); })()), "request", [], "any"falsefalsetrue92), "getLocale", [], "method"falsefalsetrue92), 92$this->source)), "html"nulltrue);
  227.         echo "/product/list\" method=\"GET\">
  228.           <input type=\"search\" name=\"search\" id=\"search\" placeholder=\"";
  229.         // line 93
  230.         echo twig_escape_filter($this->env, ((array_key_exists("search"$context)) ? ((isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'93$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.search"))), "html"nulltrue);
  231.         echo "\" class=\"form-control\">
  232.           <button type=\"submit\"><span class=\"icon-search\"></span></button>
  233.         </form>
  234.       </div>
  235.     </div>
  236.   </nav>
  237. </header>
  238. ";
  239.         
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  241.         
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  243.     }
  244.     /**
  245.      * @codeCoverageIgnore
  246.      */
  247.     public function getTemplateName()
  248.     {
  249.         return "Includes/topnav.html.twig";
  250.     }
  251.     /**
  252.      * @codeCoverageIgnore
  253.      */
  254.     public function isTraitable()
  255.     {
  256.         return false;
  257.     }
  258.     /**
  259.      * @codeCoverageIgnore
  260.      */
  261.     public function getDebugInfo()
  262.     {
  263.         return array (  243 => 93,  239 => 92,  233 => 88,  225 => 83,  222 => 82,  216 => 81,  210 => 77,  206 => 75,  200 => 74,  192 => 72,  189 => 71,  186 => 70,  183 => 69,  179 => 68,  176 => 67,  174 => 66,  168 => 65,  161 => 62,  158 => 61,  155 => 60,  152 => 59,  147 => 58,  145 => 57,  142 => 56,  139 => 55,  136 => 54,  134 => 53,  131 => 52,  128 => 51,  126 => 50,  123 => 49,  121 => 48,  108 => 39,  106 => 38,  101 => 36,  95 => 33,  91 => 32,  74 => 19,  72 => 18,  66 => 15,  57 => 9,  47 => 2,  45 => 1,);
  264.     }
  265.     public function getSourceContext()
  266.     {
  267.         return new Source("{% set referer = app.request.server.get('http-referer')|default('/') %}
  268. {{ setCookie(referer) }}
  269. <header id=\"header\">
  270.   <div class=\"container\">
  271.     <!-- page logo -->
  272.     <div class=\"logo\">
  273.       <a href=\"/{{ locale }}/\">
  274.         <img id=\"logo\" src=\"/logo_image.jpg\" width=\"80\"  alt=\"image description\">
  275.       </a>
  276.     </div>
  277.     <div class=\"sitetitle\">
  278.       <ul>
  279.         <li class=\"active site-title\"><a href=\"/{{ locale }}/\">DEMO ITHRA DAM</a></li>
  280.       </ul>
  281.     </div>
  282.     {% set navStartNode = getNavStartNode() %}
  283.     {{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/' ~ locale ~ '/shared/top-nav-cart') }}
  284.     
  285.   </div>
  286.   <nav id=\"nav\">
  287.     <!-- menu opener of the page -->
  288.     <a href=\"#\" class=\"nav-opener\"><span></span></a>
  289.     <div class=\"nav-drop\">
  290.       <div class=\"nav-wrap\">
  291.         <!-- navigation of the page -->
  292.         <ul class=\"navigation\">
  293.           <li class=\"country\">
  294.             <img alt=\"flag\" src=\"{{ country.getFlagIconImage().getUrl() }}\"></img>
  295.             {{ (country.GetName() == 'International') ? country.GetName() : getRegionBundle(country.GetName()) }}
  296.           </li> 
  297.         
  298.           <li><a href=\"/{{ locale|lower }}/brand/list\">Categories A-Z</a>
  299.         
  300.           {% if not editmode %}
  301.           <li><a href=\"{{ pimcore_url({'prefix': locale|lower}, 'product-landing', {'absolute': false}) }}\">Documents</a>
  302.             <div class=\"dropdown\">
  303.               <div class=\"container\">
  304.                 <div class=\"top-block\">
  305.                  
  306.                 </div>
  307.                 <div class=\"bottom-block\">
  308.                   <div class=\"row\">
  309.                   
  310.                   {% set filterDefinition2 = getFilterDefinitions() %}
  311.                   
  312.                   {% set products2 = getProductList(filterDefinition2, app.request) %}
  313.                   {% set valuesIndex = getValueIndex(filterDefinition2,products2) %}
  314.                       
  315.                   {% set showcount = 0 %}
  316.                   {% set subCategories = getsubCategories() %}
  317.                   {% set x = 0 %}
  318.                   {% if subCategories %}
  319.                     {% for subCategory in subCategories %}
  320.                       {% if valuesIndex[subCategory.getId()] is defined and valuesIndex[subCategory.getId()] > 0 %}
  321.                         {% set url = subCategory.getDetailUrl({\"rootCategory\" : subCategory.getParent(), \"document\" : document}) %}
  322.                         {% set x = x + 1 %}
  323.                         <div class=\"col-sm-2 col-sm-2-{{ x }}\">
  324.                           <ul class=\"liquor-type\">
  325.                             <li>
  326.                               <a href=\"{{ url|lower }}\">{{ subCategory.getName() }}</a>
  327.                               {% if subCategory.getChildren() %}
  328.                                 <ul>
  329.                                   {% for sub in subCategory.getChildren() %}
  330.                                     {% set suburl = sub.getDetailUrl({\"rootCategory\" : sub.parent, \"document\" : document}) %}
  331.                                     {% set subId = sub.getId() %}
  332.                                     {% if subId in valuesIndex and valuesIndex[subId] > 0 %}
  333.                                       <li><a href=\"{{ suburl|lower }}\">{{ sub.getName() }}</a></li>
  334.                                     {% endif %}
  335.                                   {% endfor %}
  336.                                 </ul>
  337.                               {% endif %}
  338.                             </li>
  339.                           </ul>
  340.                         </div>
  341.                       {% endif %}
  342.                     {% endfor %}
  343.                   {% endif %}
  344.                   </div>
  345.                 </div>
  346.               </div>
  347.             </div>
  348.           </li>
  349.           {% endif %}          
  350.                    
  351.         </ul>
  352.         <!-- search form of the page -->
  353.         <form class=\"search-form\" action=\"/{{ app.request.getLocale()|lower }}/product/list\" method=\"GET\">
  354.           <input type=\"search\" name=\"search\" id=\"search\" placeholder=\"{{ (search is defined) ? search : 'espirits.header.search'|trans }}\" class=\"form-control\">
  355.           <button type=\"submit\"><span class=\"icon-search\"></span></button>
  356.         </form>
  357.       </div>
  358.     </div>
  359.   </nav>
  360. </header>
  361. ""Includes/topnav.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Includes/topnav.html.twig");
  362.     }
  363.     
  364.     public function checkSecurity()
  365.     {
  366.         static $tags = array("set" => 1"if" => 38"for" => 58);
  367.         static $filters = array("default" => 1"escape" => 2"lower" => 36"trans" => 93);
  368.         static $functions = array("setCookie" => 2"getNavStartNode" => 18"pimcore_inc" => 19"getRegionBundle" => 33"pimcore_url" => 39"getFilterDefinitions" => 48"getProductList" => 50"getValueIndex" => 51"getsubCategories" => 54);
  369.         try {
  370.             $this->sandbox->checkSecurity(
  371.                 ['set''if''for'],
  372.                 ['default''escape''lower''trans'],
  373.                 ['setCookie''getNavStartNode''pimcore_inc''getRegionBundle''pimcore_url''getFilterDefinitions''getProductList''getValueIndex''getsubCategories']
  374.             );
  375.         } catch (SecurityError $e) {
  376.             $e->setSourceContext($this->source);
  377.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  378.                 $e->setTemplateLine($tags[$e->getTagName()]);
  379.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  380.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  381.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  382.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  383.             }
  384.             throw $e;
  385.         }
  386.     }
  387. }