<?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;
/* default/snippet/header.html.twig */
class __TwigTemplate_c5397a996db90226d14435ad8e91b5f2 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", "default/snippet/header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/snippet/header.html.twig"));
// line 4
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo " <style>
.header-container {
background-color: #1A1821;
min-height: 500px;
color: #fff !important;
padding: 10px;
}
a {
color: #fff;
font-weight: bold;
}
</style>
<div class=\"container header-container\">
<h1>Felső linkek:</h1>
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-upper-row"), "iterator", [], "any", false, false, true, 19));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 20
echo " <div>
<p>Link:<br>";
// line 21
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["required" => "linkonly"]);
echo "</p>
<hr>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo "
<h1>Kollekciók oldalak:</h1>
";
// line 27
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-main-category-row"), "iterator", [], "any", false, false, true, 27));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 28
echo " <div>
<p>Kép:<br>";
// line 29
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["required" => true]);
echo "</p>
<hr>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " <h1>Első alkollekciók oldal linkek:</h1>
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-category-row"), "iterator", [], "any", false, false, true, 34));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 35
echo " <div>
<p>Link:<br>";
// line 36
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["required" => "linkonly"]);
echo "</p>
<p>Kép:<br>";
// line 37
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["required" => true]);
echo "</p>
<hr>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " <h1>Második alkollekciók oldal linkek:</h1>
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-category-row2"), "iterator", [], "any", false, false, true, 42));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 43
echo " <div>
<p>Link:<br>";
// line 44
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["required" => "linkonly"]);
echo "</p>
<p>Kép:<br>";
// line 45
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["required" => true]);
echo "</p>
<hr>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " </div>
";
} else {
// line 51
echo " <header>
<nav class=\"navbar navbar-light\">
<div class=\"container navbar-wrapper\">
<button type=\"button\" class=\"navbar-toggler collapsed\" data-toggle=\"collapse\" data-target=\"#navMenu\">
<span class=\"toggler-icon top-bar\"></span>
<span class=\"toggler-icon bottom-bar\"></span>
</button>
<nav aria-label=\"breadcrumb\" class=\"breadcrumb-navigation\">
<ul class=\"breadcrumb\">
";
// line 61
$context["breadcrumbCategory"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("breadcrumbCategory"), "getValue", [], "method", false, false, true, 61);
// line 62
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["breadcrumbCategory"]) || array_key_exists("breadcrumbCategory", $context) ? $context["breadcrumbCategory"] : (function () { throw new RuntimeError('Variable "breadcrumbCategory" does not exist.', 62, $this->source); })()), "Pimcore\\Model\\DataObject\\CoreShopCategory")) {
// line 63
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"/\">Főoldal</a></li>
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"";
// line 65
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("e_boutique");
echo "\">E-Boutique</a></li>
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbCategory"]) || array_key_exists("breadcrumbCategory", $context) ? $context["breadcrumbCategory"] : (function () { throw new RuntimeError('Variable "breadcrumbCategory" does not exist.', 66, $this->source); })()), "hierarchy", [], "any", false, false, true, 66));
foreach ($context['_seq'] as $context["key"] => $context["cat"]) {
// line 67
echo " ";
if ((($context["key"] + 1) == twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbCategory"]) || array_key_exists("breadcrumbCategory", $context) ? $context["breadcrumbCategory"] : (function () { throw new RuntimeError('Variable "breadcrumbCategory" does not exist.', 67, $this->source); })()), "hierarchy", [], "any", false, false, true, 67)))) {
// line 68
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a>";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, true, 68), 68, $this->source)), "html", null, true);
echo "</a></li>
";
} else {
// line 70
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"";
// line 71
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["object" => $context["cat"]]), "html", null, true);
echo "\"
title=\"";
// line 72
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, true, 72), 72, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, true, 72), 72, $this->source)), "html", null, true);
echo "</a></li>
";
}
// line 74
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo " ";
}
// line 76
echo " ";
$context["breadcrumbProduct"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("breadcrumbProduct"), "getValue", [], "method", false, false, true, 76);
// line 77
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["breadcrumbProduct"]) || array_key_exists("breadcrumbProduct", $context) ? $context["breadcrumbProduct"] : (function () { throw new RuntimeError('Variable "breadcrumbProduct" does not exist.', 77, $this->source); })()), "Pimcore\\Model\\DataObject\\CoreShopProduct")) {
// line 78
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"/\">Főoldal</a></li>
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"";
// line 80
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("e_boutique");
echo "\">E-Boutique</a></li>
";
// line 81
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbProduct"]) || array_key_exists("breadcrumbProduct", $context) ? $context["breadcrumbProduct"] : (function () { throw new RuntimeError('Variable "breadcrumbProduct" does not exist.', 81, $this->source); })()), "categories", [], "any", false, false, true, 81)) > 0)) {
// line 82
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_last($this->env, twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbProduct"]) || array_key_exists("breadcrumbProduct", $context) ? $context["breadcrumbProduct"] : (function () { throw new RuntimeError('Variable "breadcrumbProduct" does not exist.', 82, $this->source); })()), "categories", [], "any", false, false, true, 82)), "hierarchy", [], "any", false, false, true, 82));
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 83
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"";
// line 84
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["object" => $context["cat"]]), "html", null, true);
echo "\"
title=\"";
// line 85
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, true, 85), 85, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, true, 85), 85, $this->source)), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " ";
}
// line 88
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a
title=\"";
// line 89
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbProduct"]) || array_key_exists("breadcrumbProduct", $context) ? $context["breadcrumbProduct"] : (function () { throw new RuntimeError('Variable "breadcrumbProduct" does not exist.', 89, $this->source); })()), "sku", [], "any", false, false, true, 89), 89, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbProduct"]) || array_key_exists("breadcrumbProduct", $context) ? $context["breadcrumbProduct"] : (function () { throw new RuntimeError('Variable "breadcrumbProduct" does not exist.', 89, $this->source); })()), "sku", [], "any", false, false, true, 89), 89, $this->source)), "html", null, true);
echo "</a>
</li>
";
}
// line 92
echo " ";
$context["breadcrumbNews"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("breadcrumbNews"), "getValue", [], "method", false, false, true, 92);
// line 93
echo " ";
if ((isset($context["breadcrumbNews"]) || array_key_exists("breadcrumbNews", $context) ? $context["breadcrumbNews"] : (function () { throw new RuntimeError('Variable "breadcrumbNews" does not exist.', 93, $this->source); })())) {
// line 94
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbNews"]) || array_key_exists("breadcrumbNews", $context) ? $context["breadcrumbNews"] : (function () { throw new RuntimeError('Variable "breadcrumbNews" does not exist.', 94, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 95
echo " ";
if ((null === twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, true, 95))) {
// line 96
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a
title=\"";
// line 97
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 97), 97, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 97), 97, $this->source)), "html", null, true);
echo "</a></li>
";
} else {
// line 99
echo " <li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, true, 99), 99, $this->source), "html", null, true);
echo "\"
title=\"";
// line 100
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 100), 100, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 100), 100, $this->source)), "html", null, true);
echo "</a>
</li>
";
}
// line 103
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 104
echo " ";
}
// line 105
echo " </ul>
</nav>
<div>
<a class=\"navbar-brand\" href=\"/\">
<img src=\"";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/themes/frontend/images/seiko-boutique-logo.svg"), "html", null, true);
echo "\" alt=\"Seiko Boutique\">
</a>
</div>
<div class=\"search-bar-wrapper\" id=\"searchBar\">
<form action=\"/kereso/\" method=\"get\">
<input type=\"search\" id=\"site-search\" name=\"q\">
<button type=\"button\" onclick=\"closeSearch()\" class=\"\">
<img src=\"";
// line 116
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/themes/frontend/images/close.svg"), "html", null, true);
echo "\" alt=\"Bezárás\">
</button>
</form>
</div>
<div id=\"navIconList\">
<button id=\"navbar-search-button\" onclick=\"openSearch()\" type=\"button\" class=\"btn navIcon\">
<img src=\"";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/themes/frontend/images/search.svg"), "html", null, true);
echo "\" alt=\"Keresés\">
</button>
<div id=\"wishlist-widget\">
";
// line 125
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Ecommerce\\Controller\\WishListController::wishlistWidgetAction", ["ignore_errors" => true]));
// line 127
echo "
</div>
<div id=\"mini-cart-container\">
";
// line 130
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Ecommerce\\Controller\\CartController::widgetAction", ["ignore_errors" => true]));
echo "
</div>
<a href=\"";
// line 132
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profil");
echo "\" class=\"btn navIcon\">
<img src=\"";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/images/profile.svg"), "html", null, true);
echo "\" alt=\"Profil\">
</a>
</div>
</div>
<!-- SEARCH -->
<div class=\"searchbar\">
<div style=\"flex: 1;\">
<input id=\"serachbar-input-mobile\" type=\"text\" placeholder=\"Keresés...\"/>
</div>
<div>
<button id=\"navbar-search-button-mobile\" type=\"button\" class=\"btn navIcon\">
<img src=\"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/themes/frontend/images/search.svg"), "html", null, true);
echo "\" alt=\"Keresés\">
</button>
</div>
</div>
<div class=\"collapse navbar-collapse\" id=\"navMenu\">
<ul class=\"row\" id=\"navMenuList\">
";
// line 150
$context["upperRow"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-upper-row");
// line 151
echo " ";
if (((isset($context["upperRow"]) || array_key_exists("upperRow", $context) ? $context["upperRow"] : (function () { throw new RuntimeError('Variable "upperRow" does not exist.', 151, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["upperRow"]) || array_key_exists("upperRow", $context) ? $context["upperRow"] : (function () { throw new RuntimeError('Variable "upperRow" does not exist.', 151, $this->source); })()), "getCount", [], "method", false, false, true, 151))) {
// line 152
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["upperRow"]) || array_key_exists("upperRow", $context) ? $context["upperRow"] : (function () { throw new RuntimeError('Variable "upperRow" does not exist.', 152, $this->source); })()), "iterator", [], "any", false, false, true, 152));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 153
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link"), "isEmpty", [], "method", false, false, true, 153)) {
// line 154
echo " <li class=\"nav-item\">
";
// line 155
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["class" => "nav-link"]);
// line 157
echo "
</li>
";
}
// line 160
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 161
echo " ";
}
// line 162
echo " </ul>
<div class=\"row w-100 m-0\" id=\"navLogoList\">
";
// line 164
$context["categoryRow"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-main-category-row");
// line 165
echo " ";
if (((isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 165, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 165, $this->source); })()), "getCount", [], "method", false, false, true, 165))) {
// line 166
echo " <div class=\"header-main-category-row\">
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 167, $this->source); })()), "iterator", [], "any", false, false, true, 167));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 168
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 169
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
// line 170
echo " ";
if (((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 170, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 170, $this->source); })()), "getImage", [], "method", false, false, true, 170))) {
// line 171
echo " <div class=\"col-lg-2 col-md-2 col-6 navLogoMainListItem\"
onclick=\"openNavSiteLinks(";
// line 172
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["i"], 172, $this->source), "html", null, true);
echo ",event)\">
<ul class=\"header-main-category-row-item\">
<li class=\"nav-logo-item\">
";
// line 175
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["imgAttributes" => ["class" => "header-main-category-row-image"]]);
// line 179
echo "
</li>
</ul>
</div>
";
}
// line 184
echo " ";
// line 198
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 199
echo " </div>
";
}
// line 201
echo " ";
$context["categoryRow"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-category-row");
// line 202
echo " ";
if (((isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 202, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 202, $this->source); })()), "getCount", [], "method", false, false, true, 202))) {
// line 203
echo " <div class=\"header-category-row displayNone\">
";
// line 204
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 204, $this->source); })()), "iterator", [], "any", false, false, true, 204));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 205
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 206
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
// line 207
echo "
";
// line 208
if ((( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link"), "isEmpty", [], "method", false, false, true, 208) && (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 208, $this->source); })())) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 208, $this->source); })()), "getImage", [], "method", false, false, true, 208))) {
// line 209
echo " <div class=\"col-lg-2 col-md-2 col-6 navLogoListItem\">
<ul>
<li class=\"nav-logo-item\">
";
// line 212
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["noText" => true, "textPrefix" => // line 214
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 214, $this->source); })())]);
// line 215
echo "
</li>
</ul>
</div>
";
}
// line 220
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 221
echo " </div>
";
}
// line 223
echo " ";
$context["categoryRow"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "header-category-row2");
// line 224
echo " ";
if (((isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 224, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 224, $this->source); })()), "getCount", [], "method", false, false, true, 224))) {
// line 225
echo " <div class=\"header-category-row2 displayNone\">
";
// line 226
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["categoryRow"]) || array_key_exists("categoryRow", $context) ? $context["categoryRow"] : (function () { throw new RuntimeError('Variable "categoryRow" does not exist.', 226, $this->source); })()), "iterator", [], "any", false, false, true, 226));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 227
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 228
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
// line 229
echo "
";
// line 230
if ((( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link"), "isEmpty", [], "method", false, false, true, 230) && (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 230, $this->source); })())) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 230, $this->source); })()), "getImage", [], "method", false, false, true, 230))) {
// line 231
echo " <div class=\"col-lg-2 col-md-2 col-6 navLogoListItem\">
<ul>
<li class=\"nav-logo-item\">
";
// line 234
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["noText" => true, "textPrefix" => // line 236
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 236, $this->source); })())]);
// line 237
echo "
</li>
</ul>
</div>
";
}
// line 242
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 243
echo " </div>
";
}
// line 245
echo " <div class=\"col-12 nav-watchlist-wrapper\">
<p class=\"nav-watchlist\" title=\"Az összes óra megtekintése\">
<a href=\"/e-boutique\">Az összes óra megtekintése</a>
</p>
</div>
</div>
<div class=\"row w-100\" id=\"navMenuClose\">
<div class=\"col-12\">
<ul>
<li class=\"nav-item-close\">
<a class=\"nav-link nav-close\" data-toggle=\"collapse\" data-target=\"#navMenu\"
href=\"#\">
Bezárás
</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</header>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "default/snippet/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 567 => 245, 563 => 243, 557 => 242, 550 => 237, 548 => 236, 547 => 234, 542 => 231, 540 => 230, 537 => 229, 534 => 228, 531 => 227, 527 => 226, 524 => 225, 521 => 224, 518 => 223, 514 => 221, 508 => 220, 501 => 215, 499 => 214, 498 => 212, 493 => 209, 491 => 208, 488 => 207, 485 => 206, 482 => 205, 478 => 204, 475 => 203, 472 => 202, 469 => 201, 465 => 199, 459 => 198, 457 => 184, 450 => 179, 448 => 175, 442 => 172, 439 => 171, 436 => 170, 433 => 169, 430 => 168, 426 => 167, 423 => 166, 420 => 165, 418 => 164, 414 => 162, 411 => 161, 405 => 160, 400 => 157, 398 => 155, 395 => 154, 392 => 153, 387 => 152, 384 => 151, 382 => 150, 373 => 144, 359 => 133, 355 => 132, 350 => 130, 345 => 127, 343 => 125, 337 => 122, 328 => 116, 318 => 109, 312 => 105, 309 => 104, 303 => 103, 295 => 100, 290 => 99, 283 => 97, 280 => 96, 277 => 95, 272 => 94, 269 => 93, 266 => 92, 258 => 89, 255 => 88, 252 => 87, 242 => 85, 238 => 84, 235 => 83, 230 => 82, 228 => 81, 224 => 80, 220 => 78, 217 => 77, 214 => 76, 211 => 75, 205 => 74, 198 => 72, 194 => 71, 191 => 70, 185 => 68, 182 => 67, 178 => 66, 174 => 65, 170 => 63, 167 => 62, 165 => 61, 153 => 51, 149 => 49, 139 => 45, 135 => 44, 132 => 43, 128 => 42, 125 => 41, 115 => 37, 111 => 36, 108 => 35, 104 => 34, 101 => 33, 91 => 29, 88 => 28, 84 => 27, 80 => 25, 70 => 21, 67 => 20, 63 => 19, 47 => 5, 45 => 4,);
}
public function getSourceContext()
{
return new Source("{#{{ dump(app.session) }}#}
{#{{ dump(app.session.get('_pimcore_admin')) }}#}
{#{{ dump(app.session.get('user')) }}#}
{% if editmode %}
<style>
.header-container {
background-color: #1A1821;
min-height: 500px;
color: #fff !important;
padding: 10px;
}
a {
color: #fff;
font-weight: bold;
}
</style>
<div class=\"container header-container\">
<h1>Felső linkek:</h1>
{% for i in pimcore_block('header-upper-row').iterator %}
<div>
<p>Link:<br>{{ pimcore_link('link', {'required': 'linkonly'}) }}</p>
<hr>
</div>
{% endfor %}
<h1>Kollekciók oldalak:</h1>
{% for i in pimcore_block('header-main-category-row').iterator %}
<div>
<p>Kép:<br>{{ pimcore_image('image', {'required': true}) }}</p>
<hr>
</div>
{% endfor %}
<h1>Első alkollekciók oldal linkek:</h1>
{% for i in pimcore_block('header-category-row').iterator %}
<div>
<p>Link:<br>{{ pimcore_link('link', {'required': 'linkonly'}) }}</p>
<p>Kép:<br>{{ pimcore_image('image', {'required': true}) }}</p>
<hr>
</div>
{% endfor %}
<h1>Második alkollekciók oldal linkek:</h1>
{% for i in pimcore_block('header-category-row2').iterator %}
<div>
<p>Link:<br>{{ pimcore_link('link', {'required': 'linkonly'}) }}</p>
<p>Kép:<br>{{ pimcore_image('image', {'required': true}) }}</p>
<hr>
</div>
{% endfor %}
</div>
{% else %}
<header>
<nav class=\"navbar navbar-light\">
<div class=\"container navbar-wrapper\">
<button type=\"button\" class=\"navbar-toggler collapsed\" data-toggle=\"collapse\" data-target=\"#navMenu\">
<span class=\"toggler-icon top-bar\"></span>
<span class=\"toggler-icon bottom-bar\"></span>
</button>
<nav aria-label=\"breadcrumb\" class=\"breadcrumb-navigation\">
<ul class=\"breadcrumb\">
{% set breadcrumbCategory = pimcore_placeholder('breadcrumbCategory').getValue() %}
{% if (breadcrumbCategory is instanceof('Pimcore\\\\Model\\\\DataObject\\\\CoreShopCategory')) %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"/\">Főoldal</a></li>
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"{{ path('e_boutique') }}\">E-Boutique</a></li>
{% for key, cat in breadcrumbCategory.hierarchy %}
{% if key + 1 == breadcrumbCategory.hierarchy|length %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a>{{ cat.name|upper }}</a></li>
{% else %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"{{ pimcore_url({'object': cat}) }}\"
title=\"{{ cat.name|upper }}\">{{ cat.name|upper }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% set breadcrumbProduct = pimcore_placeholder('breadcrumbProduct').getValue() %}
{% if (breadcrumbProduct is instanceof('Pimcore\\\\Model\\\\DataObject\\\\CoreShopProduct')) %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"/\">Főoldal</a></li>
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"{{ path('e_boutique') }}\">E-Boutique</a></li>
{% if breadcrumbProduct.categories|length > 0 %}
{% for cat in breadcrumbProduct.categories|last.hierarchy %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
href=\"{{ pimcore_url({'object': cat}) }}\"
title=\"{{ cat.name|upper }}\">{{ cat.name|upper }}</a></li>
{% endfor %}
{% endif %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
title=\"{{ breadcrumbProduct.sku|upper }}\">{{ breadcrumbProduct.sku|upper }}</a>
</li>
{% endif %}
{% set breadcrumbNews = pimcore_placeholder('breadcrumbNews').getValue() %}
{% if breadcrumbNews %}
{% for item in breadcrumbNews %}
{% if item.path is null %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a
title=\"{{ item.title|upper }}\">{{ item.title|upper }}</a></li>
{% else %}
<li class=\"breadcrumb-item\" aria-current=\"page\"><a href=\"{{ item.path }}\"
title=\"{{ item.title|upper }}\">{{ item.title | upper }}</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
</nav>
<div>
<a class=\"navbar-brand\" href=\"/\">
<img src=\"{{ asset('/themes/frontend/images/seiko-boutique-logo.svg') }}\" alt=\"Seiko Boutique\">
</a>
</div>
<div class=\"search-bar-wrapper\" id=\"searchBar\">
<form action=\"/kereso/\" method=\"get\">
<input type=\"search\" id=\"site-search\" name=\"q\">
<button type=\"button\" onclick=\"closeSearch()\" class=\"\">
<img src=\"{{ asset('/themes/frontend/images/close.svg') }}\" alt=\"Bezárás\">
</button>
</form>
</div>
<div id=\"navIconList\">
<button id=\"navbar-search-button\" onclick=\"openSearch()\" type=\"button\" class=\"btn navIcon\">
<img src=\"{{ asset('/themes/frontend/images/search.svg') }}\" alt=\"Keresés\">
</button>
<div id=\"wishlist-widget\">
{{ render(controller('App\\\\Ecommerce\\\\Controller\\\\WishListController::wishlistWidgetAction', {
'ignore_errors': true
})) }}
</div>
<div id=\"mini-cart-container\">
{{ render(controller('App\\\\Ecommerce\\\\Controller\\\\CartController::widgetAction', {'ignore_errors': true})) }}
</div>
<a href=\"{{ path('profil') }}\" class=\"btn navIcon\">
<img src=\"{{ asset('themes/frontend/images/profile.svg') }}\" alt=\"Profil\">
</a>
</div>
</div>
<!-- SEARCH -->
<div class=\"searchbar\">
<div style=\"flex: 1;\">
<input id=\"serachbar-input-mobile\" type=\"text\" placeholder=\"Keresés...\"/>
</div>
<div>
<button id=\"navbar-search-button-mobile\" type=\"button\" class=\"btn navIcon\">
<img src=\"{{ asset('/themes/frontend/images/search.svg') }}\" alt=\"Keresés\">
</button>
</div>
</div>
<div class=\"collapse navbar-collapse\" id=\"navMenu\">
<ul class=\"row\" id=\"navMenuList\">
{% set upperRow = pimcore_block('header-upper-row') %}
{% if upperRow and upperRow.getCount() %}
{% for i in upperRow.iterator %}
{% if not pimcore_link('link').isEmpty() %}
<li class=\"nav-item\">
{{ pimcore_link('link', {
'class': 'nav-link'
}) }}
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
<div class=\"row w-100 m-0\" id=\"navLogoList\">
{% set categoryRow = pimcore_block('header-main-category-row') %}
{% if categoryRow and categoryRow.getCount() %}
<div class=\"header-main-category-row\">
{% for i in categoryRow.iterator %}
{% set link = pimcore_link('link') %}
{% set image = pimcore_image('image') %}
{% if image and image.getImage() %}
<div class=\"col-lg-2 col-md-2 col-6 navLogoMainListItem\"
onclick=\"openNavSiteLinks({{ i }},event)\">
<ul class=\"header-main-category-row-item\">
<li class=\"nav-logo-item\">
{{ pimcore_image('image', {
'imgAttributes' : {
\"class\" : \"header-main-category-row-image\"
}
}) }}
</li>
</ul>
</div>
{% endif %}
{# #289 issues
% if not pimcore_link('link').isEmpty() and image and image.getImage() %}
<div class=\"col-lg-2 col-md-2 col-6 navLogoMainListItem\"
onclick=\"openNavSiteLinks({{ i }},event)\">
<ul>
<li class=\"nav-logo-item\">
{{ pimcore_link('link', {
'noText': true,
'textPrefix': image
}) }}
</li>
</ul>
</div>
{% endif %#}
{% endfor %}
</div>
{% endif %}
{% set categoryRow = pimcore_block('header-category-row') %}
{% if categoryRow and categoryRow.getCount() %}
<div class=\"header-category-row displayNone\">
{% for i in categoryRow.iterator %}
{% set link = pimcore_link('link') %}
{% set image = pimcore_image('image') %}
{% if not pimcore_link('link').isEmpty() and image and image.getImage() %}
<div class=\"col-lg-2 col-md-2 col-6 navLogoListItem\">
<ul>
<li class=\"nav-logo-item\">
{{ pimcore_link('link', {
'noText': true,
'textPrefix': image
}) }}
</li>
</ul>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% set categoryRow = pimcore_block('header-category-row2') %}
{% if categoryRow and categoryRow.getCount() %}
<div class=\"header-category-row2 displayNone\">
{% for i in categoryRow.iterator %}
{% set link = pimcore_link('link') %}
{% set image = pimcore_image('image') %}
{% if not pimcore_link('link').isEmpty() and image and image.getImage() %}
<div class=\"col-lg-2 col-md-2 col-6 navLogoListItem\">
<ul>
<li class=\"nav-logo-item\">
{{ pimcore_link('link', {
'noText': true,
'textPrefix': image
}) }}
</li>
</ul>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
<div class=\"col-12 nav-watchlist-wrapper\">
<p class=\"nav-watchlist\" title=\"Az összes óra megtekintése\">
<a href=\"/e-boutique\">Az összes óra megtekintése</a>
</p>
</div>
</div>
<div class=\"row w-100\" id=\"navMenuClose\">
<div class=\"col-12\">
<ul>
<li class=\"nav-item-close\">
<a class=\"nav-link nav-close\" data-toggle=\"collapse\" data-target=\"#navMenu\"
href=\"#\">
Bezárás
</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</header>
{% endif %}", "default/snippet/header.html.twig", "/home/zoltan/public_html/boutique-v2/templates/default/snippet/header.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4, "for" => 19, "set" => 61);
static $filters = array("length" => 67, "escape" => 68, "upper" => 68, "last" => 82);
static $functions = array("pimcore_block" => 19, "pimcore_link" => 21, "pimcore_image" => 29, "pimcore_placeholder" => 61, "path" => 65, "pimcore_url" => 71, "asset" => 109, "render" => 125, "controller" => 125);
try {
$this->sandbox->checkSecurity(
['if', 'for', 'set'],
['length', 'escape', 'upper', 'last'],
['pimcore_block', 'pimcore_link', 'pimcore_image', 'pimcore_placeholder', 'path', 'pimcore_url', 'asset', 'render', 'controller']
);
} 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;
}
}
}