<?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-cat.html.twig */
class __TwigTemplate_62e70a03969b0ae058b4dd628ea41094 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-cat.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-cat.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "products-cat.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-cat.html.twig", 5)->display($context);
// line 6
echo "
<section class=\"section-filter\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">";
// line 11
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.', 11, $this->source); })()), "name", [], "any", false, false, true, 11)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Producten"))), "html", null, true);
echo "</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-products\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"row\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["category"], "getChildren", [], "any", false, false, true, 22));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 23
echo " <div class=\"col-sm-6 col-lg-4 d-flex flex-column\">
";
// line 37
echo "
<a href=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CategoryFilterExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["category"], 38, $this->source)), "html", null, true);
echo "\" class=\"btn btn-icon h-100\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 38), 38, $this->source), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div><!--/ .row -->
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "products-cat.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 117 => 41, 106 => 38, 103 => 37, 100 => 23, 96 => 22, 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 align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">{{ category is defined ? category.name : 'Producten'|trans }}</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-products\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"row\">
{% for category in category.getChildren %}
<div class=\"col-sm-6 col-lg-4 d-flex flex-column\">
{#
<a href=\"{{ app_category_filter_generate_link(category) }}\" class=\"category\">
<div class=\"category__title\"><div class=\"text\">{{ category.name }}</div></div>
<div class=\"category__img\">
{% if category.photo %}
{{ category.photo.thumbnail('CategoryThumbnail').html|raw }}
{% else %}
<img class=\"img-fluid\" src=\"/img/placeholder-category.png\">
{% endif %}
</div>
</a>
#}
<a href=\"{{ app_category_filter_generate_link(category) }}\" class=\"btn btn-icon h-100\">{{ category.name }}</a>
</div>
{% endfor %}
</div><!--/ .row -->
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
{% endblock %}
", "products-cat.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/products-cat.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 5, "for" => 22);
static $filters = array("escape" => 11, "trans" => 11);
static $functions = array("app_category_filter_generate_link" => 38);
try {
$this->sandbox->checkSecurity(
['include', 'for'],
['escape', 'trans'],
['app_category_filter_generate_link']
);
} 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;
}
}
}