<?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;
/* includes/header.html.twig */
class __TwigTemplate_6582452a193dab9de76e9d45e3f50480 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", "includes/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", "includes/header.html.twig"));
// line 1
$context["info"] = Pimcore\Model\DataObject::getById(3);
// line 2
echo "
<div class=\"container-fluid\">
<header class=\"header\">
<div class=\"container-inner\">
<div class=\"row justify-content-lg-end align-items-center\">
<div class=\"col-auto\">
<a class=\"logo\" href=\"/\">
<img class=\"img-responsive emblem\" src=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_embleem.png"), "html", null, true);
echo "\" alt=\"\">
<img class=\"img-responsive word d-none d-sm-block\" src=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_woord.png"), "html", null, true);
echo "\" alt=\"\">
</a>
</div>
\t\t\t\t
<div class=\"col d-none d-lg-block\">
<search
products-url=\"";
// line 16
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category-clean");
echo "\"
></search>
</div>
";
// line 20
if ((isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 20, $this->source); })())) {
// line 21
echo " <div class=\"col-auto ms-auto d-none d-lg-block\">
<a href=\"tel:";
// line 22
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 22, $this->source); })()), "phone", [], "any", false, false, true, 22), 22, $this->source), "html", null, true);
echo "\" class=\"btn-phone\">
<div class=\"btn-phone__icon\">
</div>
<div class=\"btn-phone__text\">
<div class=\"number\">";
// line 27
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 27, $this->source); })()), "phone", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "</div>
";
// line 29
echo " </div>
</a>
</div>
";
}
// line 33
echo "
<div class=\"col-auto d-none d-lg-block\">
";
// line 35
$this->loadTemplate("includes/header-account.html.twig", "includes/header.html.twig", 35)->display($context);
// line 36
echo " </div>
<div class=\"col-auto ms-auto ms-lg-0\">
<cart-overview-button
link=\"";
// line 40
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart-overview");
echo "\"
></cart-overview-button>
</div>
<div class=\"col-auto d-lg-none\">
<button class=\"btn btn-basket\" id=\"nav-open\" aria-label=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Menu"), "html", null, true);
echo "\">
<i class=\"icon-menu\"></i>
</button>
</div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</header>
";
// line 53
$context["main_categories"] = $this->extensions['App\Twig\Extension\CategoryExtension']->prepareData($this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), 53, $this->source));
// line 54
echo "
<ul class=\"nav nav--top d-none d-lg-flex\">\t
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["main_categories"]) || array_key_exists("main_categories", $context) ? $context["main_categories"] : (function () { throw new RuntimeError('Variable "main_categories" does not exist.', 56, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 57
echo " <li class=\"nav-item\">
<a href=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CategoryFilterExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["category"], 58, $this->source), null, true), "html", null, true);
echo "\" class=\"nav-link\">
";
// line 59
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 59), 59, $this->source), "html", null, true);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo "
";
// line 64
$context["promos_url"] = $this->env->getFunction('pimcore_url')->getCallable()(["promotions" => "true"], "shop-category-clean", true);
// line 65
echo "
<li class=\"nav-item\">
<a href=\"";
// line 67
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["promos_url"]) || array_key_exists("promos_url", $context) ? $context["promos_url"] : (function () { throw new RuntimeError('Variable "promos_url" does not exist.', 67, $this->source); })()), 67, $this->source), "html", null, true);
echo "\" class=\"nav-link\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html", null, true);
echo "</a>
</li>
</ul>
</div><!--/ container-fluid -->
<div class=\"overlay\">
<section class=\"overlay__header\">
<div class=\"container-fluid\">
<div class=\"container-inner\">
<div class=\"row align-items-center\">
<div class=\"col-8\">
<a class=\"logo\" href=\"/\">
<img class=\"img-responsive emblem\" src=\"";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_embleem.png"), "html", null, true);
echo "\" alt=\"\">
<img class=\"img-responsive word d-none d-sm-block\" src=\"";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_woord.png"), "html", null, true);
echo "\" alt=\"\">
</a>
</div>
<div class=\"col-4 text-end\">
<button class=\"btn btn-outline-dark nav-close\" id=\"nav-close\" aria-label=\"";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sluiten"), "html", null, true);
echo "\">×</button>
</div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</div><!--/ .container-fluid -->
</section>
<section class=\"overlay__body\">
<div class=\"container-fluid\">
<div class=\"container-inner\">
<search
products-url=\"";
// line 98
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category-clean");
echo "\"
></search>
<div class=\"row justify-content-between my-4\">
<div class=\"col-auto\">
";
// line 103
if ((isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 103, $this->source); })())) {
// line 104
echo " <a href=\"tel:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 104, $this->source); })()), "phone", [], "any", false, false, true, 104), 104, $this->source), "html", null, true);
echo "\" class=\"phone-link\">
<i class=\"icon-phone\"></i>";
// line 105
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 105, $this->source); })()), "phone", [], "any", false, false, true, 105), 105, $this->source), "html", null, true);
echo "
</a>
";
}
// line 108
echo " </div>
<div class=\"col-auto\">
";
// line 111
$this->loadTemplate("includes/header-account.html.twig", "includes/header.html.twig", 111)->display($context);
// line 112
echo " </div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</div><!--/ .container-fluid -->
<ul class=\"nav nav--overlay\">
";
// line 119
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["main_categories"]) || array_key_exists("main_categories", $context) ? $context["main_categories"] : (function () { throw new RuntimeError('Variable "main_categories" does not exist.', 119, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 120
echo " <li class=\"nav-item\">
<a href=\"";
// line 121
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CategoryFilterExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["category"], 121, $this->source), null, true), "html", null, true);
echo "\" class=\"nav-link\">
";
// line 122
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 122), 122, $this->source), "html", null, true);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo "
<li class=\"nav-item\">
<a href=\"";
// line 128
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["promos_url"]) || array_key_exists("promos_url", $context) ? $context["promos_url"] : (function () { throw new RuntimeError('Variable "promos_url" does not exist.', 128, $this->source); })()), 128, $this->source), "html", null, true);
echo "\" class=\"nav-link\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html", null, true);
echo "</a>
</li>
</ul>
</section>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 273 => 128, 269 => 126, 259 => 122, 255 => 121, 252 => 120, 248 => 119, 239 => 112, 237 => 111, 232 => 108, 226 => 105, 221 => 104, 219 => 103, 211 => 98, 197 => 87, 189 => 82, 185 => 81, 166 => 67, 162 => 65, 160 => 64, 157 => 63, 147 => 59, 143 => 58, 140 => 57, 136 => 56, 132 => 54, 130 => 53, 119 => 45, 111 => 40, 105 => 36, 103 => 35, 99 => 33, 93 => 29, 89 => 27, 81 => 22, 78 => 21, 76 => 20, 69 => 16, 60 => 10, 56 => 9, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set info = pimcore_object(3) %}
<div class=\"container-fluid\">
<header class=\"header\">
<div class=\"container-inner\">
<div class=\"row justify-content-lg-end align-items-center\">
<div class=\"col-auto\">
<a class=\"logo\" href=\"/\">
<img class=\"img-responsive emblem\" src=\"{{ asset('/img/logo_embleem.png') }}\" alt=\"\">
<img class=\"img-responsive word d-none d-sm-block\" src=\"{{ asset('/img/logo_woord.png') }}\" alt=\"\">
</a>
</div>
\t\t\t\t
<div class=\"col d-none d-lg-block\">
<search
products-url=\"{{ path('shop-category-clean') }}\"
></search>
</div>
{% if info %}
<div class=\"col-auto ms-auto d-none d-lg-block\">
<a href=\"tel:{{ info.phone }}\" class=\"btn-phone\">
<div class=\"btn-phone__icon\">
</div>
<div class=\"btn-phone__text\">
<div class=\"number\">{{ info.phone }}</div>
{#{ '8u - 16u en dit 7/7'|trans }#}
</div>
</a>
</div>
{% endif %}
<div class=\"col-auto d-none d-lg-block\">
{% include 'includes/header-account.html.twig' %}
</div>
<div class=\"col-auto ms-auto ms-lg-0\">
<cart-overview-button
link=\"{{ path('cart-overview') }}\"
></cart-overview-button>
</div>
<div class=\"col-auto d-lg-none\">
<button class=\"btn btn-basket\" id=\"nav-open\" aria-label=\"{{ 'Menu'|trans }}\">
<i class=\"icon-menu\"></i>
</button>
</div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</header>
{% set main_categories = app_get_main_categories(document) %}
<ul class=\"nav nav--top d-none d-lg-flex\">\t
{% for category in main_categories %}
<li class=\"nav-item\">
<a href=\"{{ app_category_filter_generate_link(category, null, true) }}\" class=\"nav-link\">
{{ category.name }}
</a>
</li>
{% endfor %}
{% set promos_url = pimcore_url({'promotions': 'true'}, 'shop-category-clean', true) %}
<li class=\"nav-item\">
<a href=\"{{ promos_url }}\" class=\"nav-link\">{{ 'Promoties'|trans }}</a>
</li>
</ul>
</div><!--/ container-fluid -->
<div class=\"overlay\">
<section class=\"overlay__header\">
<div class=\"container-fluid\">
<div class=\"container-inner\">
<div class=\"row align-items-center\">
<div class=\"col-8\">
<a class=\"logo\" href=\"/\">
<img class=\"img-responsive emblem\" src=\"{{ asset('/img/logo_embleem.png') }}\" alt=\"\">
<img class=\"img-responsive word d-none d-sm-block\" src=\"{{ asset('/img/logo_woord.png') }}\" alt=\"\">
</a>
</div>
<div class=\"col-4 text-end\">
<button class=\"btn btn-outline-dark nav-close\" id=\"nav-close\" aria-label=\"{{ 'Sluiten'|trans }}\">×</button>
</div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</div><!--/ .container-fluid -->
</section>
<section class=\"overlay__body\">
<div class=\"container-fluid\">
<div class=\"container-inner\">
<search
products-url=\"{{ path('shop-category-clean') }}\"
></search>
<div class=\"row justify-content-between my-4\">
<div class=\"col-auto\">
{% if info %}
<a href=\"tel:{{ info.phone }}\" class=\"phone-link\">
<i class=\"icon-phone\"></i>{{ info.phone }}
</a>
{% endif %}
</div>
<div class=\"col-auto\">
{% include 'includes/header-account.html.twig' %}
</div>
</div><!--/ .row -->
</div><!--/ .container-inner -->
</div><!--/ .container-fluid -->
<ul class=\"nav nav--overlay\">
{% for category in main_categories %}
<li class=\"nav-item\">
<a href=\"{{ app_category_filter_generate_link(category, null, true) }}\" class=\"nav-link\">
{{ category.name }}
</a>
</li>
{% endfor %}
<li class=\"nav-item\">
<a href=\"{{ promos_url }}\" class=\"nav-link\">{{ 'Promoties'|trans }}</a>
</li>
</ul>
</section>
</div>", "includes/header.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/includes/header.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 20, "include" => 35, "for" => 56);
static $filters = array("escape" => 9, "trans" => 45);
static $functions = array("pimcore_object" => 1, "asset" => 9, "path" => 16, "app_get_main_categories" => 53, "app_category_filter_generate_link" => 58, "pimcore_url" => 64);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include', 'for'],
['escape', 'trans'],
['pimcore_object', 'asset', 'path', 'app_get_main_categories', 'app_category_filter_generate_link', 'pimcore_url']
);
} 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;
}
}
}