var/cache/dev/twig/89/896520474c0acd6d016800e63c185aec4fe90d7ad94989d6dd315adac5958967.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* product_category/layouts/_sub.html.twig */
  16. class __TwigTemplate_05a9a44dad3fedafddc29d0e32789c54798068e34e3c9c3125537e62c7fe5779 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product_category/layouts/_sub.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product_category/layouts/_sub.html.twig"));
  40.         // line 1
  41.         $context["breadcrumbs"] = [];
  42.         // line 2
  43.         yield "
  44. ";
  45.         // line 3
  46.         if ((array_key_exists("childCategoriesObjects"$context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'3$this->source); })())) == 0))) {
  47.             // line 4
  48.             yield "    ";
  49.             $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'4$this->source); })()), 4$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Producten"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("table-anchor")]]);
  50.         }
  51.         // line 9
  52.         yield "
  53. ";
  54.         // line 10
  55.         if ((array_key_exists("childCategoriesObjects"$context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'10$this->source); })())) > 0))) {
  56.             // line 11
  57.             yield "    ";
  58.             $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'11$this->source); })()), 11$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aanbod"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products-anchor")]]);
  59.         }
  60.         // line 16
  61.         yield "
  62. ";
  63.         // line 17
  64.         $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'17$this->source); })()), 17$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Toepassingen"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("applications-anchor")]]);
  65.         // line 21
  66.         yield "
  67. ";
  68.         // line 22
  69.         $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'22$this->source); })()), 22$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Werking en accessoires"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("method-and-acccessoires-anchor")]]);
  70.         // line 26
  71.         yield "
  72. ";
  73.         // line 27
  74.         $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'27$this->source); })()), 27$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Gebruik"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("usage-anchor")]]);
  75.         // line 31
  76.         yield "
  77. ";
  78.         // line 32
  79.         $context["breadcrumbs"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'32$this->source); })()), 32$this->source), [["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veelgestelde vragen"), "anchor" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("faq-anchor")]]);
  80.         // line 36
  81.         yield "
  82. ";
  83.         // line 37
  84.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-1", ["type" => "content-brick""params" => ["content-brick" => ["containerClasses" => "md:py-20""productCategory" => $this->sandbox->ensureToStringAllowed(        // line 42
  85. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'42$this->source); })()), 42$this->source), "forceH1" => true"defaultLayout" => "text-gallery""defaultBackgroundColor" => "bg-white""defaultInverted" => true"defaultTitle" => (((CoreExtension::getAttribute($this->env$this->source,         // line 47
  86. ($context["productCategory"] ?? null), "title", [], "any"truetruetrue47) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "title", [], "any"falsefalsetrue47)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "title", [], "any"falsefalsetrue47)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'47$this->source); })()), "title", [], "any"falsefalsetrue47))), "defaultHeadline" => (((CoreExtension::getAttribute($this->env$this->source,         // line 48
  87. ($context["productCategory"] ?? null), "subtitle", [], "any"truetruetrue48) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "subtitle", [], "any"falsefalsetrue48)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "subtitle", [], "any"falsefalsetrue48)) : (null)), "defaultWysiwyg" => (((CoreExtension::getAttribute($this->env$this->source,         // line 49
  88. ($context["productCategory"] ?? null), "desc", [], "any"truetruetrue49) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "desc", [], "any"falsefalsetrue49)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "desc", [], "any"falsefalsetrue49)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'49$this->source); })()), "description", [], "any"falsefalsetrue49))), "defaultGalleryItems" => (((CoreExtension::getAttribute($this->env$this->source,         // line 50
  89. ($context["productCategory"] ?? null), "mediaGalleryItems", [], "any"truetruetrue50) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'50$this->source); })()), "mediaGalleryItems", [], "any"falsefalsetrue50), 50$this->source)) > 1))) ? (Twig\Extension\CoreExtension::slice($this->env->getCharset(), $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'50$this->source); })()), "mediaGalleryItems", [], "any"falsefalsetrue50), 50$this->source), 14)) : (null)), "defaultSecondaryLink" => (((        // line 51
  90. array_key_exists("childCategoriesObjects"$context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->sandbox->ensureToStringAllowed((isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'51$this->source); })()), 51$this->source)) == 0))) ? (["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk de {{ productCategory }}", ["{{ productCategory }}" => (((CoreExtension::getAttribute($this->env$this->source,         // line 52
  91. ($context["productCategory"] ?? null), "name", [], "any"truetruetrue52) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue52)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue52)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'52$this->source); })()), "title", [], "any"falsefalsetrue52)))]), "link" => "#table-anchor""target" => ""]) : (false))]]]);
  92.         // line 58
  93.         yield "
  94. ";
  95.         // line 60
  96.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""features", ["type" => "features-brick""params" => ["features-brick" => ["brickBackgroundColor" => "bg-white""productCategory" => $this->sandbox->ensureToStringAllowed(        // line 65
  97. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'65$this->source); })()), 65$this->source)]]]);
  98.         // line 68
  99.         yield "
  100. ";
  101.         // line 70
  102.         if ((array_key_exists("childCategoriesObjects"$context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'70$this->source); })())) == 0))) {
  103.             // line 71
  104.             yield "    ";
  105.             // line 72
  106.             yield "    <div id=\"table-anchor\">
  107.         ";
  108.             // line 73
  109.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""product-table-brick-1", ["type" => "product-table-brick""params" => ["product-table-brick" => ["defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("{{ productCategory }} huren", ["{{ productCategory }}" => ((CoreExtension::getAttribute($this->env$this->source,             // line 77
  110. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'77$this->source); })()), "name", [], "any"falsefalsetrue77)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'77$this->source); })()), "name", [], "any"falsefalsetrue77)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'77$this->source); })()), "key", [], "any"falsefalsetrue77)))]), "productCategory" => $this->sandbox->ensureToStringAllowed(            // line 78
  111. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'78$this->source); })()), 78$this->source)]]]);
  112.             // line 81
  113.             yield "
  114.     </div>
  115. ";
  116.         }
  117.         // line 84
  118.         yield "
  119. ";
  120.         // line 85
  121.         if ((array_key_exists("childCategoriesObjects"$context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'85$this->source); })())) > 0))) {
  122.             // line 86
  123.             yield "    <div id=\"products-anchor\">
  124.         ";
  125.             // line 87
  126.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""product-category-cards-brick", ["type" => "product-category-cards-brick""params" => ["product-category-cards-brick" => ["showTitle" => true"defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aanbod {{ productCategory }}", ["{{ productCategory }}" => (((CoreExtension::getAttribute($this->env$this->source,             // line 92
  127. ($context["productCategory"] ?? null), "name", [], "any"truetruetrue92) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue92)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue92)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'92$this->source); })()), "title", [], "any"falsefalsetrue92)))]), "fourColumns" => false"productCategories" => $this->sandbox->ensureToStringAllowed(            // line 94
  128. (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'94$this->source); })()), 94$this->source)]]]);
  129.             // line 97
  130.             yield "
  131.         ";
  132.             // line 99
  133.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""text-and-links-brick-1", ["type" => "text-and-links-brick""params" => ["text-and-links-brick" => ["style" => "normal"]]]);
  134.             // line 106
  135.             yield "
  136.     </div>
  137. ";
  138.         }
  139.         // line 109
  140.         yield "
  141. <div id=\"applications-anchor\">
  142.     ";
  143.         // line 111
  144.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""unique-selling-point-brick-1", ["type" => "unique-selling-point-brick""params" => ["unique-selling-point-brick" => ["brickBackgroundColor" => "bg-blue-300""defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Toepassingen {{ productCategory }}", ["{{ productCategory }}" => ((CoreExtension::getAttribute($this->env$this->source,         // line 116
  145. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'116$this->source); })()), "name", [], "any"falsefalsetrue116)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'116$this->source); })()), "name", [], "any"falsefalsetrue116)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'116$this->source); })()), "key", [], "any"falsefalsetrue116)))])]]]);
  146.         // line 119
  147.         yield "
  148. </div>
  149. <div id=\"method-and-acccessoires-anchor\">
  150.     ";
  151.         // line 123
  152.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-2", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-usps""uspsActive" => true"brickBackgroundColor" => "bg-gray-200""defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Werking en accessoires {{ productCategory }}", ["{{ productCategory }}" => ((CoreExtension::getAttribute($this->env$this->source,         // line 130
  153. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'130$this->source); })()), "name", [], "any"falsefalsetrue130)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'130$this->source); })()), "name", [], "any"falsefalsetrue130)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'130$this->source); })()), "key", [], "any"falsefalsetrue130)))])]]]);
  154.         // line 133
  155.         yield "
  156. </div>
  157. ";
  158.         // line 136
  159.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""testimonial-brick-1", ["type" => "testimonial-brick"]);
  160.         // line 138
  161.         yield "
  162. ";
  163.         // line 140
  164.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""product-category-cards-brick-1", ["type" => "product-category-cards-brick""params" => ["product-category-cards-brick" => ["defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alternatieven voor {{ productCategory }}", ["{{ productCategory }}" => ((CoreExtension::getAttribute($this->env$this->source,         // line 144
  165. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'144$this->source); })()), "name", [], "any"falsefalsetrue144)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'144$this->source); })()), "name", [], "any"falsefalsetrue144)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'144$this->source); })()), "key", [], "any"falsefalsetrue144)))]), "brickBackgroundColor" => "bg-blue-200""defaultBackgroundColor" => "bg-blue-200"]]]);
  166.         // line 149
  167.         yield "
  168. ";
  169.         // line 151
  170.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-3", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-image"]]]);
  171.         // line 158
  172.         yield "
  173. <div id=\"usage-anchor\">
  174.     ";
  175.         // line 161
  176.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-4", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-image""whiteSpaceBottom" => false"defaultInverted" => true]]]);
  177.         // line 170
  178.         yield "
  179. </div>
  180. <div id=\"faq-anchor\">
  181.     ";
  182.         // line 174
  183.         yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'174$this->source); })()), "getProperty", ["faqSnippet"], "method"falsefalsetrue174), 174$this->source));
  184.         yield "
  185. </div>
  186. ";
  187.         
  188.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         yield from [];
  192.     }
  193.     /**
  194.      * @codeCoverageIgnore
  195.      */
  196.     public function getTemplateName(): string
  197.     {
  198.         return "product_category/layouts/_sub.html.twig";
  199.     }
  200.     /**
  201.      * @codeCoverageIgnore
  202.      */
  203.     public function isTraitable(): bool
  204.     {
  205.         return false;
  206.     }
  207.     /**
  208.      * @codeCoverageIgnore
  209.      */
  210.     public function getDebugInfo(): array
  211.     {
  212.         return array (  201 => 174,  195 => 170,  193 => 161,  188 => 158,  186 => 151,  182 => 149,  180 => 144,  179 => 140,  175 => 138,  173 => 136,  168 => 133,  166 => 130,  165 => 123,  159 => 119,  157 => 116,  156 => 111,  152 => 109,  147 => 106,  145 => 99,  141 => 97,  139 => 94,  138 => 92,  137 => 87,  134 => 86,  132 => 85,  129 => 84,  124 => 81,  122 => 78,  121 => 77,  120 => 73,  117 => 72,  115 => 71,  113 => 70,  109 => 68,  107 => 65,  106 => 60,  102 => 58,  100 => 52,  99 => 51,  98 => 50,  97 => 49,  96 => 48,  95 => 47,  94 => 42,  93 => 37,  90 => 36,  88 => 32,  85 => 31,  83 => 27,  80 => 26,  78 => 22,  75 => 21,  73 => 17,  70 => 16,  66 => 11,  64 => 10,  61 => 9,  57 => 4,  55 => 3,  52 => 2,  50 => 1,);
  213.     }
  214.     public function getSourceContext(): Source
  215.     {
  216.         return new Source("{% set breadcrumbs = [] %}
  217. {% if childCategoriesObjects is defined and childCategoriesObjects|length == 0 %}
  218.     {% set breadcrumbs = breadcrumbs | merge([{
  219.         \"title\": \"Producten\"|trans,
  220.         \"anchor\" :  \"table-anchor\"|trans
  221.     }]) %}
  222. {% endif %}
  223. {% if childCategoriesObjects is defined and childCategoriesObjects|length > 0 %}
  224.     {% set breadcrumbs = breadcrumbs | merge([{
  225.         'title':  \"Aanbod\"|trans,
  226.         'anchor' :  \"products-anchor\"|trans
  227.     }]) %}
  228. {% endif %}
  229. {% set breadcrumbs = breadcrumbs | merge([{
  230.     'title':  \"Toepassingen\"|trans,
  231.     'anchor' :  \"applications-anchor\"|trans
  232. }]) %}
  233. {% set breadcrumbs = breadcrumbs | merge([{
  234.     'title' :  \"Werking en accessoires\"|trans,
  235.     'anchor' :  \"method-and-acccessoires-anchor\"|trans
  236. }]) %}
  237. {% set breadcrumbs = breadcrumbs | merge([{
  238.     'title' :  \"Gebruik\"|trans,
  239.     'anchor' :  \"usage-anchor\"|trans
  240. }]) %}
  241. {% set breadcrumbs = breadcrumbs | merge([{
  242.     'title' :  \"Veelgestelde vragen\"|trans,
  243.     'anchor' :  \"faq-anchor\"|trans
  244. }]) %}
  245. {{ pimcore_area('content-brick-1', {
  246.     'type':'content-brick',
  247.     'params':{
  248.         'content-brick': {
  249.             'containerClasses': 'md:py-20',
  250.             'productCategory': productCategory,
  251.             'forceH1' : true,
  252.             'defaultLayout': 'text-gallery',
  253.             'defaultBackgroundColor':'bg-white',
  254.             'defaultInverted': true,
  255.             'defaultTitle' : productCategory.title ?? page.title,
  256.             'defaultHeadline' : productCategory.subtitle ?? null,
  257.             'defaultWysiwyg' : productCategory.desc ?? page.description,
  258.             'defaultGalleryItems' : productCategory.mediaGalleryItems is defined and (productCategory.mediaGalleryItems|length) > 1 ? (productCategory.mediaGalleryItems | slice(1, 4)) : null,
  259.             'defaultSecondaryLink' : childCategoriesObjects is defined and childCategoriesObjects|length == 0 ? {
  260.                 'title': 'Bekijk de {{ productCategory }}' | trans({ '{{ productCategory }}': (productCategory.name ?? page.title) }),
  261.                 'link': \"#table-anchor\",
  262.                 'target': \"\",
  263.             } : false
  264.         }
  265.     }
  266. }) }}
  267. {{ pimcore_area('features', {
  268.     'type':'features-brick',
  269.     'params':{
  270.         'features-brick': {
  271.             'brickBackgroundColor': 'bg-white',
  272.             'productCategory': productCategory
  273.         }
  274.     }
  275. }) }}
  276. {% if childCategoriesObjects is defined and childCategoriesObjects|length == 0 %}
  277.     {# See params above in content-brick-1 -> params -> defaultSecondaryLink -> link = #table-anchor, also breadcrumbs #}
  278.     <div id=\"table-anchor\">
  279.         {{ pimcore_area('product-table-brick-1',{
  280.             'type':'product-table-brick',
  281.             'params': {
  282.                 'product-table-brick': {
  283.                     'defaultTitle': ('{{ productCategory }} huren') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  284.                     'productCategory': productCategory
  285.                 }
  286.             }
  287.         }) }}
  288.     </div>
  289. {% endif %}
  290. {% if childCategoriesObjects is defined and childCategoriesObjects|length > 0 %}
  291.     <div id=\"products-anchor\">
  292.         {{ pimcore_area('product-category-cards-brick', {
  293.             type: 'product-category-cards-brick',
  294.             params: {
  295.                 'product-category-cards-brick': {
  296.                     showTitle: true,
  297.                     defaultTitle: ('Aanbod {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?? page.title) }),
  298.                     fourColumns: false,
  299.                     productCategories: childCategoriesObjects
  300.                 }
  301.             }
  302.         }) }}
  303.         {{ pimcore_area('text-and-links-brick-1', {
  304.             'type':'text-and-links-brick',
  305.             'params':{
  306.                 'text-and-links-brick': {
  307.                     style: 'normal',
  308.                 }
  309.             }
  310.         }) }}
  311.     </div>
  312. {% endif %}
  313. <div id=\"applications-anchor\">
  314.     {{ pimcore_area('unique-selling-point-brick-1', {
  315.         'type':'unique-selling-point-brick',
  316.         'params': {
  317.             'unique-selling-point-brick': {
  318.                 'brickBackgroundColor' : 'bg-blue-300',
  319.                 'defaultTitle': ('Toepassingen {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  320.             }
  321.         }
  322.     }) }}
  323. </div>
  324. <div id=\"method-and-acccessoires-anchor\">
  325.     {{ pimcore_area('content-brick-2', {
  326.         'type':'content-brick',
  327.         'params': {
  328.             'content-brick': {
  329.                 'layout': 'text-usps',
  330.                 'uspsActive' : true,
  331.                 'brickBackgroundColor': 'bg-gray-200',
  332.                 'defaultTitle': ('Werking en accessoires {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  333.             }
  334.         }
  335.     }) }}
  336. </div>
  337. {{ pimcore_area(\"testimonial-brick-1\", {
  338.     'type' : \"testimonial-brick\" })
  339. }}
  340. {{ pimcore_area('product-category-cards-brick-1', {
  341.     'type':'product-category-cards-brick',
  342.     'params':{
  343.         'product-category-cards-brick': {
  344.             'defaultTitle': ('Alternatieven voor {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  345.             'brickBackgroundColor' : 'bg-blue-200',
  346.             'defaultBackgroundColor' : 'bg-blue-200',
  347.         }
  348.     }
  349. }) }}
  350. {{ pimcore_area('content-brick-3', {
  351.     'type':'content-brick',
  352.     'params':{
  353.         'content-brick': {
  354.             'layout': 'text-image',
  355.         }
  356.     }
  357. }) }}
  358. <div id=\"usage-anchor\">
  359.     {{ pimcore_area('content-brick-4', {
  360.         'type':'content-brick',
  361.         'params':{
  362.             'content-brick': {
  363.                 'layout': 'text-image',
  364.                 'whiteSpaceBottom': false,
  365.                 'defaultInverted': true,
  366.             }
  367.         }
  368.     }) }}
  369. </div>
  370. <div id=\"faq-anchor\">
  371.     {{ pimcore_inc(document.getProperty('faqSnippet')) }}
  372. </div>
  373. ""product_category/layouts/_sub.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/product_category/layouts/_sub.html.twig");
  374.     }
  375.     
  376.     public function checkSecurity()
  377.     {
  378.         static $tags = ["set" => 1"if" => 3];
  379.         static $filters = ["length" => 3"merge" => 4"trans" => 5"slice" => 50];
  380.         static $functions = ["pimcore_area" => 37"pimcore_inc" => 174];
  381.         try {
  382.             $this->sandbox->checkSecurity(
  383.                 ['set''if'],
  384.                 ['length''merge''trans''slice'],
  385.                 ['pimcore_area''pimcore_inc'],
  386.                 $this->source
  387.             );
  388.         } catch (SecurityError $e) {
  389.             $e->setSourceContext($this->source);
  390.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  391.                 $e->setTemplateLine($tags[$e->getTagName()]);
  392.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  393.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  394.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  395.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  396.             }
  397.             throw $e;
  398.         }
  399.     }
  400. }