<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layouts/navigation/navbar.html.twig */
class __TwigTemplate_66c8be37d670c64a5a27271cad613556 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/navigation/navbar.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/navigation/navbar.html.twig"));
// line 53
echo "
";
// line 55
echo "
";
// line 56
$context["navStartNode"] = $this->extensions['App\Twig\Extension\WebsiteExtension']->buildNavigation();
// line 57
$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); })())]);
// line 58
echo "
";
// line 60
$context["menuRenderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
// line 61
echo "
<header id=\"header\" class=\"";
// line 62
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 62, $this->source); })())) {
echo "fixed-top";
}
echo "\">
<div class=\"container ";
// line 63
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 63, $this->source); })())) {
echo "nav-top";
}
echo " ";
echo "\">
<div class=\"position-relative\">
<div class=\"user-menu hstack gap-1\">
<div class=\"col-12 col-md col-lg col-xl d-none d-lg-block d-md-block d-xl-block\">
";
// line 70
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::NavBarSearch"));
echo "
</div>
";
// line 76
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AccountBundle\\Controller\\AccountController::loginLogoutAction", []));
echo "
";
// line 78
$this->loadTemplate("cart/cart-nav-icon.html.twig", "layouts/navigation/navbar.html.twig", 78)->display($context);
// line 79
echo "
<a href=\"";
// line 80
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("footer_link_facebook"), "html", null, true);
echo "\" target=\"_blank\" class=\"me-1\"><i class=\"fab fa-facebook fs-4\"></i></a>
";
// line 86
echo "
</div>
<nav class=\"navbar navbar-light navbar-expand-lg\">
<a class=\"navbar-brand\" href=\"/";
// line 92
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 92, $this->source); })()), "request", [], "any", false, false, true, 92), "locale", [], "any", false, false, true, 92), 92, $this->source), ["_" => "-"]), "html", null, true);
echo "\">
";
// line 94
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("site_logo"), "html", null, true);
echo "\"
alt=\"";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("site_title"), "html", null, true);
echo "\"
class=\"img-fluid\">
</a>
<button class=\"navbar-toggler mt-4 me-3\" type=\"button\" data-bs-toggle=\"collapse\"
data-bs-target=\"#navbarSupportedContent\"
aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"material-icons-outlined\">
menu
</span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
<ul class=\"navbar-nav ms-auto ";
// line 107
echo "\">
";
// line 113
echo "
";
// line 114
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 115
echo " ";
// line 116
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, true, 116) && 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", [0 => $context["page"]], "method", false, false, true, 116))) {
// line 117
echo " ";
$context["hasChildren"] = twig_get_attribute($this->env, $this->source, $context["page"], "hasPages", [], "method", false, false, true, 117);
// line 118
echo " ";
$context["documentId"] = twig_get_attribute($this->env, $this->source, $context["page"], "getId", [], "method", false, false, true, 118);
// line 119
echo " ";
$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));
// line 120
echo " ";
$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", [0 => "exclude_childs"], "method", false, false, true, 120);
// line 121
echo " ";
$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", [0 => "extra_menu"], "method", false, false, true, 121);
// line 122
echo "
";
// line 123
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); })()))) {
// line 124
echo " <li class=\"nav-item ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "isActive", [], "method", false, false, true, 124)) {
echo "active";
}
echo "\">
<a class=\"nav-link\"
href=\"";
// line 126
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, true, 126), 126, $this->source), "html", null, true);
echo "\"><span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, true, 126), 126, $this->source), "html", null, true);
echo "</span></a>
</li>
";
} else {
// line 129
echo " <li class=\"nav-item ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "IsActive", [], "method", false, false, true, 129)) {
echo "active";
}
echo " dropdown\">
<a class=\"nav-link dropdown-toggle\" href=\"";
// line 130
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, true, 130), 130, $this->source), "html", null, true);
echo "\" role=\"button\"
data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
aria-expanded=\"false\"><span>";
// line 132
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, true, 132), 132, $this->source), "html", null, true);
echo "</span></a>
<ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
";
// line 134
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); })()))) {
// line 135
echo " ";
if (((isset($context["documentProperty"]) || array_key_exists("documentProperty", $context) ? $context["documentProperty"] : (function () { throw new RuntimeError('Variable "documentProperty" does not exist.', 135, $this->source); })()) == "productGroup")) {
// line 136
echo " ";
$context["getProductGroups"] = $this->extensions['App\Twig\Extension\ProductExtension']->fetchProductGroup("productGroup");
// line 137
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["getProductGroup"]) {
// line 138
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["getProductGroup"], 138, $this->source));
// line 139
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 140
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", null, true);
echo "\">
";
// line 141
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["getProductGroup"], "combinedCategoryName", [], "any", false, false, true, 141))) {
// line 142
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["getProductGroup"], "combinedCategoryName", [], "any", false, false, true, 142), 142, $this->source)), "html", null, true);
echo "
";
} else {
// line 144
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["getProductGroup"], "oms", [], "any", false, false, true, 144), 144, $this->source)), "html", null, true);
echo "
";
}
// line 146
echo " </a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['getProductGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo " ";
}
// line 150
echo " ";
} else {
// line 151
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["page"], "getPages", [], "method", false, false, true, 151));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 152
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["child"], "isVisible", [], "method", false, false, true, 152) && 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", [0 => $context["child"]], "method", false, false, true, 152))) {
// line 153
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 154
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "getHref", [], "method", false, false, true, 154), 154, $this->source), "html", null, true);
echo "\">
";
// line 155
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "getLabel", [], "method", false, false, true, 155), 155, $this->source), "html", null, true);
echo "
</a>
</li>
";
}
// line 159
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " ";
}
// line 161
echo " </ul>
</li>
";
}
// line 164
echo " ";
}
// line 165
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
echo " </ul>
</div>
</nav>
</div><!--end container relative-->
<div class=\"col-12 col-md-6 col-lg-6 col-xl-6 px-5 d-lg-none d-md-none d-xl-none\">
";
// line 171
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::NavBarSearch"));
echo "
</div>
</div>
<script>
const inputElement = document.getElementById('form_query');
if (inputElement.value.trim() === '') {
";
// line 178
if (array_key_exists("query", $context)) {
// line 179
echo " inputElement.value = \"";
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", null, true);
echo "\";
";
}
// line 181
echo " }
</script>
</header>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "layouts/navigation/navbar.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
{% set navStartNode = buildNavigation() %}
{% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
{% set menuRenderer = pimcore_nav_renderer('menu') %}
<nav class=\"navbar navbar-expand-lg navbar-light bg-light\">
<a class=\"navbar-brand\" href=\"#\">{{ 'Navbar'|trans }}</a>
<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarNavDropdown\" aria-controls=\"navbarNavDropdown\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarNavDropdown\">
<ul class=\"navbar-nav ms-auto mb-2 mb-lg-0 mt-3\">
{% for page in mainNavigation %}
{% if page.isVisible() and menuRenderer.accept(page) %}
{% set hasChildren = page.hasPages() %}
{% set documentId = page.getId() %}
{% set document = fetchDocument(documentId) %}
{% set excludeChildren = document.getProperty('exclude_childs') %}
{% if not hasChildren or excludeChildren %}
<li class=\"nav-item {% if page.isActive() %}active{% endif %}\">
<a class=\"nav-link\" href=\"{{ page.getHref() }}\">{{ page.getLabel() }}</a>
</li>
{% else %}
<li class=\"nav-item {% if page.IsActive() %}active{% endif %} dropdown\">
<a class=\"nav-link dropdown-toggle\" href=\"{{ page.getHref() }}\" role=\"button\"
data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
aria-expanded=\"false\">{{ page.getLabel() }}</a>
<ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
{% for child in page.getPages() %}
{% if child.isVisible() and menuRenderer.accept(child) %}
<li>
<a class=\"dropdown-item\"
href=\"{{ child.getHref() }}\">{{ child.getLabel() }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% include 'layouts/navigation/language.html.twig' %}
{{ render(controller('AccountBundle\\\\Controller\\\\AccountController::loginLogoutAction', [])) }}
</div>
</nav>
#}
{#{% include 'layouts/layout/searchbar.html.twig' %}#}
{% set navStartNode = buildNavigation() %}
{% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
{% set menuRenderer = pimcore_nav_renderer('menu') %}
<header id=\"header\" class=\"{% if not editmode %}fixed-top{% endif %}\">
<div class=\"container {% if not editmode %}nav-top{% endif %} {#{% if not editmode %}data-aos=\"fade-down\"{% endif %}#}\">
<div class=\"position-relative\">
<div class=\"user-menu hstack gap-1\">
<div class=\"col-12 col-md col-lg col-xl d-none d-lg-block d-md-block d-xl-block\">
{{ render(controller('App\\\\Controller\\\\SearchController::NavBarSearch')) }}
</div>
{# Remove this line if no AccountBundle is installed #}
{{ render(controller('AccountBundle\\\\Controller\\\\AccountController::loginLogoutAction', [])) }}
{% include 'cart/cart-nav-icon.html.twig' %}
<a href=\"{{ 'footer_link_facebook'|trans }}\" target=\"_blank\" class=\"me-1\"><i class=\"fab fa-facebook fs-4\"></i></a>
{#{% include 'layouts/navigation/language.html.twig' %}#}
</div>
<nav class=\"navbar navbar-light navbar-expand-lg\">
<a class=\"navbar-brand\" href=\"/{{ app.request.locale|replace({ '_': '-' }) }}\">
{#{{ 'Navbar'|trans }}#}
<img src=\"{{ pimcore_website_config('site_logo') }}\"
alt=\"{{ pimcore_website_config('site_title') }}\"
class=\"img-fluid\">
</a>
<button class=\"navbar-toggler mt-4 me-3\" type=\"button\" data-bs-toggle=\"collapse\"
data-bs-target=\"#navbarSupportedContent\"
aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"material-icons-outlined\">
menu
</span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
<ul class=\"navbar-nav ms-auto {# mb-2 mb-lg-0 mt-3 #}\">
{#
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"/{{ app.request.locale|replace({ '_': '-' }) }}\"><span><i class=\"fas fa-home\"></i></span></a>
</li>#}
{% for page in mainNavigation %}
{# here need to manually check for ACL conditions #}
{% if page.isVisible() and menuRenderer.accept(page) %}
{% set hasChildren = page.hasPages() %}
{% set documentId = page.getId() %}
{% set document = fetchDocument(documentId) %}
{% set excludeChildren = document.getProperty('exclude_childs') %}
{% set documentProperty = document.getProperty('extra_menu') %}
{% if (not hasChildren or excludeChildren) and not documentProperty %}
<li class=\"nav-item {% if page.isActive() %}active{% endif %}\">
<a class=\"nav-link\"
href=\"{{ page.getHref() }}\"><span>{{ page.getLabel() }}</span></a>
</li>
{% else %}
<li class=\"nav-item {% if page.IsActive() %}active{% endif %} dropdown\">
<a class=\"nav-link dropdown-toggle\" href=\"{{ page.getHref() }}\" role=\"button\"
data-bs-toggle=\"dropdown\" aria-haspopup=\"true\"
aria-expanded=\"false\"><span>{{ page.getLabel() }}</span></a>
<ul class=\"dropdown-menu\" aria-labelledby=\"navbarDropdownMenuLink\">
{% if documentProperty is not empty %}
{% if documentProperty == 'productGroup' %}
{% set getProductGroups = app_product_fetchGroupData('productGroup') %}
{% for getProductGroup in getProductGroups %}
{% set detailLink = app_product_grouplink(getProductGroup) %}
<li>
<a class=\"dropdown-item\" href=\"{{ detailLink }}\">
{% if getProductGroup.combinedCategoryName is not empty %}
{{ getProductGroup.combinedCategoryName|capitalize }}
{% else %}
{{ getProductGroup.oms|capitalize }}
{% endif %}
</a>
</li>
{% endfor %}
{% endif %}
{% else %}
{% for child in page.getPages() %}
{% if child.isVisible() and menuRenderer.accept(child) %}
<li>
<a class=\"dropdown-item\" href=\"{{ child.getHref() }}\">
{{ child.getLabel() }}
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</div>
</nav>
</div><!--end container relative-->
<div class=\"col-12 col-md-6 col-lg-6 col-xl-6 px-5 d-lg-none d-md-none d-xl-none\">
{{ render(controller('App\\\\Controller\\\\SearchController::NavBarSearch')) }}
</div>
</div>
<script>
const inputElement = document.getElementById('form_query');
if (inputElement.value.trim() === '') {
{% if query is defined %}
inputElement.value = \"{{ query }}\";
{% endif %}
}
</script>
</header>", "layouts/navigation/navbar.html.twig", "/var/www/clients/client2/web42/web/pc/templates/layouts/navigation/navbar.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 56, "if" => 62, "include" => 78, "for" => 114);
static $filters = array("escape" => 80, "trans" => 80, "replace" => 92, "capitalize" => 142);
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);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include', 'for'],
['escape', 'trans', 'replace', 'capitalize'],
['buildNavigation', 'pimcore_build_nav', 'pimcore_nav_renderer', 'render', 'controller', 'pimcore_website_config', 'fetchDocument', 'app_product_fetchGroupData', 'app_product_grouplink']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}