var/cache/dev/twig/36/36948ad302605ad59de827162d2cb8bb.php line 49

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. /* content/homepage.html.twig */
  14. class __TwigTemplate_9e586ad84c0404503b79abbe4bdcec0a 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 $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "content/homepage.html.twig"1);
  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""content/homepage.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""content/homepage.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "    <div class=\"container\">
  56.         <div class=\"row\">
  57.             <div class=\"col-12\">
  58.                 ";
  59.         // line 7
  60.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content_top");
  61.         echo "
  62.             </div>
  63.         </div>
  64.     </div>
  65.     ";
  66.         // line 12
  67.         if (array_key_exists("productsGroups"$context)) {
  68.             // line 13
  69.             echo "        <section class=\"mb-5\">
  70.             <div class=\"container\">
  71.                 <div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
  72.                     ";
  73.             // line 16
  74.             $context['_parent'] = $context;
  75.             $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); })()));
  76.             $context['loop'] = [
  77.               'parent' => $context['_parent'],
  78.               'index0' => 0,
  79.               'index'  => 1,
  80.               'first'  => true,
  81.             ];
  82.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  83.                 $length count($context['_seq']);
  84.                 $context['loop']['revindex0'] = $length 1;
  85.                 $context['loop']['revindex'] = $length;
  86.                 $context['loop']['length'] = $length;
  87.                 $context['loop']['last'] = === $length;
  88.             }
  89.             foreach ($context['_seq'] as $context["_key"] => $context["productsGroup"]) {
  90.                 // line 17
  91.                 echo "                        ";
  92.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue17) <= 10)) {
  93.                     // line 18
  94.                     echo "                            ";
  95.                     $context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["productsGroup"], 18$this->source));
  96.                     // line 19
  97.                     echo "
  98.                             <div class=\"col\">
  99.                                 <div class=\"text-center catoverview\">
  100.                                     <a href=\"";
  101.                     // line 22
  102.                     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"nulltrue);
  103.                     echo "\" class=\"fs-5\" onMouseOver=\"this.style.color='";
  104.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productsGroup"], "bgcolor", [], "any"falsefalsetrue22), 22$this->source), "html"nulltrue);
  105.                     echo "'\" onMouseOut=\"this.style.color='#595959'\">
  106.                                         <div class=\"p-3 position-relative h-100 d-block\">
  107.                                             ";
  108.                     // line 25
  109.                     $context["productimage"] = twig_get_attribute($this->env$this->source$context["productsGroup"], "image", [], "any"falsefalsetrue25);
  110.                     // line 26
  111.                     echo "                                            ";
  112.                     if ((isset($context["productimage"]) || array_key_exists("productimage"$context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.'26$this->source); })())) {
  113.                         // line 27
  114.                         echo "                                                <img src=\"";
  115.                         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", [=> "homepage-icon"], "method"falsefalsetrue27), 27$this->source), "html"nulltrue);
  116.                         echo "\" class=\"img-fluid d-block\" style=\"z-index: 1\">
  117.                                             ";
  118.                     }
  119.                     // line 29
  120.                     echo "
  121.                                             ";
  122.                     // line 30
  123.                     $context["productimagebg"] = twig_get_attribute($this->env$this->source$context["productsGroup"], "imagebg", [], "any"falsefalsetrue30);
  124.                     // line 31
  125.                     echo "                                            ";
  126.                     if ((isset($context["productimagebg"]) || array_key_exists("productimagebg"$context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.'31$this->source); })())) {
  127.                         // line 32
  128.                         echo "                                                <img src=\"";
  129.                         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", [=> "homepage-icon"], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  130.                         echo "\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"  style=\"z-index: -1\">
  131.                                             ";
  132.                     }
  133.                     // line 34
  134.                     echo "                                        </div>
  135.                                         ";
  136.                     // line 35
  137.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["productsGroup"], "combinedCategoryName", [], "any"falsefalsetrue35))) {
  138.                         // line 36
  139.                         echo "                                            ";
  140.                         echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productsGroup"], "combinedCategoryName", [], "any"falsefalsetrue36), 36$this->source)), "html"nulltrue);
  141.                         echo "
  142.                                         ";
  143.                     } else {
  144.                         // line 38
  145.                         echo "                                            ";
  146.                         echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productsGroup"], "oms", [], "any"falsefalsetrue38), 38$this->source)), "html"nulltrue);
  147.                         echo "
  148.                                         ";
  149.                     }
  150.                     // line 40
  151.                     echo "                                    </a>
  152.                                 </div>
  153.                             </div>
  154.                         ";
  155.                 }
  156.                 // line 44
  157.                 echo "                    ";
  158.                 ++$context['loop']['index0'];
  159.                 ++$context['loop']['index'];
  160.                 $context['loop']['first'] = false;
  161.                 if (isset($context['loop']['length'])) {
  162.                     --$context['loop']['revindex0'];
  163.                     --$context['loop']['revindex'];
  164.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  165.                 }
  166.             }
  167.             $_parent $context['_parent'];
  168.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productsGroup'], $context['_parent'], $context['loop']);
  169.             $context array_intersect_key($context$_parent) + $_parent;
  170.             // line 45
  171.             echo "
  172.                     <div class=\"accordion col-12 w-100 accordion-flush homeaccordion\" id=\"accordionExample\">
  173.                         <div class=\"accordion-item\">
  174.                             <div id=\"collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
  175.                                 <div class=\"row row-cols-2 row-cols-lg-5 g-5 mb-5 d-flex justify-content-center\">
  176.                                     ";
  177.             // line 51
  178.             $context['_parent'] = $context;
  179.             $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); })()));
  180.             $context['loop'] = [
  181.               'parent' => $context['_parent'],
  182.               'index0' => 0,
  183.               'index'  => 1,
  184.               'first'  => true,
  185.             ];
  186.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  187.                 $length count($context['_seq']);
  188.                 $context['loop']['revindex0'] = $length 1;
  189.                 $context['loop']['revindex'] = $length;
  190.                 $context['loop']['length'] = $length;
  191.                 $context['loop']['last'] = === $length;
  192.             }
  193.             foreach ($context['_seq'] as $context["_key"] => $context["productsGroup"]) {
  194.                 // line 52
  195.                 echo "                                        ";
  196.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue52) > 10)) {
  197.                     // line 53
  198.                     echo "
  199.                                             ";
  200.                     // line 54
  201.                     $context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["productsGroup"], 54$this->source));
  202.                     // line 55
  203.                     echo "                                            <div class=\"col\">
  204.                                                 <div class=\"text-center catoverview\">
  205.                                                     <a href=\"";
  206.                     // line 57
  207.                     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"nulltrue);
  208.                     echo "\" class=\"fs-5\" onMouseOver=\"this.style.color='";
  209.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productsGroup"], "bgcolor", [], "any"falsefalsetrue57), 57$this->source), "html"nulltrue);
  210.                     echo "'\" onMouseOut=\"this.style.color='#595959'\">
  211.                                                         <div class=\"p-3 position-relative h-100 d-block\">
  212.                                                             ";
  213.                     // line 59
  214.                     $context["productimage"] = twig_get_attribute($this->env$this->source$context["productsGroup"], "image", [], "any"falsefalsetrue59);
  215.                     // line 60
  216.                     echo "                                                            ";
  217.                     if ((isset($context["productimage"]) || array_key_exists("productimage"$context) ? $context["productimage"] : (function () { throw new RuntimeError('Variable "productimage" does not exist.'60$this->source); })())) {
  218.                         // line 61
  219.                         echo "                                                                <img src=\"";
  220.                         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", [=> "homepage-icon"], "method"falsefalsetrue61), 61$this->source), "html"nulltrue);
  221.                         echo "\" class=\"img-fluid d-block\" style=\"z-index: 1\">
  222.                                                             ";
  223.                     }
  224.                     // line 63
  225.                     echo "                                                            ";
  226.                     $context["productimagebg"] = twig_get_attribute($this->env$this->source$context["productsGroup"], "imagebg", [], "any"falsefalsetrue63);
  227.                     // line 64
  228.                     echo "                                                            ";
  229.                     if ((isset($context["productimagebg"]) || array_key_exists("productimagebg"$context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.'64$this->source); })())) {
  230.                         // line 65
  231.                         echo "                                                                <img src=\"";
  232.                         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", [=> "homepage-icon"], "method"falsefalsetrue65), 65$this->source), "html"nulltrue);
  233.                         echo "\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\" style=\"z-index: -1\">
  234.                                                             ";
  235.                     }
  236.                     // line 67
  237.                     echo "                                                        </div>
  238.                                                         ";
  239.                     // line 68
  240.                     echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productsGroup"], "oms", [], "any"falsefalsetrue68), 68$this->source)), "html"nulltrue);
  241.                     echo "
  242.                                                     </a>
  243.                                                 </div>
  244.                                             </div>
  245.                                         ";
  246.                 }
  247.                 // line 73
  248.                 echo "                                    ";
  249.                 ++$context['loop']['index0'];
  250.                 ++$context['loop']['index'];
  251.                 $context['loop']['first'] = false;
  252.                 if (isset($context['loop']['length'])) {
  253.                     --$context['loop']['revindex0'];
  254.                     --$context['loop']['revindex'];
  255.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  256.                 }
  257.             }
  258.             $_parent $context['_parent'];
  259.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productsGroup'], $context['_parent'], $context['loop']);
  260.             $context array_intersect_key($context$_parent) + $_parent;
  261.             // line 74
  262.             echo "                                </div>
  263.                             </div>
  264.                             <div class=\"text-center\" id=\"headingOne\">
  265.                                 <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\">
  266.                                     ";
  267.             // line 79
  268.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle categorieëen"), "html"nulltrue);
  269.             echo "
  270.                                 </button>
  271.                             </div>
  272.                         </div>
  273.                     </div>
  274.                 </div>
  275.             </div>
  276.         </section>
  277.     ";
  278.         }
  279.         // line 88
  280.         echo "
  281.     ";
  282.         // line 89
  283.         if (array_key_exists("productPromotion"$context)) {
  284.             // line 90
  285.             echo "        <section class=\"homepromoties mb-5\">
  286.             <div class=\"container py-5\">
  287.                 <div class=\"row\">
  288.                     <div class=\"col-12 mb-3\">
  289.                         <h2 class=\"text-red display-5 text-center mb-5\">
  290.                             <span class=\"heading-line red\">";
  291.             // line 95
  292.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promoties"), "html"nulltrue);
  293.             echo "</span>
  294.                         </h2>
  295.                     </div>
  296.                     <div class=\"splide\" id=\"promosplide\">
  297.                         <div class=\"splide__track\">
  298.                             <ul class=\"splide__list pb-5\">
  299.                                 ";
  300.             // line 102
  301.             $context['_parent'] = $context;
  302.             $context['_seq'] = twig_ensure_traversable($context["productPromotion"]);
  303.             foreach ($context['_seq'] as $context["_key"] => $context["productPromotion"]) {
  304.                 // line 103
  305.                 echo "                                    ";
  306.                 $context["categoryProduct"] = $this->extensions['App\Twig\Extension\ProductExtension']->getCategory($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productPromotion"], "parent", [], "any"falsefalsetrue103), 103$this->source));
  307.                 // line 104
  308.                 echo "                                    ";
  309.                 $context["subcategoryProduct"] = twig_get_attribute($this->env$this->source$context["productPromotion"], "parent", [], "any"falsefalsetrue104);
  310.                 // line 105
  311.                 echo "                                    ";
  312.                 $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));
  313.                 // line 106
  314.                 echo "
  315.                                     <li class=\"splide__slide\">
  316.                                         <div class=\"promo position-relative\">
  317.                                             <a href=\"";
  318.                 // line 109
  319.                 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"nulltrue);
  320.                 echo "\">
  321.                                                 ";
  322.                 // line 110
  323.                 $context["productPromotionImage"] = twig_get_attribute($this->env$this->source$context["productPromotion"], "fotos", [], "any"falsefalsetrue110);
  324.                 // line 111
  325.                 echo "                                                ";
  326.                 if ((isset($context["productPromotionImage"]) || array_key_exists("productPromotionImage"$context) ? $context["productPromotionImage"] : (function () { throw new RuntimeError('Variable "productPromotionImage" does not exist.'111$this->source); })())) {
  327.                     // line 112
  328.                     echo "                                                    <div class=\"p-3\">
  329.                                                         <img src=\"";
  330.                     // line 113
  331.                     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", [=> "homepage-catoverview"], "method"falsefalsetrue113), 113$this->source), "html"nulltrue);
  332.                     echo "\" class=\"img-fluid\">
  333.                                                     </div>
  334.                                                 ";
  335.                 }
  336.                 // line 116
  337.                 echo "
  338.                                                 ";
  339.                 // line 118
  340.                 echo "                                                <strong>";
  341.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productPromotion"], "oms", [], "any"falsefalsetrue118), 118$this->source), "html"nulltrue);
  342.                 echo "</strong>
  343.                                             </a>
  344.                                             ";
  345.                 // line 121
  346.                 if (twig_get_attribute($this->env$this->source$context["productPromotion"], "promoprijs", [], "any"truetruetrue121)) {
  347.                     // line 122
  348.                     echo "                                                ";
  349.                     if ((twig_get_attribute($this->env$this->source$context["productPromotion"], "promoprijs", [], "any"falsefalsetrue122) > 0)) {
  350.                         // line 123
  351.                         echo "                                                    <div class=\"promoprijs\">
  352.                                                         <div class=\"d-inline-block\">
  353.                                                             <strike>€ ";
  354.                         // line 125
  355.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productPromotion"], "prijs", [], "any"falsefalsetrue125), 125$this->source), 2","" "), "html"nulltrue);
  356.                         echo "</strike><br>
  357.                                                             <span>€ ";
  358.                         // line 126
  359.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productPromotion"], "promoprijs", [], "any"falsefalsetrue126), 126$this->source), 2","" "), "html"nulltrue);
  360.                         echo "</span>
  361.                                                         </div>
  362.                                                     </div>
  363.                                                 ";
  364.                     } else {
  365.                         // line 130
  366.                         echo "                                                    <br>€ ";
  367.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["productPromotion"], "prijs", [], "any"falsefalsetrue130), 130$this->source), 2","" "), "html"nulltrue);
  368.                         echo "
  369.                                                 ";
  370.                     }
  371.                     // line 132
  372.                     echo "                                            ";
  373.                 }
  374.                 // line 133
  375.                 echo "                                        </div>
  376.                                     </li>
  377.                                 ";
  378.             }
  379.             $_parent $context['_parent'];
  380.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productPromotion'], $context['_parent'], $context['loop']);
  381.             $context array_intersect_key($context$_parent) + $_parent;
  382.             // line 136
  383.             echo "                            </ul>
  384.                         </div>
  385.                     </div>
  386.                 </div>
  387.             </div>
  388.         </section>
  389.     ";
  390.         }
  391.         // line 143
  392.         echo "
  393.     ";
  394.         // line 163
  395.         echo "
  396.     ";
  397.         // line 165
  398.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'165$this->source); })())) {
  399.             // line 166
  400.             echo "        <div class=\"container\">
  401.             <div class=\"row\">
  402.                 <div class=\"col-12\">
  403.                     <p class=\"advice\">";
  404.             // line 169
  405.             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"nulltrue);
  406.             echo "</p>
  407.                 </div>
  408.             </div>
  409.         </div>
  410.     ";
  411.         }
  412.         // line 174
  413.         echo "
  414.     <div class=\"container\">
  415.         <div class=\"row\">
  416.             <div class=\"col-12\">
  417.                 ";
  418.         // line 178
  419.         echo twig_include($this->env$context"includes/default-content.html.twig");
  420.         echo "
  421.             </div>
  422.         </div>
  423.     </div>
  424.     ";
  425.         // line 183
  426.         if (array_key_exists("news"$context)) {
  427.             // line 184
  428.             echo "        <section class=\"homenews\">
  429.             <div class=\"container py-5\">
  430.                 <div class=\"row\">
  431.                     <div class=\"col-12 mb-3 position-relative\">
  432.                         <h2 class=\"text-primary display-5 text-center mb-5\">
  433.                             <span class=\"heading-line primary\">";
  434.             // line 189
  435.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nieuws"), "html"nulltrue);
  436.             echo "</span></h2>
  437.                         <div class=\"position-absolute top-0 end-0 d-flex align-items-center h-100 pb-5\">
  438.                             <a href=\"";
  439.             // line 192
  440.             if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("news_document""document")) {
  441.                 echo twig_escape_filter($this->env$this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument"$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("news_document")), "html"nulltrue);
  442.             }
  443.             echo "\" class=\"text-secondary btn-more\">
  444.                                 <span class=\"float-start\">";
  445.             // line 193
  446.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle nieuws"), "html"nulltrue);
  447.             echo "</span>
  448.                                 <span class=\"material-symbols-rounded ms-2 pb-1 float-start\">arrow_forward</span>
  449.                             </a>
  450.                         </div>
  451.                     </div>
  452.                 </div>
  453.                 <div class=\"row row-cols-lg-3 gy-3 gy-lg-0\">
  454.                     ";
  455.             // line 200
  456.             echo twig_include($this->env$context"includes/news/detail.html.twig", ["news" =>             // line 201
  457. (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'201$this->source); })())]);
  458.             // line 202
  459.             echo "
  460.                 </div>
  461.             </div>
  462.         </section>
  463.     ";
  464.         }
  465.         
  466.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  467.         
  468.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  469.     }
  470.     public function getTemplateName()
  471.     {
  472.         return "content/homepage.html.twig";
  473.     }
  474.     public function isTraitable()
  475.     {
  476.         return false;
  477.     }
  478.     public function getDebugInfo()
  479.     {
  480.         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,);
  481.     }
  482.     public function getSourceContext()
  483.     {
  484.         return new Source("{% extends base_layout() %}
  485. {% block content %}
  486.     <div class=\"container\">
  487.         <div class=\"row\">
  488.             <div class=\"col-12\">
  489.                 {{ pimcore_areablock('content_top') }}
  490.             </div>
  491.         </div>
  492.     </div>
  493.     {% if productsGroups is defined %}
  494.         <section class=\"mb-5\">
  495.             <div class=\"container\">
  496.                 <div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
  497.                     {% for productsGroup in productsGroups %}
  498.                         {% if loop.index <= 10 %}
  499.                             {% set detailLink = app_product_grouplink(productsGroup) %}
  500.                             <div class=\"col\">
  501.                                 <div class=\"text-center catoverview\">
  502.                                     <a href=\"{{ detailLink }}\" class=\"fs-5\" onMouseOver=\"this.style.color='{{ productsGroup.bgcolor }}'\" onMouseOut=\"this.style.color='#595959'\">
  503.                                         <div class=\"p-3 position-relative h-100 d-block\">
  504.                                             {% set productimage = productsGroup.image %}
  505.                                             {% if productimage %}
  506.                                                 <img src=\"{{ productimage.getThumbnail('homepage-icon') }}\" class=\"img-fluid d-block\" style=\"z-index: 1\">
  507.                                             {% endif %}
  508.                                             {% set productimagebg = productsGroup.imagebg %}
  509.                                             {% if productimagebg %}
  510.                                                 <img src=\"{{ productimagebg.getThumbnail('homepage-icon') }}\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"  style=\"z-index: -1\">
  511.                                             {% endif %}
  512.                                         </div>
  513.                                         {% if productsGroup.combinedCategoryName is not empty %}
  514.                                             {{ productsGroup.combinedCategoryName|capitalize }}
  515.                                         {% else %}
  516.                                             {{ productsGroup.oms|capitalize }}
  517.                                         {% endif %}
  518.                                     </a>
  519.                                 </div>
  520.                             </div>
  521.                         {% endif %}
  522.                     {% endfor %}
  523.                     <div class=\"accordion col-12 w-100 accordion-flush homeaccordion\" id=\"accordionExample\">
  524.                         <div class=\"accordion-item\">
  525.                             <div id=\"collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
  526.                                 <div class=\"row row-cols-2 row-cols-lg-5 g-5 mb-5 d-flex justify-content-center\">
  527.                                     {% for productsGroup in productsGroups %}
  528.                                         {% if loop.index > 10 %}
  529.                                             {% set detailLink = app_product_grouplink(productsGroup) %}
  530.                                             <div class=\"col\">
  531.                                                 <div class=\"text-center catoverview\">
  532.                                                     <a href=\"{{ detailLink }}\" class=\"fs-5\" onMouseOver=\"this.style.color='{{ productsGroup.bgcolor }}'\" onMouseOut=\"this.style.color='#595959'\">
  533.                                                         <div class=\"p-3 position-relative h-100 d-block\">
  534.                                                             {% set productimage = productsGroup.image %}
  535.                                                             {% if productimage %}
  536.                                                                 <img src=\"{{ productimage.getThumbnail('homepage-icon') }}\" class=\"img-fluid d-block\" style=\"z-index: 1\">
  537.                                                             {% endif %}
  538.                                                             {% set productimagebg = productsGroup.imagebg %}
  539.                                                             {% if productimagebg %}
  540.                                                                 <img src=\"{{ productimagebg.getThumbnail('homepage-icon') }}\" class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\" style=\"z-index: -1\">
  541.                                                             {% endif %}
  542.                                                         </div>
  543.                                                         {{ productsGroup.oms|capitalize }}
  544.                                                     </a>
  545.                                                 </div>
  546.                                             </div>
  547.                                         {% endif %}
  548.                                     {% endfor %}
  549.                                 </div>
  550.                             </div>
  551.                             <div class=\"text-center\" id=\"headingOne\">
  552.                                 <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\">
  553.                                     {{ 'Alle categorieëen'|trans }}
  554.                                 </button>
  555.                             </div>
  556.                         </div>
  557.                     </div>
  558.                 </div>
  559.             </div>
  560.         </section>
  561.     {% endif %}
  562.     {% if productPromotion is defined %}
  563.         <section class=\"homepromoties mb-5\">
  564.             <div class=\"container py-5\">
  565.                 <div class=\"row\">
  566.                     <div class=\"col-12 mb-3\">
  567.                         <h2 class=\"text-red display-5 text-center mb-5\">
  568.                             <span class=\"heading-line red\">{{ 'Promoties'|trans }}</span>
  569.                         </h2>
  570.                     </div>
  571.                     <div class=\"splide\" id=\"promosplide\">
  572.                         <div class=\"splide__track\">
  573.                             <ul class=\"splide__list pb-5\">
  574.                                 {% for productPromotion in productPromotion %}
  575.                                     {% set categoryProduct = app_product_getCategory(productPromotion.parent) %}
  576.                                     {% set subcategoryProduct = productPromotion.parent %}
  577.                                     {% set detailLink = app_product_articlelink(categoryProduct,subcategoryProduct,productPromotion) %}
  578.                                     <li class=\"splide__slide\">
  579.                                         <div class=\"promo position-relative\">
  580.                                             <a href=\"{{ detailLink }}\">
  581.                                                 {% set productPromotionImage = productPromotion.fotos %}
  582.                                                 {% if productPromotionImage %}
  583.                                                     <div class=\"p-3\">
  584.                                                         <img src=\"{{ productPromotionImage.getThumbnail('homepage-catoverview') }}\" class=\"img-fluid\">
  585.                                                     </div>
  586.                                                 {% endif %}
  587.                                                 {#{{ productPromotion.fotos }}#}
  588.                                                 <strong>{{ productPromotion.oms }}</strong>
  589.                                             </a>
  590.                                             {% if productPromotion.promoprijs is defined %}
  591.                                                 {% if productPromotion.promoprijs > 0 %}
  592.                                                     <div class=\"promoprijs\">
  593.                                                         <div class=\"d-inline-block\">
  594.                                                             <strike>€ {{ productPromotion.prijs|number_format(2, ',', ' ') }}</strike><br>
  595.                                                             <span>€ {{ productPromotion.promoprijs|number_format(2, ',', ' ') }}</span>
  596.                                                         </div>
  597.                                                     </div>
  598.                                                 {% else %}
  599.                                                     <br>€ {{ productPromotion.prijs|number_format(2, ',', ' ') }}
  600.                                                 {% endif %}
  601.                                             {% endif %}
  602.                                         </div>
  603.                                     </li>
  604.                                 {% endfor %}
  605.                             </ul>
  606.                         </div>
  607.                     </div>
  608.                 </div>
  609.             </div>
  610.         </section>
  611.     {% endif %}
  612.     {#
  613.     {% if overons is defined %}
  614.         <section>
  615.             <div class=\"container\">
  616.                 <div class=\"row\">
  617.                     <div class=\"col-12\">
  618.                         <h2>{{ 'In de kijker'|trans }}</h2>
  619.                     </div>
  620.                 </div>
  621.                 <div class=\"row\">
  622.                     {% for overonsPage in overons %}
  623.                         <div class=\"col-4\">
  624.                             <a href=\"{{ overonsPage.fullpath }}\"><h2>{{ overonsPage.title }}</h2></a>
  625.                         </div>
  626.                     {% endfor %}
  627.                 </div>
  628.             </div>
  629.         </section>
  630.     {% endif %}#}
  631.     {% if editmode %}
  632.         <div class=\"container\">
  633.             <div class=\"row\">
  634.                 <div class=\"col-12\">
  635.                     <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  636.                 </div>
  637.             </div>
  638.         </div>
  639.     {% endif %}
  640.     <div class=\"container\">
  641.         <div class=\"row\">
  642.             <div class=\"col-12\">
  643.                 {{ include('includes/default-content.html.twig') }}
  644.             </div>
  645.         </div>
  646.     </div>
  647.     {% if news is defined %}
  648.         <section class=\"homenews\">
  649.             <div class=\"container py-5\">
  650.                 <div class=\"row\">
  651.                     <div class=\"col-12 mb-3 position-relative\">
  652.                         <h2 class=\"text-primary display-5 text-center mb-5\">
  653.                             <span class=\"heading-line primary\">{{ 'Nieuws'|trans }}</span></h2>
  654.                         <div class=\"position-absolute top-0 end-0 d-flex align-items-center h-100 pb-5\">
  655.                             <a href=\"{% if check_websitesetting('news_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('news_document')) }}{% endif %}\" class=\"text-secondary btn-more\">
  656.                                 <span class=\"float-start\">{{ 'Alle nieuws'|trans() }}</span>
  657.                                 <span class=\"material-symbols-rounded ms-2 pb-1 float-start\">arrow_forward</span>
  658.                             </a>
  659.                         </div>
  660.                     </div>
  661.                 </div>
  662.                 <div class=\"row row-cols-lg-3 gy-3 gy-lg-0\">
  663.                     {{ include('includes/news/detail.html.twig', {
  664.                         'news': news
  665.                     }) }}
  666.                 </div>
  667.             </div>
  668.         </section>
  669.     {% endif %}
  670. {% endblock %}""content/homepage.html.twig""/var/www/clients/client2/web42/web/pc/templates/content/homepage.html.twig");
  671.     }
  672.     
  673.     public function checkSecurity()
  674.     {
  675.         static $tags = array("if" => 12"for" => 16"set" => 18);
  676.         static $filters = array("escape" => 22"capitalize" => 36"trans" => 79"number_format" => 125);
  677.         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);
  678.         try {
  679.             $this->sandbox->checkSecurity(
  680.                 ['if''for''set'],
  681.                 ['escape''capitalize''trans''number_format'],
  682.                 ['pimcore_areablock''app_product_grouplink''app_product_getCategory''app_product_articlelink''include''check_websitesetting''inotherlang''pimcore_website_config''base_layout']
  683.             );
  684.         } catch (SecurityError $e) {
  685.             $e->setSourceContext($this->source);
  686.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  687.                 $e->setTemplateLine($tags[$e->getTagName()]);
  688.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  689.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  690.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  691.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  692.             }
  693.             throw $e;
  694.         }
  695.     }
  696. }