<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* product_category/layouts/_main.html.twig */
class __TwigTemplate_0c0e4f1764450448fc690e31aba1404f42183832c9e1faad0fe4460a754789b4 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product_category/layouts/_main.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product_category/layouts/_main.html.twig"));
// line 1
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
(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
($context["productCategory"] ?? null), "title", [], "any", true, true, true, 11) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "title", [], "any", false, false, true, 11)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "title", [], "any", false, false, true, 11)) : (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", false, false, true, 11))), "defaultHeadline" => (((CoreExtension::getAttribute($this->env, $this->source, // line 12
($context["productCategory"] ?? null), "subtitle", [], "any", true, true, true, 12) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "subtitle", [], "any", false, false, true, 12)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "subtitle", [], "any", false, false, true, 12)) : (null)), "defaultWysiwyg" => (((CoreExtension::getAttribute($this->env, $this->source, // line 13
($context["productCategory"] ?? null), "desc", [], "any", true, true, true, 13) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "desc", [], "any", false, false, true, 13)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "desc", [], "any", false, false, true, 13)) : (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", false, false, true, 13))), "defaultGalleryItems" => (((CoreExtension::getAttribute($this->env, $this->source, // line 14
($context["productCategory"] ?? null), "mediaGalleryItems", [], "any", true, true, true, 14) && (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", false, false, true, 14), 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", false, false, true, 14), 14, $this->source), 1, 4)) : (null)), "defaultSecondaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk de {{ productCategory }}", ["{{ productCategory }}" => (((CoreExtension::getAttribute($this->env, $this->source, // line 16
($context["productCategory"] ?? null), "name", [], "any", true, true, true, 16) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "name", [], "any", false, false, true, 16)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "name", [], "any", false, false, true, 16)) : (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", false, false, true, 16)))]), "link" => "#products-anchor", "target" => ""]]]]);
// line 22
yield "
";
// line 24
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
(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)]]]);
// line 32
yield "
<div id=\"products-anchor\">
";
// line 35
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
($context["productCategory"] ?? null), "name", [], "any", true, true, true, 42) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "name", [], "any", false, false, true, 42)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["productCategory"] ?? null), "name", [], "any", false, false, true, 42)) : (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", false, false, true, 42)))]), "fourColumns" => true, "productCategories" => $this->sandbox->ensureToStringAllowed( // line 44
(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)]]]);
// line 47
yield "
</div>
";
// line 50
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"]]]);
// line 58
yield "
";
// line 60
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]]]);
// line 69
yield "
<div id=\"applications-anchor\">
";
// line 72
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
(isset($context["productCategory"]) || array_key_exists("productCategory", $context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.', 77, $this->source); })()), "name", [], "any", false, false, true, 77)) ? (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", false, false, true, 77)) : (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", false, false, true, 77)))])]]]);
// line 80
yield "
</div>
";
// line 83
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", false, false, true, 83), 83, $this->source));
yield "
";
// line 84
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", false, false, true, 84), 84, $this->source));
yield "
<div id=\"projects-anchor\">
";
// line 87
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
(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
(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)]]]);
// line 97
yield "
</div>
";
// line 100
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"]]]);
// line 109
yield "
";
// line 111
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]]]);
// line 119
yield "
<div id=\"faq-anchor\">
";
// line 122
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", false, false, true, 122), 122, $this->source));
yield "
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "product_category/layouts/_main.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{{ pimcore_area('content-brick-1', {
'type':'content-brick',
'params':{
'content-brick': {
'containerClasses': 'md:py-20',
'productCategory': productCategory,
'forceH1' : true,
'defaultLayout': 'text-gallery',
'defaultBackgroundColor':'bg-white',
'defaultInverted': true,
'defaultTitle' : productCategory.title ?? page.title,
'defaultHeadline' : productCategory.subtitle ?? null,
'defaultWysiwyg' : productCategory.desc ?? page.description,
'defaultGalleryItems' : productCategory.mediaGalleryItems is defined and (productCategory.mediaGalleryItems|length) > 1 ? (productCategory.mediaGalleryItems | slice(1, 4)) : null,
'defaultSecondaryLink' : {
'title': 'Bekijk de {{ productCategory }}' | trans({ '{{ productCategory }}': (productCategory.name ?? page.title) }),
'link': \"#products-anchor\",
'target': \"\",
}
}
}
}) }}
{{ pimcore_area('features', {
'type':'features-brick',
'params':{
'features-brick': {
'brickBackgroundColor': 'bg-white',
'productCategory': productCategory
}
}
}) }}
<div id=\"products-anchor\">
{{ pimcore_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: ('Aanbod {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?? page.title) }),
fourColumns: true,
productCategories: childCategoriesObjects
}
}
}) }}
</div>
{{ pimcore_area('text-and-links-brick-1', {
'type':'text-and-links-brick',
'params':{
'text-and-links-brick': {
brickBackgroundColor: 'bg-blue-200',
style: 'normal',
}
}
}) }}
{{ pimcore_area('content-brick-2', {
'type':'content-brick',
'params': {
'content-brick': {
'layout': 'text-image',
'brickBackgroundColor': 'bg-white',
'defaultInverted': true,
}
}
}) }}
<div id=\"applications-anchor\">
{{ pimcore_area('unique-selling-point-brick-1', {
'type':'unique-selling-point-brick',
'params': {
'unique-selling-point-brick': {
'brickBackgroundColor' : 'bg-blue-300',
'defaultTitle': ('Toepassingen {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
}
}
}) }}
</div>
{{ pimcore_inc(document.getProperty('whyChooseCoolworldSnippet')) }}
{{ pimcore_inc(document.getProperty('certificateSnippet')) }}
<div id=\"projects-anchor\">
{{ pimcore_area('projects-by-product-category-brick-1', {
'type':'projects-by-product-category-brick',
'params': {
'projects-by-product-category-brick': {
'pages': pages,
'defaultBackgroundColor' : 'bg-white',
'defaultTitle': \"Gerelateerde projecten\"|trans,
productCategory: productCategory
}
}
}) }}
</div>
{{ pimcore_area('content-brick-3', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-image',
'defaultInverted': true,
'brickBackgroundColor':'bg-gray-200',
}
}
}) }}
{{ pimcore_area('content-brick-4', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-below-text',
'whiteSpaceBottom': false,
}
}
}) }}
<div id=\"faq-anchor\">
{{ pimcore_inc(document.getProperty('faqSnippet')) }}
</div>
", "product_category/layouts/_main.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/product_category/layouts/_main.html.twig");
}
public function checkSecurity()
{
static $tags = [];
static $filters = ["length" => 14, "slice" => 14, "trans" => 16];
static $functions = ["pimcore_area" => 1, "pimcore_inc" => 83];
try {
$this->sandbox->checkSecurity(
[],
['length', 'slice', 'trans'],
['pimcore_area', 'pimcore_inc'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}