<?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;
/* product/overview.html.twig */
class __TwigTemplate_805d4a9a3acf2c984b39625d0a96b9ca 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 $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "product/overview.html.twig", 1);
}
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", "product/overview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/overview.html.twig"));
$this->getParent($context)->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 " <section class=\"mb-5 pb-5\">
<div class=\"container\">
";
// line 7
echo twig_include($this->env, $context, "includes/title.html.twig");
echo "
";
// line 9
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-1");
echo "
<div class=\"row\">
<div class=\"col-12\">
";
// line 12
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 12, $this->source); })())) {
// line 13
echo " ";
$context["message"] = "Om een ProductCategory toe te voegen: wendt u zich naar \"Objects\"";
// line 14
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "product/overview.html.twig", 14)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 14, $this->source); })()), "type" => "alert"]));
// line 15
echo " ";
}
// line 16
echo " </div>
</div>
<div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
";
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["productcategories"]) || array_key_exists("productcategories", $context) ? $context["productcategories"] : (function () { throw new RuntimeError('Variable "productcategories" does not exist.', 20, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["categorie"]) {
// line 21
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["categorie"], 21, $this->source));
// line 22
echo "
<div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"";
// line 25
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink", $context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.', 25, $this->source); })()), 25, $this->source), "html", null, true);
echo "\" class=\"fs-5\"
onMouseOver=\"this.style.color='";
// line 26
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["categorie"], "bgcolor", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
echo "'\"
onMouseOut=\"this.style.color='#595959'\" data-toggle=\"tooltip\" data-html=\"true\" title=\"";
// line 27
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["categorie"], "infoProductGroup", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\" style=\"cursor: pointer;\">
<div class=\"p-3 position-relative h-100 d-block\">
";
// line 29
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["categorie"], "getImage", [], "method", false, false, true, 29))) {
// line 30
echo "
<img src=\"";
// line 31
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categorie"], "getImage", [], "method", false, false, true, 31), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 31), 31, $this->source), "html", null, true);
echo "\"
class=\"img-fluid d-block\" style=\"z-index: 1\">
";
}
// line 35
echo "
";
// line 36
$context["productimagebg"] = twig_get_attribute($this->env, $this->source, $context["categorie"], "imagebg", [], "any", false, false, true, 36);
// line 37
echo " ";
if ((isset($context["productimagebg"]) || array_key_exists("productimagebg", $context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.', 37, $this->source); })())) {
// line 38
echo "
<img
src=\"";
// line 40
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["productimagebg"]) || array_key_exists("productimagebg", $context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.', 40, $this->source); })()), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 40), 40, $this->source), "html", null, true);
echo "\"
class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"
style=\"z-index: -1\">";
}
// line 43
echo "
</div>
";
// line 46
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["categorie"], "combinedCategoryName", [], "any", false, false, true, 46))) {
// line 47
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["categorie"], "combinedCategoryName", [], "any", false, false, true, 47), 47, $this->source)), "html", null, true);
echo "
";
} else {
// line 49
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["categorie"], "oms", [], "any", false, false, true, 49), 49, $this->source)), "html", null, true);
echo "
";
}
// line 51
echo " </a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorie'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
";
// line 56
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-2");
echo "
<div class=\"row\">
<div class=\"col-12 justify-content-center \">
";
// line 60
$this->loadTemplate("includes/pagination-product.html.twig", "product/overview.html.twig", 60)->display($context);
// line 61
echo " </div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "product/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 197 => 61, 195 => 60, 188 => 56, 185 => 55, 176 => 51, 170 => 49, 164 => 47, 162 => 46, 157 => 43, 151 => 40, 147 => 38, 144 => 37, 142 => 36, 139 => 35, 132 => 31, 129 => 30, 127 => 29, 122 => 27, 118 => 26, 114 => 25, 109 => 22, 106 => 21, 102 => 20, 96 => 16, 93 => 15, 90 => 14, 87 => 13, 85 => 12, 79 => 9, 74 => 7, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<section class=\"mb-5 pb-5\">
<div class=\"container\">
{{ include('includes/title.html.twig') }}
{{ pimcore_areablock('content-1') }}
<div class=\"row\">
<div class=\"col-12\">
{% if editmode %}
{% set message = 'Om een ProductCategory toe te voegen: wendt u zich naar \"Objects\"' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
{% endif %}
</div>
</div>
<div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
{% for categorie in productcategories %}
{% set detailLink = app_product_grouplink(categorie) %}
<div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"{{ detailLink }}\" class=\"fs-5\"
onMouseOver=\"this.style.color='{{ categorie.bgcolor }}'\"
onMouseOut=\"this.style.color='#595959'\" data-toggle=\"tooltip\" data-html=\"true\" title=\"{{ categorie.infoProductGroup }}\" style=\"cursor: pointer;\">
<div class=\"p-3 position-relative h-100 d-block\">
{% if categorie.getImage() is not empty %}
<img src=\"{{ categorie.getImage().getThumbnail('homepage-icon') }}\"
class=\"img-fluid d-block\" style=\"z-index: 1\">
{% endif %}
{% set productimagebg = categorie.imagebg %}
{% if productimagebg %}
<img
src=\"{{ productimagebg.getThumbnail('homepage-icon') }}\"
class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"
style=\"z-index: -1\">{% endif %}
</div>
{% if categorie.combinedCategoryName is not empty %}
{{ categorie.combinedCategoryName|capitalize }}
{% else %}
{{ categorie.oms|capitalize }}
{% endif %}
</a>
</div>
</div>
{% endfor %}
</div>
{{ pimcore_areablock('content-2') }}
<div class=\"row\">
<div class=\"col-12 justify-content-center \">
{% include 'includes/pagination-product.html.twig' %}
</div>
</div>
</div>
</section>
{% endblock %}", "product/overview.html.twig", "/var/www/clients/client2/web42/web/pc/templates/product/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 12, "set" => 13, "include" => 14, "for" => 20);
static $filters = array("escape" => 25, "capitalize" => 47);
static $functions = array("include" => 7, "pimcore_areablock" => 9, "app_product_grouplink" => 21, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include', 'for'],
['escape', 'capitalize'],
['include', 'pimcore_areablock', 'app_product_grouplink', 'base_layout']
);
} 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;
}
}
}