var/cache/dev/twig/7d/7d09fc0652afac7f70bb68c7f482ea5a.php line 83

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. /* layouts/navigation/navbar.html.twig */
  14. class __TwigTemplate_66c8be37d670c64a5a27271cad613556 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""layouts/navigation/navbar.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""layouts/navigation/navbar.html.twig"));
  35.         // line 53
  36.         echo "
  37. ";
  38.         // line 55
  39.         echo "
  40. ";
  41.         // line 56
  42.         $context["navStartNode"] = $this->extensions['App\Twig\Extension\WebsiteExtension']->buildNavigation();
  43.         // line 57
  44.         $context["mainNavigation"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'57$this->source); })()), "root" => (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'57$this->source); })())]);
  45.         // line 58
  46.         echo "
  47. ";
  48.         // line 60
  49.         $context["menuRenderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
  50.         // line 61
  51.         echo "
  52. <header id=\"header\" class=\"";
  53.         // line 62
  54.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'62$this->source); })())) {
  55.             echo "fixed-top";
  56.         }
  57.         echo "\">
  58.     <div class=\"container ";
  59.         // line 63
  60.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'63$this->source); })())) {
  61.             echo "nav-top";
  62.         }
  63.         echo " ";
  64.         echo "\">
  65.         <div class=\"position-relative\">
  66.             <div class=\"user-menu hstack gap-1\">
  67.                 <div class=\"col-12 col-md col-lg col-xl d-none d-lg-block d-md-block d-xl-block\">
  68.                     ";
  69.         // line 70
  70.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::NavBarSearch"));
  71.         echo "
  72.                 </div>
  73.                     ";
  74.         // line 76
  75.         echo "                    ";
  76.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AccountBundle\\Controller\\AccountController::loginLogoutAction", []));
  77.         echo "
  78.                     ";
  79.         // line 78
  80.         $this->loadTemplate("cart/cart-nav-icon.html.twig""layouts/navigation/navbar.html.twig"78)->display($context);
  81.         // line 79
  82.         echo "
  83.                     <a href=\"";
  84.         // line 80
  85.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("footer_link_facebook"), "html"nulltrue);
  86.         echo "\" target=\"_blank\" class=\"me-1\"><i class=\"fab fa-facebook fs-4\"></i></a>
  87.                 ";
  88.         // line 86
  89.         echo "
  90.             </div>
  91.             <nav class=\"navbar navbar-light navbar-expand-lg\">
  92.                 <a class=\"navbar-brand\" href=\"/";
  93.         // line 92
  94.         echo twig_escape_filter($this->envtwig_replace_filter($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), "locale", [], "any"falsefalsetrue92), 92$this->source), ["_" => "-"]), "html"nulltrue);
  95.         echo "\">
  96.                     ";
  97.         // line 94
  98.         echo "                    <img src=\"";
  99.         echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("site_logo"), "html"nulltrue);
  100.         echo "\"
  101.                          alt=\"";
  102.         // line 95
  103.         echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("site_title"), "html"nulltrue);
  104.         echo "\"
  105.                          class=\"img-fluid\">
  106.                 </a>
  107.                 <button class=\"navbar-toggler mt-4 me-3\" type=\"button\" data-bs-toggle=\"collapse\"
  108.                         data-bs-target=\"#navbarSupportedContent\"
  109.                         aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  110.                     <span class=\"material-icons-outlined\">
  111. menu
  112. </span>
  113.                 </button>
  114.                 <div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
  115.                     <ul class=\"navbar-nav ms-auto ";
  116.         // line 107
  117.         echo "\">
  118.                         ";
  119.         // line 113
  120.         echo "
  121.                         ";
  122.         // line 114
  123.         $context['_parent'] = $context;
  124.         $context['_seq'] = twig_ensure_traversable((isset($context["mainNavigation"]) || array_key_exists("mainNavigation"$context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.'114$this->source); })()));
  125.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  126.             // line 115
  127.             echo "                            ";
  128.             // line 116
  129.             echo "                            ";
  130.             if ((twig_get_attribute($this->env$this->source$context["page"], "isVisible", [], "method"falsefalsetrue116) && twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'116$this->source); })()), "accept", [=> $context["page"]], "method"falsefalsetrue116))) {
  131.                 // line 117
  132.                 echo "                                ";
  133.                 $context["hasChildren"] = twig_get_attribute($this->env$this->source$context["page"], "hasPages", [], "method"falsefalsetrue117);
  134.                 // line 118
  135.                 echo "                                ";
  136.                 $context["documentId"] = twig_get_attribute($this->env$this->source$context["page"], "getId", [], "method"falsefalsetrue118);
  137.                 // line 119
  138.                 echo "                                ";
  139.                 $context["document"] = $this->extensions['App\Twig\Extension\WebsiteExtension']->fetchDocument($this->sandbox->ensureToStringAllowed((isset($context["documentId"]) || array_key_exists("documentId"$context) ? $context["documentId"] : (function () { throw new RuntimeError('Variable "documentId" does not exist.'119$this->source); })()), 119$this->source));
  140.                 // line 120
  141.                 echo "                                ";
  142.                 $context["excludeChildren"] = 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.'120$this->source); })()), "getProperty", [=> "exclude_childs"], "method"falsefalsetrue120);
  143.                 // line 121
  144.                 echo "                                ";
  145.                 $context["documentProperty"] = 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.'121$this->source); })()), "getProperty", [=> "extra_menu"], "method"falsefalsetrue121);
  146.                 // line 122
  147.                 echo "
  148.                                 ";
  149.                 // line 123
  150.                 if ((( !(isset($context["hasChildren"]) || array_key_exists("hasChildren"$context) ? $context["hasChildren"] : (function () { throw new RuntimeError('Variable "hasChildren" does not exist.'123$this->source); })()) || (isset($context["excludeChildren"]) || array_key_exists("excludeChildren"$context) ? $context["excludeChildren"] : (function () { throw new RuntimeError('Variable "excludeChildren" does not exist.'123$this->source); })())) &&  !(isset($context["documentProperty"]) || array_key_exists("documentProperty"$context) ? $context["documentProperty"] : (function () { throw new RuntimeError('Variable "documentProperty" does not exist.'123$this->source); })()))) {
  151.                     // line 124
  152.                     echo "                                    <li class=\"nav-item ";
  153.                     if (twig_get_attribute($this->env$this->source$context["page"], "isActive", [], "method"falsefalsetrue124)) {
  154.                         echo "active";
  155.                     }
  156.                     echo "\">
  157.                                         <a class=\"nav-link\"
  158.                                            href=\"";
  159.                     // line 126
  160.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsetrue126), 126$this->source), "html"nulltrue);
  161.                     echo "\"><span>";
  162.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsetrue126), 126$this->source), "html"nulltrue);
  163.                     echo "</span></a>
  164.                                     </li>
  165.                                 ";
  166.                 } else {
  167.                     // line 129
  168.                     echo "                                    <li class=\"nav-item ";
  169.                     if (twig_get_attribute($this->env$this->source$context["page"], "IsActive", [], "method"falsefalsetrue129)) {
  170.                         echo "active";
  171.                     }
  172.                     echo " dropdown\">
  173.                                         <a class=\"nav-link dropdown-toggle\" href=\"";
  174.                     // line 130
  175.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsetrue130), 130$this->source), "html"nulltrue);
  176.                     echo "\" role=\"button\"
  177.                                            data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
  178.                                            aria-expanded=\"false\"><span>";
  179.                     // line 132
  180.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsetrue132), 132$this->source), "html"nulltrue);
  181.                     echo "</span></a>
  182.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
  183.                                             ";
  184.                     // line 134
  185.                     if ( !twig_test_empty((isset($context["documentProperty"]) || array_key_exists("documentProperty"$context) ? $context["documentProperty"] : (function () { throw new RuntimeError('Variable "documentProperty" does not exist.'134$this->source); })()))) {
  186.                         // line 135
  187.                         echo "                                                ";
  188.                         if (((isset($context["documentProperty"]) || array_key_exists("documentProperty"$context) ? $context["documentProperty"] : (function () { throw new RuntimeError('Variable "documentProperty" does not exist.'135$this->source); })()) == "productGroup")) {
  189.                             // line 136
  190.                             echo "                                                    ";
  191.                             $context["getProductGroups"] = $this->extensions['App\Twig\Extension\ProductExtension']->fetchProductGroup("productGroup");
  192.                             // line 137
  193.                             echo "                                                    ";
  194.                             $context['_parent'] = $context;
  195.                             $context['_seq'] = twig_ensure_traversable((isset($context["getProductGroups"]) || array_key_exists("getProductGroups"$context) ? $context["getProductGroups"] : (function () { throw new RuntimeError('Variable "getProductGroups" does not exist.'137$this->source); })()));
  196.                             foreach ($context['_seq'] as $context["_key"] => $context["getProductGroup"]) {
  197.                                 // line 138
  198.                                 echo "                                                        ";
  199.                                 $context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["getProductGroup"], 138$this->source));
  200.                                 // line 139
  201.                                 echo "                                                        <li>
  202.                                                             <a class=\"dropdown-item\" href=\"";
  203.                                 // line 140
  204.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink"$context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.'140$this->source); })()), 140$this->source), "html"nulltrue);
  205.                                 echo "\">
  206.                                                                 ";
  207.                                 // line 141
  208.                                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["getProductGroup"], "combinedCategoryName", [], "any"falsefalsetrue141))) {
  209.                                     // line 142
  210.                                     echo "                                                                    ";
  211.                                     echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["getProductGroup"], "combinedCategoryName", [], "any"falsefalsetrue142), 142$this->source)), "html"nulltrue);
  212.                                     echo "
  213.                                                                 ";
  214.                                 } else {
  215.                                     // line 144
  216.                                     echo "                                                                    ";
  217.                                     echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["getProductGroup"], "oms", [], "any"falsefalsetrue144), 144$this->source)), "html"nulltrue);
  218.                                     echo "
  219.                                                                 ";
  220.                                 }
  221.                                 // line 146
  222.                                 echo "                                                            </a>
  223.                                                         </li>
  224.                                                     ";
  225.                             }
  226.                             $_parent $context['_parent'];
  227.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['getProductGroup'], $context['_parent'], $context['loop']);
  228.                             $context array_intersect_key($context$_parent) + $_parent;
  229.                             // line 149
  230.                             echo "                                                ";
  231.                         }
  232.                         // line 150
  233.                         echo "                                            ";
  234.                     } else {
  235.                         // line 151
  236.                         echo "                                                ";
  237.                         $context['_parent'] = $context;
  238.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["page"], "getPages", [], "method"falsefalsetrue151));
  239.                         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  240.                             // line 152
  241.                             echo "                                                    ";
  242.                             if ((twig_get_attribute($this->env$this->source$context["child"], "isVisible", [], "method"falsefalsetrue152) && twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'152$this->source); })()), "accept", [=> $context["child"]], "method"falsefalsetrue152))) {
  243.                                 // line 153
  244.                                 echo "                                                        <li>
  245.                                                             <a class=\"dropdown-item\" href=\"";
  246.                                 // line 154
  247.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["child"], "getHref", [], "method"falsefalsetrue154), 154$this->source), "html"nulltrue);
  248.                                 echo "\">
  249.                                                                 ";
  250.                                 // line 155
  251.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["child"], "getLabel", [], "method"falsefalsetrue155), 155$this->source), "html"nulltrue);
  252.                                 echo "
  253.                                                             </a>
  254.                                                         </li>
  255.                                                     ";
  256.                             }
  257.                             // line 159
  258.                             echo "                                                ";
  259.                         }
  260.                         $_parent $context['_parent'];
  261.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  262.                         $context array_intersect_key($context$_parent) + $_parent;
  263.                         // line 160
  264.                         echo "                                            ";
  265.                     }
  266.                     // line 161
  267.                     echo "                                        </ul>
  268.                                     </li>
  269.                                 ";
  270.                 }
  271.                 // line 164
  272.                 echo "                            ";
  273.             }
  274.             // line 165
  275.             echo "                        ";
  276.         }
  277.         $_parent $context['_parent'];
  278.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  279.         $context array_intersect_key($context$_parent) + $_parent;
  280.         // line 166
  281.         echo "                    </ul>
  282.                 </div>
  283.             </nav>
  284.         </div><!--end container relative-->
  285.         <div class=\"col-12 col-md-6 col-lg-6 col-xl-6 px-5 d-lg-none d-md-none d-xl-none\">
  286.             ";
  287.         // line 171
  288.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::NavBarSearch"));
  289.         echo "
  290.         </div>
  291.     </div>
  292.     <script>
  293.         const inputElement = document.getElementById('form_query');
  294.         if (inputElement.value.trim() === '') {
  295.             ";
  296.         // line 178
  297.         if (array_key_exists("query"$context)) {
  298.             // line 179
  299.             echo "            inputElement.value = \"";
  300.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["query"]) || array_key_exists("query"$context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.'179$this->source); })()), 179$this->source), "html"nulltrue);
  301.             echo "\";
  302.             ";
  303.         }
  304.         // line 181
  305.         echo "        }
  306.     </script>
  307. </header>";
  308.         
  309.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  310.         
  311.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  312.     }
  313.     public function getTemplateName()
  314.     {
  315.         return "layouts/navigation/navbar.html.twig";
  316.     }
  317.     public function isTraitable()
  318.     {
  319.         return false;
  320.     }
  321.     public function getDebugInfo()
  322.     {
  323.         return array (  332 => 181,  326 => 179,  324 => 178,  314 => 171,  307 => 166,  301 => 165,  298 => 164,  293 => 161,  290 => 160,  284 => 159,  277 => 155,  273 => 154,  270 => 153,  267 => 152,  262 => 151,  259 => 150,  256 => 149,  248 => 146,  242 => 144,  236 => 142,  234 => 141,  230 => 140,  227 => 139,  224 => 138,  219 => 137,  216 => 136,  213 => 135,  211 => 134,  206 => 132,  201 => 130,  194 => 129,  186 => 126,  178 => 124,  176 => 123,  173 => 122,  170 => 121,  167 => 120,  164 => 119,  161 => 118,  158 => 117,  155 => 116,  153 => 115,  149 => 114,  146 => 113,  142 => 107,  127 => 95,  122 => 94,  118 => 92,  110 => 86,  102 => 80,  99 => 79,  97 => 78,  91 => 76,  83 => 70,  70 => 63,  64 => 62,  61 => 61,  59 => 60,  55 => 58,  53 => 57,  51 => 56,  48 => 55,  45 => 53,);
  324.     }
  325.     public function getSourceContext()
  326.     {
  327.         return new Source("{#
  328. {% set navStartNode = buildNavigation() %}
  329. {% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
  330. {% set menuRenderer = pimcore_nav_renderer('menu') %}
  331. <nav class=\"navbar navbar-expand-lg navbar-light bg-light\">
  332.     <a class=\"navbar-brand\" href=\"#\">{{ 'Navbar'|trans }}</a>
  333.     <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarNavDropdown\" aria-controls=\"navbarNavDropdown\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  334.         <span class=\"navbar-toggler-icon\"></span>
  335.     </button>
  336.     <div class=\"collapse navbar-collapse\" id=\"navbarNavDropdown\">
  337.         <ul class=\"navbar-nav ms-auto mb-2 mb-lg-0 mt-3\">
  338.             {% for page in mainNavigation %}
  339.                 {% if page.isVisible() and menuRenderer.accept(page) %}
  340.                     {% set hasChildren = page.hasPages() %}
  341.                     {% set documentId = page.getId() %}
  342.                     {% set document = fetchDocument(documentId) %}
  343.                     {% set excludeChildren = document.getProperty('exclude_childs') %}
  344.                     {% if not hasChildren or excludeChildren %}
  345.                         <li class=\"nav-item {% if page.isActive() %}active{% endif %}\">
  346.                             <a class=\"nav-link\" href=\"{{ page.getHref() }}\">{{ page.getLabel() }}</a>
  347.                         </li>
  348.                     {% else %}
  349.                         <li class=\"nav-item {% if page.IsActive() %}active{% endif %} dropdown\">
  350.                             <a class=\"nav-link dropdown-toggle\" href=\"{{ page.getHref() }}\" role=\"button\"
  351.                                data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
  352.                                aria-expanded=\"false\">{{ page.getLabel() }}</a>
  353.                             <ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
  354.                                 {% for child in page.getPages() %}
  355.                                     {% if child.isVisible() and menuRenderer.accept(child) %}
  356.                                         <li>
  357.                                             <a class=\"dropdown-item\"
  358.                                                href=\"{{ child.getHref() }}\">{{ child.getLabel() }}</a></li>
  359.                                     {% endif %}
  360.                                 {% endfor %}
  361.                             </ul>
  362.                         </li>
  363.                     {% endif %}
  364.                 {% endif %}
  365.             {% endfor %}
  366.         </ul>
  367.         {% include 'layouts/navigation/language.html.twig' %}
  368.         {{ render(controller('AccountBundle\\\\Controller\\\\AccountController::loginLogoutAction', [])) }}
  369.     </div>
  370. </nav>
  371. #}
  372. {#{% include 'layouts/layout/searchbar.html.twig' %}#}
  373. {% set navStartNode = buildNavigation() %}
  374. {% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
  375. {% set menuRenderer = pimcore_nav_renderer('menu') %}
  376. <header id=\"header\" class=\"{% if not editmode %}fixed-top{% endif %}\">
  377.     <div class=\"container {% if not editmode %}nav-top{% endif %} {#{% if not editmode %}data-aos=\"fade-down\"{% endif %}#}\">
  378.         <div class=\"position-relative\">
  379.             <div class=\"user-menu hstack gap-1\">
  380.                 <div class=\"col-12 col-md col-lg col-xl d-none d-lg-block d-md-block d-xl-block\">
  381.                     {{ render(controller('App\\\\Controller\\\\SearchController::NavBarSearch')) }}
  382.                 </div>
  383.                     {# Remove this line if no AccountBundle is installed #}
  384.                     {{ render(controller('AccountBundle\\\\Controller\\\\AccountController::loginLogoutAction', [])) }}
  385.                     {% include 'cart/cart-nav-icon.html.twig' %}
  386.                     <a href=\"{{ 'footer_link_facebook'|trans }}\" target=\"_blank\" class=\"me-1\"><i class=\"fab fa-facebook fs-4\"></i></a>
  387.                 {#{% include 'layouts/navigation/language.html.twig' %}#}
  388.             </div>
  389.             <nav class=\"navbar navbar-light navbar-expand-lg\">
  390.                 <a class=\"navbar-brand\" href=\"/{{ app.request.locale|replace({ '_': '-' }) }}\">
  391.                     {#{{ 'Navbar'|trans }}#}
  392.                     <img src=\"{{ pimcore_website_config('site_logo') }}\"
  393.                          alt=\"{{ pimcore_website_config('site_title') }}\"
  394.                          class=\"img-fluid\">
  395.                 </a>
  396.                 <button class=\"navbar-toggler mt-4 me-3\" type=\"button\" data-bs-toggle=\"collapse\"
  397.                         data-bs-target=\"#navbarSupportedContent\"
  398.                         aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  399.                     <span class=\"material-icons-outlined\">
  400. menu
  401. </span>
  402.                 </button>
  403.                 <div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
  404.                     <ul class=\"navbar-nav ms-auto {# mb-2 mb-lg-0 mt-3 #}\">
  405.                         {#
  406.                         <li class=\"nav-item\">
  407.                             <a class=\"nav-link\" href=\"/{{ app.request.locale|replace({ '_': '-' }) }}\"><span><i class=\"fas fa-home\"></i></span></a>
  408.                         </li>#}
  409.                         {% for page in mainNavigation %}
  410.                             {# here need to manually check for ACL conditions #}
  411.                             {% if page.isVisible() and menuRenderer.accept(page) %}
  412.                                 {% set hasChildren = page.hasPages() %}
  413.                                 {% set documentId = page.getId() %}
  414.                                 {% set document = fetchDocument(documentId) %}
  415.                                 {% set excludeChildren = document.getProperty('exclude_childs') %}
  416.                                 {% set documentProperty = document.getProperty('extra_menu') %}
  417.                                 {% if (not hasChildren or excludeChildren) and not documentProperty %}
  418.                                     <li class=\"nav-item {% if page.isActive() %}active{% endif %}\">
  419.                                         <a class=\"nav-link\"
  420.                                            href=\"{{ page.getHref() }}\"><span>{{ page.getLabel() }}</span></a>
  421.                                     </li>
  422.                                 {% else %}
  423.                                     <li class=\"nav-item {% if page.IsActive() %}active{% endif %} dropdown\">
  424.                                         <a class=\"nav-link dropdown-toggle\" href=\"{{ page.getHref() }}\" role=\"button\"
  425.                                            data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
  426.                                            aria-expanded=\"false\"><span>{{ page.getLabel() }}</span></a>
  427.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
  428.                                             {% if documentProperty is not empty %}
  429.                                                 {% if documentProperty == 'productGroup' %}
  430.                                                     {% set getProductGroups = app_product_fetchGroupData('productGroup') %}
  431.                                                     {% for getProductGroup in getProductGroups %}
  432.                                                         {% set detailLink = app_product_grouplink(getProductGroup) %}
  433.                                                         <li>
  434.                                                             <a class=\"dropdown-item\" href=\"{{ detailLink }}\">
  435.                                                                 {% if getProductGroup.combinedCategoryName is not empty %}
  436.                                                                     {{ getProductGroup.combinedCategoryName|capitalize }}
  437.                                                                 {% else %}
  438.                                                                     {{ getProductGroup.oms|capitalize }}
  439.                                                                 {% endif %}
  440.                                                             </a>
  441.                                                         </li>
  442.                                                     {% endfor %}
  443.                                                 {% endif %}
  444.                                             {% else %}
  445.                                                 {% for child in page.getPages() %}
  446.                                                     {% if child.isVisible() and menuRenderer.accept(child) %}
  447.                                                         <li>
  448.                                                             <a class=\"dropdown-item\" href=\"{{ child.getHref() }}\">
  449.                                                                 {{ child.getLabel() }}
  450.                                                             </a>
  451.                                                         </li>
  452.                                                     {% endif %}
  453.                                                 {% endfor %}
  454.                                             {% endif %}
  455.                                         </ul>
  456.                                     </li>
  457.                                 {% endif %}
  458.                             {% endif %}
  459.                         {% endfor %}
  460.                     </ul>
  461.                 </div>
  462.             </nav>
  463.         </div><!--end container relative-->
  464.         <div class=\"col-12 col-md-6 col-lg-6 col-xl-6 px-5 d-lg-none d-md-none d-xl-none\">
  465.             {{ render(controller('App\\\\Controller\\\\SearchController::NavBarSearch')) }}
  466.         </div>
  467.     </div>
  468.     <script>
  469.         const inputElement = document.getElementById('form_query');
  470.         if (inputElement.value.trim() === '') {
  471.             {% if query is defined %}
  472.             inputElement.value = \"{{ query }}\";
  473.             {% endif %}
  474.         }
  475.     </script>
  476. </header>""layouts/navigation/navbar.html.twig""/var/www/clients/client2/web42/web/pc/templates/layouts/navigation/navbar.html.twig");
  477.     }
  478.     
  479.     public function checkSecurity()
  480.     {
  481.         static $tags = array("set" => 56"if" => 62"include" => 78"for" => 114);
  482.         static $filters = array("escape" => 80"trans" => 80"replace" => 92"capitalize" => 142);
  483.         static $functions = array("buildNavigation" => 56"pimcore_build_nav" => 57"pimcore_nav_renderer" => 60"render" => 70"controller" => 70"pimcore_website_config" => 94"fetchDocument" => 119"app_product_fetchGroupData" => 136"app_product_grouplink" => 138);
  484.         try {
  485.             $this->sandbox->checkSecurity(
  486.                 ['set''if''include''for'],
  487.                 ['escape''trans''replace''capitalize'],
  488.                 ['buildNavigation''pimcore_build_nav''pimcore_nav_renderer''render''controller''pimcore_website_config''fetchDocument''app_product_fetchGroupData''app_product_grouplink']
  489.             );
  490.         } catch (SecurityError $e) {
  491.             $e->setSourceContext($this->source);
  492.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  493.                 $e->setTemplateLine($tags[$e->getTagName()]);
  494.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  495.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  496.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  497.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  498.             }
  499.             throw $e;
  500.         }
  501.     }
  502. }