var/cache/dev/twig/20/2032774698add3f9e30dbea4693e869f7bbed2351612608314887489a50de4fe.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/_main.html.twig */
  16. class __TwigTemplate_0c0e4f1764450448fc690e31aba1404f42183832c9e1faad0fe4460a754789b4 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/_main.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/_main.html.twig"));
  40.         // line 1
  41.         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 6
  42. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'6$this->source); })()), 6$this->source), "forceH1" => true"defaultLayout" => "text-gallery""defaultBackgroundColor" => "bg-white""defaultInverted" => true"defaultTitle" => (((CoreExtension::getAttribute($this->env$this->source,         // line 11
  43. ($context["productCategory"] ?? null), "title", [], "any"truetruetrue11) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "title", [], "any"falsefalsetrue11)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "title", [], "any"falsefalsetrue11)) : (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.'11$this->source); })()), "title", [], "any"falsefalsetrue11))), "defaultHeadline" => (((CoreExtension::getAttribute($this->env$this->source,         // line 12
  44. ($context["productCategory"] ?? null), "subtitle", [], "any"truetruetrue12) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "subtitle", [], "any"falsefalsetrue12)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "subtitle", [], "any"falsefalsetrue12)) : (null)), "defaultWysiwyg" => (((CoreExtension::getAttribute($this->env$this->source,         // line 13
  45. ($context["productCategory"] ?? null), "desc", [], "any"truetruetrue13) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "desc", [], "any"falsefalsetrue13)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "desc", [], "any"falsefalsetrue13)) : (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.'13$this->source); })()), "description", [], "any"falsefalsetrue13))), "defaultGalleryItems" => (((CoreExtension::getAttribute($this->env$this->source,         // line 14
  46. ($context["productCategory"] ?? null), "mediaGalleryItems", [], "any"truetruetrue14) && (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.'14$this->source); })()), "mediaGalleryItems", [], "any"falsefalsetrue14), 14$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.'14$this->source); })()), "mediaGalleryItems", [], "any"falsefalsetrue14), 14$this->source), 14)) : (null)), "defaultSecondaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk de {{ productCategory }}", ["{{ productCategory }}" => (((CoreExtension::getAttribute($this->env$this->source,         // line 16
  47. ($context["productCategory"] ?? null), "name", [], "any"truetruetrue16) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue16)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue16)) : (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.'16$this->source); })()), "title", [], "any"falsefalsetrue16)))]), "link" => "#products-anchor""target" => ""]]]]);
  48.         // line 22
  49.         yield "
  50. ";
  51.         // line 24
  52.         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 29
  53. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'29$this->source); })()), 29$this->source)]]]);
  54.         // line 32
  55.         yield "
  56. <div id=\"products-anchor\">
  57.     ";
  58.         // line 35
  59.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""product-category-cards-brick", ["type" => "product-category-cards-brick""params" => ["product-category-cards-brick" => ["backgroundColor" => """containerClasses" => "container py-10 md:py-20""showTitle" => true"defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aanbod {{ productCategory }}", ["{{ productCategory }}" => (((CoreExtension::getAttribute($this->env$this->source,         // line 42
  60. ($context["productCategory"] ?? null), "name", [], "any"truetruetrue42) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue42)))) ? (CoreExtension::getAttribute($this->env$this->source, ($context["productCategory"] ?? null), "name", [], "any"falsefalsetrue42)) : (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.'42$this->source); })()), "title", [], "any"falsefalsetrue42)))]), "fourColumns" => true"productCategories" => $this->sandbox->ensureToStringAllowed(        // line 44
  61. (isset($context["childCategoriesObjects"]) || array_key_exists("childCategoriesObjects"$context) ? $context["childCategoriesObjects"] : (function () { throw new RuntimeError('Variable "childCategoriesObjects" does not exist.'44$this->source); })()), 44$this->source)]]]);
  62.         // line 47
  63.         yield "
  64. </div>
  65. ";
  66.         // line 50
  67.         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" => ["brickBackgroundColor" => "bg-blue-200""style" => "normal"]]]);
  68.         // line 58
  69.         yield "
  70. ";
  71.         // line 60
  72.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-2", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-image""brickBackgroundColor" => "bg-white""defaultInverted" => true]]]);
  73.         // line 69
  74.         yield "
  75. <div id=\"applications-anchor\">
  76.     ";
  77.         // line 72
  78.         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 77
  79. (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)))])]]]);
  80.         // line 80
  81.         yield "
  82. </div>
  83. ";
  84.         // line 83
  85.         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.'83$this->source); })()), "getProperty", ["whyChooseCoolworldSnippet"], "method"falsefalsetrue83), 83$this->source));
  86.         yield "
  87. ";
  88.         // line 84
  89.         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.'84$this->source); })()), "getProperty", ["certificateSnippet"], "method"falsefalsetrue84), 84$this->source));
  90.         yield "
  91. <div id=\"projects-anchor\">
  92.     ";
  93.         // line 87
  94.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""projects-by-product-category-brick-1", ["type" => "projects-by-product-category-brick""params" => ["projects-by-product-category-brick" => ["pages" => $this->sandbox->ensureToStringAllowed(        // line 91
  95. (isset($context["pages"]) || array_key_exists("pages"$context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.'91$this->source); })()), 91$this->source), "defaultBackgroundColor" => "bg-white""defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Gerelateerde projecten"), "productCategory" => $this->sandbox->ensureToStringAllowed(        // line 94
  96. (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'94$this->source); })()), 94$this->source)]]]);
  97.         // line 97
  98.         yield "
  99. </div>
  100. ";
  101.         // line 100
  102.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-3", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-image""defaultInverted" => true"brickBackgroundColor" => "bg-gray-200"]]]);
  103.         // line 109
  104.         yield "
  105. ";
  106.         // line 111
  107.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-4", ["type" => "content-brick""params" => ["content-brick" => ["layout" => "text-below-text""whiteSpaceBottom" => false]]]);
  108.         // line 119
  109.         yield "
  110. <div id=\"faq-anchor\">
  111.     ";
  112.         // line 122
  113.         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.'122$this->source); })()), "getProperty", ["faqSnippet"], "method"falsefalsetrue122), 122$this->source));
  114.         yield "
  115. </div>
  116. ";
  117.         
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119.         
  120.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  121.         yield from [];
  122.     }
  123.     /**
  124.      * @codeCoverageIgnore
  125.      */
  126.     public function getTemplateName(): string
  127.     {
  128.         return "product_category/layouts/_main.html.twig";
  129.     }
  130.     /**
  131.      * @codeCoverageIgnore
  132.      */
  133.     public function isTraitable(): bool
  134.     {
  135.         return false;
  136.     }
  137.     /**
  138.      * @codeCoverageIgnore
  139.      */
  140.     public function getDebugInfo(): array
  141.     {
  142.         return array (  132 => 122,  127 => 119,  125 => 111,  121 => 109,  119 => 100,  114 => 97,  112 => 94,  111 => 91,  110 => 87,  104 => 84,  100 => 83,  95 => 80,  93 => 77,  92 => 72,  87 => 69,  85 => 60,  81 => 58,  79 => 50,  74 => 47,  72 => 44,  71 => 42,  70 => 35,  65 => 32,  63 => 29,  62 => 24,  58 => 22,  56 => 16,  55 => 14,  54 => 13,  53 => 12,  52 => 11,  51 => 6,  50 => 1,);
  143.     }
  144.     public function getSourceContext(): Source
  145.     {
  146.         return new Source("{{ pimcore_area('content-brick-1', {
  147.     'type':'content-brick',
  148.     'params':{
  149.         'content-brick': {
  150.             'containerClasses': 'md:py-20',
  151.             'productCategory': productCategory,
  152.             'forceH1' : true,
  153.             'defaultLayout': 'text-gallery',
  154.             'defaultBackgroundColor':'bg-white',
  155.             'defaultInverted': true,
  156.             'defaultTitle' : productCategory.title ?? page.title,
  157.             'defaultHeadline' : productCategory.subtitle ?? null,
  158.             'defaultWysiwyg' : productCategory.desc ?? page.description,
  159.             'defaultGalleryItems' : productCategory.mediaGalleryItems is defined and (productCategory.mediaGalleryItems|length) > 1 ? (productCategory.mediaGalleryItems | slice(1, 4)) : null,
  160.             'defaultSecondaryLink' : {
  161.                 'title': 'Bekijk de {{ productCategory }}' | trans({ '{{ productCategory }}': (productCategory.name ?? page.title) }),
  162.                 'link': \"#products-anchor\",
  163.                 'target': \"\",
  164.             }
  165.         }
  166.     }
  167. }) }}
  168. {{ pimcore_area('features', {
  169.     'type':'features-brick',
  170.     'params':{
  171.         'features-brick': {
  172.             'brickBackgroundColor': 'bg-white',
  173.             'productCategory': productCategory
  174.         }
  175.     }
  176. }) }}
  177. <div id=\"products-anchor\">
  178.     {{ pimcore_area('product-category-cards-brick', {
  179.         type: 'product-category-cards-brick',
  180.         params: {
  181.             'product-category-cards-brick': {
  182.                 backgroundColor: '',
  183.                 containerClasses: 'container py-10 md:py-20',
  184.                 showTitle: true,
  185.                 defaultTitle: ('Aanbod {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?? page.title) }),
  186.                 fourColumns: true,
  187.                 productCategories: childCategoriesObjects
  188.             }
  189.         }
  190.     }) }}
  191. </div>
  192. {{ pimcore_area('text-and-links-brick-1', {
  193.     'type':'text-and-links-brick',
  194.     'params':{
  195.         'text-and-links-brick': {
  196.             brickBackgroundColor: 'bg-blue-200',
  197.             style: 'normal',
  198.         }
  199.     }
  200. }) }}
  201. {{ pimcore_area('content-brick-2', {
  202.     'type':'content-brick',
  203.     'params': {
  204.         'content-brick': {
  205.             'layout': 'text-image',
  206.             'brickBackgroundColor': 'bg-white',
  207.             'defaultInverted': true,
  208.         }
  209.     }
  210. }) }}
  211. <div id=\"applications-anchor\">
  212.     {{ pimcore_area('unique-selling-point-brick-1', {
  213.         'type':'unique-selling-point-brick',
  214.         'params': {
  215.             'unique-selling-point-brick': {
  216.                 'brickBackgroundColor' : 'bg-blue-300',
  217.                 'defaultTitle': ('Toepassingen {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  218.             }
  219.         }
  220.     }) }}
  221. </div>
  222. {{ pimcore_inc(document.getProperty('whyChooseCoolworldSnippet')) }}
  223. {{ pimcore_inc(document.getProperty('certificateSnippet')) }}
  224. <div id=\"projects-anchor\">
  225.     {{ pimcore_area('projects-by-product-category-brick-1', {
  226.         'type':'projects-by-product-category-brick',
  227.         'params': {
  228.             'projects-by-product-category-brick': {
  229.                 'pages': pages,
  230.                 'defaultBackgroundColor' : 'bg-white',
  231.                 'defaultTitle': \"Gerelateerde projecten\"|trans,
  232.                 productCategory: productCategory
  233.             }
  234.         }
  235.     }) }}
  236. </div>
  237. {{ pimcore_area('content-brick-3', {
  238.     'type':'content-brick',
  239.     'params':{
  240.         'content-brick': {
  241.             'layout': 'text-image',
  242.             'defaultInverted': true,
  243.             'brickBackgroundColor':'bg-gray-200',
  244.         }
  245.     }
  246. }) }}
  247. {{ pimcore_area('content-brick-4', {
  248.     'type':'content-brick',
  249.     'params':{
  250.         'content-brick': {
  251.             'layout': 'text-below-text',
  252.             'whiteSpaceBottom': false,
  253.         }
  254.     }
  255. }) }}
  256. <div id=\"faq-anchor\">
  257.     {{ pimcore_inc(document.getProperty('faqSnippet')) }}
  258. </div>
  259. ""product_category/layouts/_main.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/product_category/layouts/_main.html.twig");
  260.     }
  261.     
  262.     public function checkSecurity()
  263.     {
  264.         static $tags = [];
  265.         static $filters = ["length" => 14"slice" => 14"trans" => 16];
  266.         static $functions = ["pimcore_area" => 1"pimcore_inc" => 83];
  267.         try {
  268.             $this->sandbox->checkSecurity(
  269.                 [],
  270.                 ['length''slice''trans'],
  271.                 ['pimcore_area''pimcore_inc'],
  272.                 $this->source
  273.             );
  274.         } catch (SecurityError $e) {
  275.             $e->setSourceContext($this->source);
  276.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  277.                 $e->setTemplateLine($tags[$e->getTagName()]);
  278.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  279.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  280.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  281.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  282.             }
  283.             throw $e;
  284.         }
  285.     }
  286. }