<?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;
/* products-list.html.twig */
class __TwigTemplate_0a2d1279af4311f77f0d7ea692c8aa31 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
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", "products-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "products-list.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "products-list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
";
// line 5
$this->loadTemplate("includes/breadcrumb.html.twig", "products-list.html.twig", 5)->display($context);
// line 6
echo "
<section class=\"section-filter\">
<div class=\"container-fluid\">
<div class=\"row justify-content-sm-end align-items-center\">
<div class=\"col-12 col-lg-auto me-lg-auto\">
";
// line 11
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))) {
// line 12
echo " <p class=\"h1\">Zoeken: \"";
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);
echo "\"<p>
";
} else {
// line 14
echo " <p class=\"h1\">";
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);
echo "</p>
";
}
// line 16
echo " </div>
";
// line 18
$this->loadTemplate("includes/product-sorting.html.twig", "products-list.html.twig", 18)->display($context);
// line 19
echo " </div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-products\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-4 col-xl-3 mb-4 mb-lg-0\">
<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\">
";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters weergeven"), "html", null, true);
echo "
</button>
<div id=\"collapse-filters\" class=\"collapse d-lg-block\">
";
// line 32
$this->loadTemplate("includes/product-filters.html.twig", "products-list.html.twig", 32)->display($context);
// line 33
echo " ";
$this->loadTemplate("includes/product-categories.html.twig", "products-list.html.twig", 33)->display($context);
// line 34
echo " </div>
</div>
<div class=\"col-lg-8 col-xl-9\">
<div class=\"row\">
";
// line 39
$context['_parent'] = $context;
$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));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 40
echo " <div class=\"col-12 mb-4\">
";
// line 41
$this->loadTemplate("includes/product-list-item.html.twig", "products-list.html.twig", 41)->display($context);
// line 42
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " </div><!--/ .row -->
";
// line 46
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)) {
// line 47
echo " <div class=\"alert alert-info\">
<p>";
// line 48
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);
echo "</p>
</div>
";
}
// line 51
echo "
";
// line 52
$this->loadTemplate("includes/pagination.html.twig", "products-list.html.twig", 52)->display($context);
// line 53
echo " </div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
<favorite-modal></favorite-modal>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "products-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
{% include 'includes/breadcrumb.html.twig' %}
<section class=\"section-filter\">
<div class=\"container-fluid\">
<div class=\"row justify-content-sm-end align-items-center\">
<div class=\"col-12 col-lg-auto me-lg-auto\">
{% if app.request.get(\"search\") is not empty %}
<p class=\"h1\">Zoeken: \"{{ app.request.get(\"search\") }}\"<p>
{% else %}
<p class=\"h1\">{{ category is defined ? category.name : 'Producten'|trans }}</p>
{% endif %}
</div>
{% include 'includes/product-sorting.html.twig' %}
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-products\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-4 col-xl-3 mb-4 mb-lg-0\">
<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\">
{{ 'Filters weergeven'|trans }}
</button>
<div id=\"collapse-filters\" class=\"collapse d-lg-block\">
{% include 'includes/product-filters.html.twig' %}
{% include 'includes/product-categories.html.twig' %}
</div>
</div>
<div class=\"col-lg-8 col-xl-9\">
<div class=\"row\">
{% for item in results.items %}
<div class=\"col-12 mb-4\">
{% include 'includes/product-list-item.html.twig' %}
</div>
{% endfor %}
</div><!--/ .row -->
{% if results.count == 0 %}
<div class=\"alert alert-info\">
<p>{{ 'Geen resultaten gevonden voor uw zoekopdracht of filter'|trans }}</p>
</div>
{% endif %}
{% include 'includes/pagination.html.twig' %}
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
<favorite-modal></favorite-modal>
{% endblock %}", "products-list.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/products-list.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 5, "if" => 11, "for" => 39);
static $filters = array("escape" => 12, "trans" => 14);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['include', 'if', 'for'],
['escape', 'trans'],
[]
);
} 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;
}
}
}