var/cache/dev/twig/55/55ee37ccc57f94df529358320ed457e4.php line 40

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. /* products-list.html.twig */
  14. class __TwigTemplate_0a2d1279af4311f77f0d7ea692c8aa31 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->blocks = [
  23.             'content' => [$this, 'block_content'],
  24.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros = $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "products-list.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "products-list.html.twig"));
  40.         $this->parent = $this->loadTemplate("layout.html.twig", "products-list.html.twig", 1);
  41.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros = $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  55.         // line 4
  56.         echo "
  57. ";
  58.         // line 5
  59.         $this->loadTemplate("includes/breadcrumb.html.twig", "products-list.html.twig", 5)->display($context);
  60.         // line 6
  61.         echo "
  62. <section class=\"section-filter\">
  63.     <div class=\"container-fluid\">
  64.         <div class=\"row justify-content-sm-end align-items-center\">
  65.             <div class=\"col-12 col-lg-auto me-lg-auto\">
  66.             ";
  67.         // line 11
  68.         if ( !twig_test_empty(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.', 11, $this->source); })()), "request", [], "any", false, false, true, 11), "get", ["search"], "method", false, false, true, 11))) {
  69.             // line 12
  70.             echo "                <p class=\"h1\">Zoeken: \"";
  71.             echo twig_escape_filter($this->env, $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.', 12, $this->source); })()), "request", [], "any", false, false, true, 12), "get", ["search"], "method", false, false, true, 12), 12, $this->source), "html", null, true);
  72.             echo "\"<p>
  73.             ";
  74.         } else {
  75.             // line 14
  76.             echo "                <p class=\"h1\">";
  77.             echo twig_escape_filter($this->env, ((array_key_exists("category", $context)) ? (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 14, $this->source); })()), "name", [], "any", false, false, true, 14)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Producten"))), "html", null, true);
  78.             echo "</p>
  79.             ";
  80.         }
  81.         // line 16
  82.         echo "            </div>
  83.             ";
  84.         // line 18
  85.         $this->loadTemplate("includes/product-sorting.html.twig", "products-list.html.twig", 18)->display($context);
  86.         // line 19
  87.         echo "        </div><!--/ .row -->
  88.     </div><!--/ .container -->
  89. </section>
  90. <section class=\"section-products\">
  91.     <div class=\"container-fluid\">
  92.         <div class=\"row\">
  93.             <div class=\"col-lg-4 col-xl-3 mb-4 mb-lg-0\">
  94.                 <button class=\"btn btn-outline-secondary w-md-auto mb-4 d-lg-none\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-filters\" aria-expanded=\"false\" aria-controls=\"collapse-filters\">
  95.                     ";
  96.         // line 28
  97.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters weergeven"), "html", null, true);
  98.         echo "
  99.                 </button>
  100.                 <div id=\"collapse-filters\" class=\"collapse d-lg-block\">
  101.                     ";
  102.         // line 32
  103.         $this->loadTemplate("includes/product-filters.html.twig", "products-list.html.twig", 32)->display($context);
  104.         // line 33
  105.         echo "                    ";
  106.         $this->loadTemplate("includes/product-categories.html.twig", "products-list.html.twig", 33)->display($context);
  107.         // line 34
  108.         echo "                </div>
  109.             </div>
  110.             <div class=\"col-lg-8 col-xl-9\">
  111.                 <div class=\"row\">
  112.                     ";
  113.         // line 39
  114.         $context['_parent'] = $context;
  115.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 39, $this->source); })()), "items", [], "any", false, false, true, 39));
  116.         $context['loop'] = [
  117.           'parent' => $context['_parent'],
  118.           'index0' => 0,
  119.           'index'  => 1,
  120.           'first'  => true,
  121.         ];
  122.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  123.             $length = count($context['_seq']);
  124.             $context['loop']['revindex0'] = $length - 1;
  125.             $context['loop']['revindex'] = $length;
  126.             $context['loop']['length'] = $length;
  127.             $context['loop']['last'] = 1 === $length;
  128.         }
  129.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  130.             // line 40
  131.             echo "                        <div class=\"col-12 mb-4\">
  132.                             ";
  133.             // line 41
  134.             $this->loadTemplate("includes/product-list-item.html.twig", "products-list.html.twig", 41)->display($context);
  135.             // line 42
  136.             echo "                        </div>
  137.                     ";
  138.             ++$context['loop']['index0'];
  139.             ++$context['loop']['index'];
  140.             $context['loop']['first'] = false;
  141.             if (isset($context['loop']['length'])) {
  142.                 --$context['loop']['revindex0'];
  143.                 --$context['loop']['revindex'];
  144.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  145.             }
  146.         }
  147.         $_parent = $context['_parent'];
  148.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  149.         $context = array_intersect_key($context, $_parent) + $_parent;
  150.         // line 44
  151.         echo "                </div><!--/ .row -->
  152.                 ";
  153.         // line 46
  154.         if ((twig_get_attribute($this->env, $this->source, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 46, $this->source); })()), "count", [], "any", false, false, true, 46) == 0)) {
  155.             // line 47
  156.             echo "                <div class=\"alert alert-info\">
  157.                     <p>";
  158.             // line 48
  159.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geen resultaten gevonden voor uw zoekopdracht of filter"), "html", null, true);
  160.             echo "</p>
  161.                 </div>
  162.                 ";
  163.         }
  164.         // line 51
  165.         echo "
  166.                 ";
  167.         // line 52
  168.         $this->loadTemplate("includes/pagination.html.twig", "products-list.html.twig", 52)->display($context);
  169.         // line 53
  170.         echo "            </div>
  171.         </div><!--/ .row -->
  172.     </div><!--/ .container-fluid -->
  173. </section>
  174. <favorite-modal></favorite-modal>
  175. ";
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "products-list.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         return array (  189 => 53,  187 => 52,  184 => 51,  178 => 48,  175 => 47,  173 => 46,  169 => 44,  154 => 42,  152 => 41,  149 => 40,  132 => 39,  125 => 34,  122 => 33,  120 => 32,  113 => 28,  102 => 19,  100 => 18,  96 => 16,  90 => 14,  84 => 12,  82 => 11,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% extends 'layout.html.twig' %}
  196. {% block content %}
  197. {% include 'includes/breadcrumb.html.twig' %}
  198. <section class=\"section-filter\">
  199.     <div class=\"container-fluid\">
  200.         <div class=\"row justify-content-sm-end align-items-center\">
  201.             <div class=\"col-12 col-lg-auto me-lg-auto\">
  202.             {% if app.request.get(\"search\") is not empty %}
  203.                 <p class=\"h1\">Zoeken: \"{{ app.request.get(\"search\") }}\"<p>
  204.             {% else %}
  205.                 <p class=\"h1\">{{ category is defined ? category.name : 'Producten'|trans }}</p>
  206.             {% endif %}
  207.             </div>
  208.             {% include 'includes/product-sorting.html.twig' %}
  209.         </div><!--/ .row -->
  210.     </div><!--/ .container -->
  211. </section>
  212. <section class=\"section-products\">
  213.     <div class=\"container-fluid\">
  214.         <div class=\"row\">
  215.             <div class=\"col-lg-4 col-xl-3 mb-4 mb-lg-0\">
  216.                 <button class=\"btn btn-outline-secondary w-md-auto mb-4 d-lg-none\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-filters\" aria-expanded=\"false\" aria-controls=\"collapse-filters\">
  217.                     {{ 'Filters weergeven'|trans }}
  218.                 </button>
  219.                 <div id=\"collapse-filters\" class=\"collapse d-lg-block\">
  220.                     {% include 'includes/product-filters.html.twig' %}
  221.                     {% include 'includes/product-categories.html.twig' %}
  222.                 </div>
  223.             </div>
  224.             <div class=\"col-lg-8 col-xl-9\">
  225.                 <div class=\"row\">
  226.                     {% for item in results.items %}
  227.                         <div class=\"col-12 mb-4\">
  228.                             {% include 'includes/product-list-item.html.twig' %}
  229.                         </div>
  230.                     {% endfor %}
  231.                 </div><!--/ .row -->
  232.                 {% if results.count == 0 %}
  233.                 <div class=\"alert alert-info\">
  234.                     <p>{{ 'Geen resultaten gevonden voor uw zoekopdracht of filter'|trans }}</p>
  235.                 </div>
  236.                 {% endif %}
  237.                 {% include 'includes/pagination.html.twig' %}
  238.             </div>
  239.         </div><!--/ .row -->
  240.     </div><!--/ .container-fluid -->
  241. </section>
  242. <favorite-modal></favorite-modal>
  243. {% endblock %}", "products-list.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/products-list.html.twig");
  244.     }
  245.     
  246.     public function checkSecurity()
  247.     {
  248.         static $tags = array("include" => 5, "if" => 11, "for" => 39);
  249.         static $filters = array("escape" => 12, "trans" => 14);
  250.         static $functions = array();
  251.         try {
  252.             $this->sandbox->checkSecurity(
  253.                 ['include', 'if', 'for'],
  254.                 ['escape', 'trans'],
  255.                 []
  256.             );
  257.         } catch (SecurityError $e) {
  258.             $e->setSourceContext($this->source);
  259.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  260.                 $e->setTemplateLine($tags[$e->getTagName()]);
  261.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  262.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  263.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  264.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  265.             }
  266.             throw $e;
  267.         }
  268.     }
  269. }