<?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;
/* content/homepage.html.twig */
class __TwigTemplate_9e586ad84c0404503b79abbe4bdcec0a 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(), "content/homepage.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", "content/homepage.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/homepage.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 " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 7
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content_top");
echo "
</div>
</div>
</div>
";
// line 12
if (array_key_exists("productsGroups", $context)) {
// line 13
echo " <section class=\"mb-5\">
<div class=\"container\">
<div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["productsGroups"]) || array_key_exists("productsGroups", $context) ? $context["productsGroups"] : (function () { throw new RuntimeError('Variable "productsGroups" does not exist.', 16, $this->source); })()));
$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["productsGroup"]) {
// line 17
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 17) <= 10)) {
// line 18
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["productsGroup"], 18, $this->source));
// line 19
echo "
<div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"";
// line 22
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.', 22, $this->source); })()), 22, $this->source), "html", null, true);
echo "\" class=\"fs-5\" onMouseOver=\"this.style.color='";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "bgcolor", [], "any", false, false, true, 22), 22, $this->source), "html", null, true);
echo "'\" onMouseOut=\"this.style.color='#595959'\">
<div class=\"p-3 position-relative h-100 d-block\">
";
// line 25
$context["productimage"] = twig_get_attribute($this->env, $this->source, $context["productsGroup"], "image", [], "any", false, false, true, 25);
// line 26
echo " ";
if ((isset($context["productimage"]) || array_key_exists("productimage", $context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.', 26, $this->source); })())) {
// line 27
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["productimage"]) || array_key_exists("productimage", $context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.', 27, $this->source); })()), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\" class=\"img-fluid d-block\" style=\"z-index: 1\">
";
}
// line 29
echo "
";
// line 30
$context["productimagebg"] = twig_get_attribute($this->env, $this->source, $context["productsGroup"], "imagebg", [], "any", false, false, true, 30);
// line 31
echo " ";
if ((isset($context["productimagebg"]) || array_key_exists("productimagebg", $context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.', 31, $this->source); })())) {
// line 32
echo " <img src=\"";
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.', 32, $this->source); })()), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 32), 32, $this->source), "html", null, true);
echo "\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\" style=\"z-index: -1\">
";
}
// line 34
echo " </div>
";
// line 35
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "combinedCategoryName", [], "any", false, false, true, 35))) {
// line 36
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "combinedCategoryName", [], "any", false, false, true, 36), 36, $this->source)), "html", null, true);
echo "
";
} else {
// line 38
echo " ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "oms", [], "any", false, false, true, 38), 38, $this->source)), "html", null, true);
echo "
";
}
// line 40
echo " </a>
</div>
</div>
";
}
// line 44
echo " ";
++$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['productsGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo "
<div class=\"accordion col-12 w-100 accordion-flush homeaccordion\" id=\"accordionExample\">
<div class=\"accordion-item\">
<div id=\"collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
<div class=\"row row-cols-2 row-cols-lg-5 g-5 mb-5 d-flex justify-content-center\">
";
// line 51
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["productsGroups"]) || array_key_exists("productsGroups", $context) ? $context["productsGroups"] : (function () { throw new RuntimeError('Variable "productsGroups" does not exist.', 51, $this->source); })()));
$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["productsGroup"]) {
// line 52
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 52) > 10)) {
// line 53
echo "
";
// line 54
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["productsGroup"], 54, $this->source));
// line 55
echo " <div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"";
// line 57
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.', 57, $this->source); })()), 57, $this->source), "html", null, true);
echo "\" class=\"fs-5\" onMouseOver=\"this.style.color='";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "bgcolor", [], "any", false, false, true, 57), 57, $this->source), "html", null, true);
echo "'\" onMouseOut=\"this.style.color='#595959'\">
<div class=\"p-3 position-relative h-100 d-block\">
";
// line 59
$context["productimage"] = twig_get_attribute($this->env, $this->source, $context["productsGroup"], "image", [], "any", false, false, true, 59);
// line 60
echo " ";
if ((isset($context["productimage"]) || array_key_exists("productimage", $context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.', 60, $this->source); })())) {
// line 61
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["productimage"]) || array_key_exists("productimage", $context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.', 61, $this->source); })()), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 61), 61, $this->source), "html", null, true);
echo "\" class=\"img-fluid d-block\" style=\"z-index: 1\">
";
}
// line 63
echo " ";
$context["productimagebg"] = twig_get_attribute($this->env, $this->source, $context["productsGroup"], "imagebg", [], "any", false, false, true, 63);
// line 64
echo " ";
if ((isset($context["productimagebg"]) || array_key_exists("productimagebg", $context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.', 64, $this->source); })())) {
// line 65
echo " <img src=\"";
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.', 65, $this->source); })()), "getThumbnail", [0 => "homepage-icon"], "method", false, false, true, 65), 65, $this->source), "html", null, true);
echo "\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\" style=\"z-index: -1\">
";
}
// line 67
echo " </div>
";
// line 68
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productsGroup"], "oms", [], "any", false, false, true, 68), 68, $this->source)), "html", null, true);
echo "
</a>
</div>
</div>
";
}
// line 73
echo " ";
++$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['productsGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </div>
</div>
<div class=\"text-center\" id=\"headingOne\">
<button class=\"accordion-button mx-auto collapsed text-red\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapseOne\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle categorieëen"), "html", null, true);
echo "
</button>
</div>
</div>
</div>
</div>
</div>
</section>
";
}
// line 88
echo "
";
// line 89
if (array_key_exists("productPromotion", $context)) {
// line 90
echo " <section class=\"homepromoties mb-5\">
<div class=\"container py-5\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<h2 class=\"text-red display-5 text-center mb-5\">
<span class=\"heading-line red\">";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html", null, true);
echo "</span>
</h2>
</div>
<div class=\"splide\" id=\"promosplide\">
<div class=\"splide__track\">
<ul class=\"splide__list pb-5\">
";
// line 102
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["productPromotion"]);
foreach ($context['_seq'] as $context["_key"] => $context["productPromotion"]) {
// line 103
echo " ";
$context["categoryProduct"] = $this->extensions['App\Twig\Extension\ProductExtension']->getCategory($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productPromotion"], "parent", [], "any", false, false, true, 103), 103, $this->source));
// line 104
echo " ";
$context["subcategoryProduct"] = twig_get_attribute($this->env, $this->source, $context["productPromotion"], "parent", [], "any", false, false, true, 104);
// line 105
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateArticleLink($this->sandbox->ensureToStringAllowed((isset($context["categoryProduct"]) || array_key_exists("categoryProduct", $context) ? $context["categoryProduct"] : (function () { throw new RuntimeError('Variable "categoryProduct" does not exist.', 105, $this->source); })()), 105, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["subcategoryProduct"]) || array_key_exists("subcategoryProduct", $context) ? $context["subcategoryProduct"] : (function () { throw new RuntimeError('Variable "subcategoryProduct" does not exist.', 105, $this->source); })()), 105, $this->source), $this->sandbox->ensureToStringAllowed($context["productPromotion"], 105, $this->source));
// line 106
echo "
<li class=\"splide__slide\">
<div class=\"promo position-relative\">
<a href=\"";
// line 109
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.', 109, $this->source); })()), 109, $this->source), "html", null, true);
echo "\">
";
// line 110
$context["productPromotionImage"] = twig_get_attribute($this->env, $this->source, $context["productPromotion"], "fotos", [], "any", false, false, true, 110);
// line 111
echo " ";
if ((isset($context["productPromotionImage"]) || array_key_exists("productPromotionImage", $context) ? $context["productPromotionImage"] : (function () { throw new RuntimeError('Variable "productPromotionImage" does not exist.', 111, $this->source); })())) {
// line 112
echo " <div class=\"p-3\">
<img src=\"";
// line 113
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["productPromotionImage"]) || array_key_exists("productPromotionImage", $context) ? $context["productPromotionImage"] : (function () { throw new RuntimeError('Variable "productPromotionImage" does not exist.', 113, $this->source); })()), "getThumbnail", [0 => "homepage-catoverview"], "method", false, false, true, 113), 113, $this->source), "html", null, true);
echo "\" class=\"img-fluid\">
</div>
";
}
// line 116
echo "
";
// line 118
echo " <strong>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productPromotion"], "oms", [], "any", false, false, true, 118), 118, $this->source), "html", null, true);
echo "</strong>
</a>
";
// line 121
if (twig_get_attribute($this->env, $this->source, $context["productPromotion"], "promoprijs", [], "any", true, true, true, 121)) {
// line 122
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["productPromotion"], "promoprijs", [], "any", false, false, true, 122) > 0)) {
// line 123
echo " <div class=\"promoprijs\">
<div class=\"d-inline-block\">
<strike>€ ";
// line 125
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productPromotion"], "prijs", [], "any", false, false, true, 125), 125, $this->source), 2, ",", " "), "html", null, true);
echo "</strike><br>
<span>€ ";
// line 126
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productPromotion"], "promoprijs", [], "any", false, false, true, 126), 126, $this->source), 2, ",", " "), "html", null, true);
echo "</span>
</div>
</div>
";
} else {
// line 130
echo " <br>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["productPromotion"], "prijs", [], "any", false, false, true, 130), 130, $this->source), 2, ",", " "), "html", null, true);
echo "
";
}
// line 132
echo " ";
}
// line 133
echo " </div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productPromotion'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 136
echo " </ul>
</div>
</div>
</div>
</div>
</section>
";
}
// line 143
echo "
";
// line 163
echo "
";
// line 165
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 165, $this->source); })())) {
// line 166
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">";
// line 169
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
}
// line 174
echo "
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 178
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
</div>
";
// line 183
if (array_key_exists("news", $context)) {
// line 184
echo " <section class=\"homenews\">
<div class=\"container py-5\">
<div class=\"row\">
<div class=\"col-12 mb-3 position-relative\">
<h2 class=\"text-primary display-5 text-center mb-5\">
<span class=\"heading-line primary\">";
// line 189
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nieuws"), "html", null, true);
echo "</span></h2>
<div class=\"position-absolute top-0 end-0 d-flex align-items-center h-100 pb-5\">
<a href=\"";
// line 192
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("news_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("news_document")), "html", null, true);
}
echo "\" class=\"text-secondary btn-more\">
<span class=\"float-start\">";
// line 193
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle nieuws"), "html", null, true);
echo "</span>
<span class=\"material-symbols-rounded ms-2 pb-1 float-start\">arrow_forward</span>
</a>
</div>
</div>
</div>
<div class=\"row row-cols-lg-3 gy-3 gy-lg-0\">
";
// line 200
echo twig_include($this->env, $context, "includes/news/detail.html.twig", ["news" => // line 201
(isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 201, $this->source); })())]);
// line 202
echo "
</div>
</div>
</section>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/homepage.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 482 => 202, 480 => 201, 479 => 200, 469 => 193, 463 => 192, 457 => 189, 450 => 184, 448 => 183, 440 => 178, 434 => 174, 426 => 169, 421 => 166, 419 => 165, 415 => 163, 412 => 143, 403 => 136, 395 => 133, 392 => 132, 386 => 130, 379 => 126, 375 => 125, 371 => 123, 368 => 122, 366 => 121, 359 => 118, 356 => 116, 350 => 113, 347 => 112, 344 => 111, 342 => 110, 338 => 109, 333 => 106, 330 => 105, 327 => 104, 324 => 103, 320 => 102, 310 => 95, 303 => 90, 301 => 89, 298 => 88, 286 => 79, 279 => 74, 265 => 73, 257 => 68, 254 => 67, 248 => 65, 245 => 64, 242 => 63, 236 => 61, 233 => 60, 231 => 59, 224 => 57, 220 => 55, 218 => 54, 215 => 53, 212 => 52, 195 => 51, 187 => 45, 173 => 44, 167 => 40, 161 => 38, 155 => 36, 153 => 35, 150 => 34, 144 => 32, 141 => 31, 139 => 30, 136 => 29, 130 => 27, 127 => 26, 125 => 25, 117 => 22, 112 => 19, 109 => 18, 106 => 17, 89 => 16, 84 => 13, 82 => 12, 74 => 7, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{{ pimcore_areablock('content_top') }}
</div>
</div>
</div>
{% if productsGroups is defined %}
<section class=\"mb-5\">
<div class=\"container\">
<div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
{% for productsGroup in productsGroups %}
{% if loop.index <= 10 %}
{% set detailLink = app_product_grouplink(productsGroup) %}
<div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"{{ detailLink }}\" class=\"fs-5\" onMouseOver=\"this.style.color='{{ productsGroup.bgcolor }}'\" onMouseOut=\"this.style.color='#595959'\">
<div class=\"p-3 position-relative h-100 d-block\">
{% set productimage = productsGroup.image %}
{% if productimage %}
<img src=\"{{ productimage.getThumbnail('homepage-icon') }}\" class=\"img-fluid d-block\" style=\"z-index: 1\">
{% endif %}
{% set productimagebg = productsGroup.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 productsGroup.combinedCategoryName is not empty %}
{{ productsGroup.combinedCategoryName|capitalize }}
{% else %}
{{ productsGroup.oms|capitalize }}
{% endif %}
</a>
</div>
</div>
{% endif %}
{% endfor %}
<div class=\"accordion col-12 w-100 accordion-flush homeaccordion\" id=\"accordionExample\">
<div class=\"accordion-item\">
<div id=\"collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
<div class=\"row row-cols-2 row-cols-lg-5 g-5 mb-5 d-flex justify-content-center\">
{% for productsGroup in productsGroups %}
{% if loop.index > 10 %}
{% set detailLink = app_product_grouplink(productsGroup) %}
<div class=\"col\">
<div class=\"text-center catoverview\">
<a href=\"{{ detailLink }}\" class=\"fs-5\" onMouseOver=\"this.style.color='{{ productsGroup.bgcolor }}'\" onMouseOut=\"this.style.color='#595959'\">
<div class=\"p-3 position-relative h-100 d-block\">
{% set productimage = productsGroup.image %}
{% if productimage %}
<img src=\"{{ productimage.getThumbnail('homepage-icon') }}\" class=\"img-fluid d-block\" style=\"z-index: 1\">
{% endif %}
{% set productimagebg = productsGroup.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>
{{ productsGroup.oms|capitalize }}
</a>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"text-center\" id=\"headingOne\">
<button class=\"accordion-button mx-auto collapsed text-red\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapseOne\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
{{ 'Alle categorieëen'|trans }}
</button>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% if productPromotion is defined %}
<section class=\"homepromoties mb-5\">
<div class=\"container py-5\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<h2 class=\"text-red display-5 text-center mb-5\">
<span class=\"heading-line red\">{{ 'Promoties'|trans }}</span>
</h2>
</div>
<div class=\"splide\" id=\"promosplide\">
<div class=\"splide__track\">
<ul class=\"splide__list pb-5\">
{% for productPromotion in productPromotion %}
{% set categoryProduct = app_product_getCategory(productPromotion.parent) %}
{% set subcategoryProduct = productPromotion.parent %}
{% set detailLink = app_product_articlelink(categoryProduct,subcategoryProduct,productPromotion) %}
<li class=\"splide__slide\">
<div class=\"promo position-relative\">
<a href=\"{{ detailLink }}\">
{% set productPromotionImage = productPromotion.fotos %}
{% if productPromotionImage %}
<div class=\"p-3\">
<img src=\"{{ productPromotionImage.getThumbnail('homepage-catoverview') }}\" class=\"img-fluid\">
</div>
{% endif %}
{#{{ productPromotion.fotos }}#}
<strong>{{ productPromotion.oms }}</strong>
</a>
{% if productPromotion.promoprijs is defined %}
{% if productPromotion.promoprijs > 0 %}
<div class=\"promoprijs\">
<div class=\"d-inline-block\">
<strike>€ {{ productPromotion.prijs|number_format(2, ',', ' ') }}</strike><br>
<span>€ {{ productPromotion.promoprijs|number_format(2, ',', ' ') }}</span>
</div>
</div>
{% else %}
<br>€ {{ productPromotion.prijs|number_format(2, ',', ' ') }}
{% endif %}
{% endif %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{#
{% if overons is defined %}
<section>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h2>{{ 'In de kijker'|trans }}</h2>
</div>
</div>
<div class=\"row\">
{% for overonsPage in overons %}
<div class=\"col-4\">
<a href=\"{{ overonsPage.fullpath }}\"><h2>{{ overonsPage.title }}</h2></a>
</div>
{% endfor %}
</div>
</div>
</section>
{% endif %}#}
{% if editmode %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
</div>
</div>
</div>
{% endif %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{{ include('includes/default-content.html.twig') }}
</div>
</div>
</div>
{% if news is defined %}
<section class=\"homenews\">
<div class=\"container py-5\">
<div class=\"row\">
<div class=\"col-12 mb-3 position-relative\">
<h2 class=\"text-primary display-5 text-center mb-5\">
<span class=\"heading-line primary\">{{ 'Nieuws'|trans }}</span></h2>
<div class=\"position-absolute top-0 end-0 d-flex align-items-center h-100 pb-5\">
<a href=\"{% if check_websitesetting('news_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('news_document')) }}{% endif %}\" class=\"text-secondary btn-more\">
<span class=\"float-start\">{{ 'Alle nieuws'|trans() }}</span>
<span class=\"material-symbols-rounded ms-2 pb-1 float-start\">arrow_forward</span>
</a>
</div>
</div>
</div>
<div class=\"row row-cols-lg-3 gy-3 gy-lg-0\">
{{ include('includes/news/detail.html.twig', {
'news': news
}) }}
</div>
</div>
</section>
{% endif %}
{% endblock %}", "content/homepage.html.twig", "/var/www/clients/client2/web42/web/pc/templates/content/homepage.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 12, "for" => 16, "set" => 18);
static $filters = array("escape" => 22, "capitalize" => 36, "trans" => 79, "number_format" => 125);
static $functions = array("pimcore_areablock" => 7, "app_product_grouplink" => 18, "app_product_getCategory" => 103, "app_product_articlelink" => 105, "include" => 178, "check_websitesetting" => 192, "inotherlang" => 192, "pimcore_website_config" => 192, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for', 'set'],
['escape', 'capitalize', 'trans', 'number_format'],
['pimcore_areablock', 'app_product_grouplink', 'app_product_getCategory', 'app_product_articlelink', 'include', 'check_websitesetting', 'inotherlang', 'pimcore_website_config', '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;
}
}
}