var/cache/dev/twig/d2/d21377e8b9382f64ec01188fcb6bd439.php line 130

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/header.html.twig */
  14. class __TwigTemplate_6582452a193dab9de76e9d45e3f50480 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->parent = false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros = $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header.html.twig"));
  35.         // line 1
  36.         $context["info"] = Pimcore\Model\DataObject::getById(3);
  37.         // line 2
  38.         echo "
  39. <div class=\"container-fluid\">
  40.     <header class=\"header\">
  41.         <div class=\"container-inner\">
  42.             <div class=\"row justify-content-lg-end align-items-center\">
  43.                 <div class=\"col-auto\">
  44.                     <a class=\"logo\" href=\"/\">
  45.                         <img class=\"img-responsive emblem\" src=\"";
  46.         // line 9
  47.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_embleem.png"), "html", null, true);
  48.         echo "\" alt=\"\">
  49.                         <img class=\"img-responsive word d-none d-sm-block\" src=\"";
  50.         // line 10
  51.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_woord.png"), "html", null, true);
  52.         echo "\" alt=\"\">
  53.                     </a>
  54.                 </div>
  55. \t\t\t\t
  56.                 <div class=\"col d-none d-lg-block\">
  57.                     <search
  58.                         products-url=\"";
  59.         // line 16
  60.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category-clean");
  61.         echo "\"
  62.                     ></search>
  63.                 </div>
  64.                 ";
  65.         // line 20
  66.         if ((isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 20, $this->source); })())) {
  67.             // line 21
  68.             echo "                <div class=\"col-auto ms-auto d-none d-lg-block\">
  69.                     <a href=\"tel:";
  70.             // line 22
  71.             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);
  72.             echo "\" class=\"btn-phone\">
  73.                         <div class=\"btn-phone__icon\">
  74.                         </div>
  75.                         <div class=\"btn-phone__text\">
  76.                             <div class=\"number\">";
  77.             // line 27
  78.             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);
  79.             echo "</div>
  80.                             ";
  81.             // line 29
  82.             echo "                        </div>
  83.                     </a>
  84.                 </div>
  85.                 ";
  86.         }
  87.         // line 33
  88.         echo "
  89.                 <div class=\"col-auto d-none d-lg-block\">
  90.                     ";
  91.         // line 35
  92.         $this->loadTemplate("includes/header-account.html.twig", "includes/header.html.twig", 35)->display($context);
  93.         // line 36
  94.         echo "                </div>
  95.                 <div class=\"col-auto ms-auto ms-lg-0\">
  96.                     <cart-overview-button
  97.                         link=\"";
  98.         // line 40
  99.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart-overview");
  100.         echo "\"
  101.                     ></cart-overview-button>
  102.                 </div>
  103.                 <div class=\"col-auto d-lg-none\">
  104.                     <button class=\"btn btn-basket\" id=\"nav-open\" aria-label=\"";
  105.         // line 45
  106.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Menu"), "html", null, true);
  107.         echo "\">
  108.                         <i class=\"icon-menu\"></i>
  109.                     </button>
  110.                 </div>
  111.             </div><!--/ .row -->
  112.         </div><!--/ .container-inner -->
  113.     </header>
  114.     ";
  115.         // line 53
  116.         $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));
  117.         // line 54
  118.         echo "
  119.     <ul class=\"nav nav--top d-none d-lg-flex\">\t
  120.     ";
  121.         // line 56
  122.         $context['_parent'] = $context;
  123.         $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); })()));
  124.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  125.             // line 57
  126.             echo "        <li class=\"nav-item\">
  127.             <a href=\"";
  128.             // line 58
  129.             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);
  130.             echo "\" class=\"nav-link\">
  131.                 ";
  132.             // line 59
  133.             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);
  134.             echo "
  135.             </a>
  136.         </li>
  137.     ";
  138.         }
  139.         $_parent = $context['_parent'];
  140.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  141.         $context = array_intersect_key($context, $_parent) + $_parent;
  142.         // line 63
  143.         echo "        
  144.         ";
  145.         // line 64
  146.         $context["promos_url"] = $this->env->getFunction('pimcore_url')->getCallable()(["promotions" => "true"], "shop-category-clean", true);
  147.         // line 65
  148.         echo "
  149.         <li class=\"nav-item\">
  150.             <a href=\"";
  151.         // line 67
  152.         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);
  153.         echo "\" class=\"nav-link\">";
  154.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html", null, true);
  155.         echo "</a>
  156.         </li>
  157.     </ul>
  158. </div><!--/ container-fluid -->
  159. <div class=\"overlay\">
  160.     <section class=\"overlay__header\">
  161.         <div class=\"container-fluid\">
  162.             <div class=\"container-inner\">
  163.                 <div class=\"row align-items-center\">
  164.                     <div class=\"col-8\">
  165.                         <a class=\"logo\" href=\"/\">
  166.                             <img class=\"img-responsive emblem\" src=\"";
  167.         // line 81
  168.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_embleem.png"), "html", null, true);
  169.         echo "\" alt=\"\">
  170.                             <img class=\"img-responsive word d-none d-sm-block\" src=\"";
  171.         // line 82
  172.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/logo_woord.png"), "html", null, true);
  173.         echo "\" alt=\"\">
  174.                         </a>
  175.                     </div>
  176.                     <div class=\"col-4 text-end\">
  177.                         <button class=\"btn btn-outline-dark nav-close\" id=\"nav-close\" aria-label=\"";
  178.         // line 87
  179.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sluiten"), "html", null, true);
  180.         echo "\">&times;</button>
  181.                     </div>
  182.                 </div><!--/ .row -->
  183.             </div><!--/ .container-inner -->
  184.         </div><!--/ .container-fluid -->
  185.     </section>
  186.     <section class=\"overlay__body\">
  187.         <div class=\"container-fluid\">
  188.             <div class=\"container-inner\">
  189.                 <search
  190.                 products-url=\"";
  191.         // line 98
  192.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category-clean");
  193.         echo "\"
  194.             ></search>
  195.                 <div class=\"row justify-content-between my-4\">
  196.                     <div class=\"col-auto\">
  197.                     ";
  198.         // line 103
  199.         if ((isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 103, $this->source); })())) {
  200.             // line 104
  201.             echo "                        <a href=\"tel:";
  202.             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);
  203.             echo "\" class=\"phone-link\">
  204.                             <i class=\"icon-phone\"></i>";
  205.             // line 105
  206.             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);
  207.             echo "
  208.                         </a>
  209.                     ";
  210.         }
  211.         // line 108
  212.         echo "                    </div>
  213.                     <div class=\"col-auto\">
  214.                         ";
  215.         // line 111
  216.         $this->loadTemplate("includes/header-account.html.twig", "includes/header.html.twig", 111)->display($context);
  217.         // line 112
  218.         echo "                    </div>
  219.                 </div><!--/ .row -->
  220.             </div><!--/ .container-inner -->
  221.         </div><!--/ .container-fluid -->
  222.         <ul class=\"nav nav--overlay\">
  223.              ";
  224.         // line 119
  225.         $context['_parent'] = $context;
  226.         $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); })()));
  227.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  228.             // line 120
  229.             echo "                <li class=\"nav-item\">
  230.                     <a href=\"";
  231.             // line 121
  232.             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);
  233.             echo "\" class=\"nav-link\">
  234.                         ";
  235.             // line 122
  236.             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);
  237.             echo "
  238.                     </a>
  239.                 </li>
  240.             ";
  241.         }
  242.         $_parent = $context['_parent'];
  243.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  244.         $context = array_intersect_key($context, $_parent) + $_parent;
  245.         // line 126
  246.         echo "
  247.             <li class=\"nav-item\">
  248.                 <a href=\"";
  249.         // line 128
  250.         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);
  251.         echo "\" class=\"nav-link\">";
  252.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html", null, true);
  253.         echo "</a>
  254.             </li>
  255.         </ul>
  256.     </section>
  257. </div>";
  258.         
  259.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  260.         
  261.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  262.     }
  263.     public function getTemplateName()
  264.     {
  265.         return "includes/header.html.twig";
  266.     }
  267.     public function isTraitable()
  268.     {
  269.         return false;
  270.     }
  271.     public function getDebugInfo()
  272.     {
  273.         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,);
  274.     }
  275.     public function getSourceContext()
  276.     {
  277.         return new Source("{% set info = pimcore_object(3) %}
  278. <div class=\"container-fluid\">
  279.     <header class=\"header\">
  280.         <div class=\"container-inner\">
  281.             <div class=\"row justify-content-lg-end align-items-center\">
  282.                 <div class=\"col-auto\">
  283.                     <a class=\"logo\" href=\"/\">
  284.                         <img class=\"img-responsive emblem\" src=\"{{ asset('/img/logo_embleem.png') }}\" alt=\"\">
  285.                         <img class=\"img-responsive word d-none d-sm-block\" src=\"{{ asset('/img/logo_woord.png') }}\" alt=\"\">
  286.                     </a>
  287.                 </div>
  288. \t\t\t\t
  289.                 <div class=\"col d-none d-lg-block\">
  290.                     <search
  291.                         products-url=\"{{ path('shop-category-clean') }}\"
  292.                     ></search>
  293.                 </div>
  294.                 {% if info %}
  295.                 <div class=\"col-auto ms-auto d-none d-lg-block\">
  296.                     <a href=\"tel:{{ info.phone }}\" class=\"btn-phone\">
  297.                         <div class=\"btn-phone__icon\">
  298.                         </div>
  299.                         <div class=\"btn-phone__text\">
  300.                             <div class=\"number\">{{ info.phone }}</div>
  301.                             {#{ '8u - 16u en dit 7/7'|trans }#}
  302.                         </div>
  303.                     </a>
  304.                 </div>
  305.                 {% endif %}
  306.                 <div class=\"col-auto d-none d-lg-block\">
  307.                     {% include 'includes/header-account.html.twig' %}
  308.                 </div>
  309.                 <div class=\"col-auto ms-auto ms-lg-0\">
  310.                     <cart-overview-button
  311.                         link=\"{{ path('cart-overview') }}\"
  312.                     ></cart-overview-button>
  313.                 </div>
  314.                 <div class=\"col-auto d-lg-none\">
  315.                     <button class=\"btn btn-basket\" id=\"nav-open\" aria-label=\"{{ 'Menu'|trans }}\">
  316.                         <i class=\"icon-menu\"></i>
  317.                     </button>
  318.                 </div>
  319.             </div><!--/ .row -->
  320.         </div><!--/ .container-inner -->
  321.     </header>
  322.     {% set main_categories = app_get_main_categories(document) %}
  323.     <ul class=\"nav nav--top d-none d-lg-flex\">\t
  324.     {% for category in main_categories %}
  325.         <li class=\"nav-item\">
  326.             <a href=\"{{ app_category_filter_generate_link(category, null, true) }}\" class=\"nav-link\">
  327.                 {{ category.name }}
  328.             </a>
  329.         </li>
  330.     {% endfor %}
  331.         
  332.         {% set promos_url = pimcore_url({'promotions': 'true'}, 'shop-category-clean', true) %}
  333.         <li class=\"nav-item\">
  334.             <a href=\"{{ promos_url }}\" class=\"nav-link\">{{ 'Promoties'|trans }}</a>
  335.         </li>
  336.     </ul>
  337. </div><!--/ container-fluid -->
  338. <div class=\"overlay\">
  339.     <section class=\"overlay__header\">
  340.         <div class=\"container-fluid\">
  341.             <div class=\"container-inner\">
  342.                 <div class=\"row align-items-center\">
  343.                     <div class=\"col-8\">
  344.                         <a class=\"logo\" href=\"/\">
  345.                             <img class=\"img-responsive emblem\" src=\"{{ asset('/img/logo_embleem.png') }}\" alt=\"\">
  346.                             <img class=\"img-responsive word d-none d-sm-block\" src=\"{{ asset('/img/logo_woord.png') }}\" alt=\"\">
  347.                         </a>
  348.                     </div>
  349.                     <div class=\"col-4 text-end\">
  350.                         <button class=\"btn btn-outline-dark nav-close\" id=\"nav-close\" aria-label=\"{{ 'Sluiten'|trans }}\">&times;</button>
  351.                     </div>
  352.                 </div><!--/ .row -->
  353.             </div><!--/ .container-inner -->
  354.         </div><!--/ .container-fluid -->
  355.     </section>
  356.     <section class=\"overlay__body\">
  357.         <div class=\"container-fluid\">
  358.             <div class=\"container-inner\">
  359.                 <search
  360.                 products-url=\"{{ path('shop-category-clean') }}\"
  361.             ></search>
  362.                 <div class=\"row justify-content-between my-4\">
  363.                     <div class=\"col-auto\">
  364.                     {% if info %}
  365.                         <a href=\"tel:{{ info.phone }}\" class=\"phone-link\">
  366.                             <i class=\"icon-phone\"></i>{{ info.phone }}
  367.                         </a>
  368.                     {% endif %}
  369.                     </div>
  370.                     <div class=\"col-auto\">
  371.                         {% include 'includes/header-account.html.twig' %}
  372.                     </div>
  373.                 </div><!--/ .row -->
  374.             </div><!--/ .container-inner -->
  375.         </div><!--/ .container-fluid -->
  376.         <ul class=\"nav nav--overlay\">
  377.              {% for category in main_categories %}
  378.                 <li class=\"nav-item\">
  379.                     <a href=\"{{ app_category_filter_generate_link(category, null, true) }}\" class=\"nav-link\">
  380.                         {{ category.name }}
  381.                     </a>
  382.                 </li>
  383.             {% endfor %}
  384.             <li class=\"nav-item\">
  385.                 <a href=\"{{ promos_url }}\" class=\"nav-link\">{{ 'Promoties'|trans }}</a>
  386.             </li>
  387.         </ul>
  388.     </section>
  389. </div>", "includes/header.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/includes/header.html.twig");
  390.     }
  391.     
  392.     public function checkSecurity()
  393.     {
  394.         static $tags = array("set" => 1, "if" => 20, "include" => 35, "for" => 56);
  395.         static $filters = array("escape" => 9, "trans" => 45);
  396.         static $functions = array("pimcore_object" => 1, "asset" => 9, "path" => 16, "app_get_main_categories" => 53, "app_category_filter_generate_link" => 58, "pimcore_url" => 64);
  397.         try {
  398.             $this->sandbox->checkSecurity(
  399.                 ['set', 'if', 'include', 'for'],
  400.                 ['escape', 'trans'],
  401.                 ['pimcore_object', 'asset', 'path', 'app_get_main_categories', 'app_category_filter_generate_link', 'pimcore_url']
  402.             );
  403.         } catch (SecurityError $e) {
  404.             $e->setSourceContext($this->source);
  405.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  406.                 $e->setTemplateLine($tags[$e->getTagName()]);
  407.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  408.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  409.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  410.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  411.             }
  412.             throw $e;
  413.         }
  414.     }
  415. }