<?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/archive.html.twig */
class __TwigTemplate_9c62e799a528b4a92284e83638770ca7e8a7b66cad6833a6b2f943b6fba12a41 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->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 9
return "app/layout.html.twig";
}
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/archive.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/archive.html.twig"));
$this->parent = $this->loadTemplate("app/layout.html.twig", "product_category/archive.html.twig", 9);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 11
yield "
";
// line 12
yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig", "product_category/archive.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["hideOnMobile" => true]));
// line 13
yield "
<div class=\"bg-blue-200\">
<div class=\"container\">
";
// line 16
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })())) {
// line 17
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "selectedProductCategories", ["types" => ["object"], "classes" => ["ProductCategory"], "reload" => true]);
// line 21
yield "
";
}
// line 23
yield "
";
// line 24
$context["navigation"] = [];
// line 25
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "selectedProductCategories"), "getElements", [], "method", false, false, true, 25));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 26
yield "
";
// line 27
$context["tabContent"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 28
yield " <div>
<div class=\"lg:flex lg:items-center lg:justify-between\">
<h1 class=\"mb-6 text-3xl md:text-4xl\">";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 30), 30, $this->source), "html", null, true);
yield "</h1>
<div class=\"hidden lg:inline-block mb-7\">
<a href=\"";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 32), "url", [], "any", true, true, true, 32) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 32), "url", [], "any", false, false, true, 32)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 32), "url", [], "any", false, false, true, 32)) : (null))), "html", null, true);
yield "\" class=\"!p-0 button button__secondary group\">
<span>";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alles"), "html", null, true);
yield "</span>
<span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
<svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
</svg>
</span>
</a>
</div>
</div>
<div class=\"text-lg\">
";
// line 44
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "desc", [], "any", false, false, true, 44), 44, $this->source);
yield "
</div>
";
// line 47
$context["childCategories"] = Twig\Extension\CoreExtension::filter($this->env, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "getChildren", [], "method", false, false, true, 47), 47, $this->source), function ($__c__) use ($context, $macros) { $context["c"] = $__c__; return $this->env->getTest('instanceof')->getCallable()((isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 47, $this->source); })()), "\\App\\Model\\ProductCategory"); });
// line 48
yield " ";
$context["childProducts"] = Twig\Extension\CoreExtension::filter($this->env, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "getChildren", [], "method", false, false, true, 48), 48, $this->source), function ($__c__) use ($context, $macros) { $context["c"] = $__c__; return $this->env->getTest('instanceof')->getCallable()((isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 48, $this->source); })()), "\\App\\Model\\Product"); });
// line 49
yield "
";
// line 50
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", (("product-category-" . $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, true, 50), 50, $this->source)) . "-cards"), ["type" => "product-category-cards-brick", "params" => ["product-category-cards-brick" => ["sectionClasses" => "", "brickBackgroundColor" => "", "containerClasses" => "pt-8", "showTitle" => false, "fourColumns" => false, "productCategories" => $this->sandbox->ensureToStringAllowed( // line 59
(isset($context["childCategories"]) || array_key_exists("childCategories", $context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.', 59, $this->source); })()), 59, $this->source), "sliderClass" => "overview-slider"]]]);
// line 63
yield "
<div class=\"mt-7 lg:hidden\">
<a href=\"";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 65), "url", [], "any", true, true, true, 65) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 65), "url", [], "any", false, false, true, 65)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "page", [], "any", false, true, true, 65), "url", [], "any", false, false, true, 65)) : (null))), "html", null, true);
yield "\" class=\"!p-0 button button__secondary button--align-left group\">
<span>";
// line 66
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alles"), "html", null, true);
yield "</span>
<span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
<svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
</svg>
</span>
</a>
</div>
</div>
";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 76
yield "
";
// line 77
$context["tab"] = ["icon" => CoreExtension::getAttribute($this->env, $this->source, // line 78
$context["item"], "icon", [], "any", false, false, true, 78), "title" => ((CoreExtension::getAttribute($this->env, $this->source, // line 79
$context["item"], "name", [], "any", false, false, true, 79)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, true, 79)) : (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "key", [], "any", false, false, true, 79))), "content" => // line 80
(isset($context["tabContent"]) || array_key_exists("tabContent", $context) ? $context["tabContent"] : (function () { throw new RuntimeError('Variable "tabContent" does not exist.', 80, $this->source); })())];
// line 82
yield "
";
// line 83
$context["navigation"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["navigation"]) || array_key_exists("navigation", $context) ? $context["navigation"] : (function () { throw new RuntimeError('Variable "navigation" does not exist.', 83, $this->source); })()), 83, $this->source), [$this->sandbox->ensureToStringAllowed((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 83, $this->source); })()), 83, $this->source)]);
// line 84
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 85
yield "
";
// line 86
yield from $this->loadTemplate("app/partials/navigation/_sub-navigation.html.twig", "product_category/archive.html.twig", 86)->unwrap()->yield(CoreExtension::merge($context, ["name" => "product-category-archive", "tabs" => // line 88
(isset($context["navigation"]) || array_key_exists("navigation", $context) ? $context["navigation"] : (function () { throw new RuntimeError('Variable "navigation" does not exist.', 88, $this->source); })()), "tabParentPadding" => "", "tabListPadding" => "pt-10 lg:pt-20", "tabsPadding" => "", "tabPadding" => "py-14 lg:py-20 block"]));
// line 94
yield " </div>
</div>
";
// line 97
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "text-image", ["type" => "content-brick"]);
// line 99
yield "
";
// line 101
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.', 101, $this->source); })()), "getProperty", ["faqSnippet"], "method", false, false, true, 101), 101, $this->source));
yield "
";
// line 103
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "contact-side-widget", ["type" => "contact-side-widget-brick"]);
// line 105
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "product_category/archive.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 221 => 105, 219 => 103, 214 => 101, 210 => 99, 208 => 97, 203 => 94, 201 => 88, 200 => 86, 197 => 85, 191 => 84, 189 => 83, 186 => 82, 184 => 80, 183 => 79, 182 => 78, 181 => 77, 178 => 76, 164 => 66, 160 => 65, 156 => 63, 154 => 59, 153 => 50, 150 => 49, 147 => 48, 145 => 47, 139 => 44, 125 => 33, 121 => 32, 116 => 30, 112 => 28, 110 => 27, 107 => 26, 102 => 25, 100 => 24, 97 => 23, 93 => 21, 90 => 17, 88 => 16, 83 => 13, 81 => 12, 78 => 11, 65 => 10, 42 => 9,);
}
public function getSourceContext(): Source
{
return new Source("{#
use App\\Document\\Areabrick\\Abstracts\\AbstractAreabrick;
Product Categorie Archief Pagina
Toont een overzicht van alle geselecteerde product categorie-pagina's.
Elke geselecteerde categoriepagina dient een koppeling te hebben met een productCategory object, heeft deze pagina dit niet, dan wordt de pagina niet getoond.
#}
{% extends 'app/layout.html.twig' %}
{% block content %}
{% include \"app/partials/navigation/_breadcrumbs.html.twig\" with {'hideOnMobile': true } %}
<div class=\"bg-blue-200\">
<div class=\"container\">
{% if editmode %}
{{ pimcore_relations('selectedProductCategories', {
types: ['object'],
classes: ['ProductCategory'],
reload: true
}) }}
{% endif %}
{% set navigation = [] %}
{% for item in pimcore_relations('selectedProductCategories').getElements() %}
{% set tabContent %}
<div>
<div class=\"lg:flex lg:items-center lg:justify-between\">
<h1 class=\"mb-6 text-3xl md:text-4xl\">{{ item.title }}</h1>
<div class=\"hidden lg:inline-block mb-7\">
<a href=\"{{ (item.page.url ?? null) | trimUrl }}\" class=\"!p-0 button button__secondary group\">
<span>{{ 'Bekijk alles' | trans }}</span>
<span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
<svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
</svg>
</span>
</a>
</div>
</div>
<div class=\"text-lg\">
{{ item.desc | raw }}
</div>
{% set childCategories = item.getChildren() | filter(c => c is instanceof(\"\\\\App\\\\Model\\\\ProductCategory\")) %}
{% set childProducts = item.getChildren() | filter(c => c is instanceof(\"\\\\App\\\\Model\\\\Product\")) %}
{{ pimcore_area('product-category-'~item.id~'-cards', {
type: 'product-category-cards-brick',
params: {
'product-category-cards-brick': {
sectionClasses: '',
brickBackgroundColor: '',
containerClasses: 'pt-8',
showTitle: false,
fourColumns: false,
productCategories: childCategories,
sliderClass: 'overview-slider'
}
}
}) }}
<div class=\"mt-7 lg:hidden\">
<a href=\"{{ (item.page.url ?? null) | trimUrl }}\" class=\"!p-0 button button__secondary button--align-left group\">
<span>{{ 'Bekijk alles' | trans }}</span>
<span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
<svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
</svg>
</span>
</a>
</div>
</div>
{% endset %}
{% set tab = {
'icon': item.icon,
'title': item.name ?: item.key,
'content': tabContent
} %}
{% set navigation = navigation|merge([tab]) %}
{% endfor %}
{% include 'app/partials/navigation/_sub-navigation.html.twig' with {
name: 'product-category-archive',
tabs: navigation,
tabParentPadding: '',
tabListPadding: 'pt-10 lg:pt-20',
tabsPadding: '',
tabPadding: 'py-14 lg:py-20 block',
} %}
</div>
</div>
{{ pimcore_area('text-image', {
type: 'content-brick'
}) }}
{{ pimcore_inc(document.getProperty('faqSnippet')) }}
{{ pimcore_area('contact-side-widget', {
type: 'contact-side-widget-brick'
}) }}
{% endblock %}
", "product_category/archive.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/product_category/archive.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 9, "include" => 12, "if" => 16, "set" => 24, "for" => 25];
static $filters = ["escape" => 30, "trimUrl" => 32, "trans" => 33, "raw" => 44, "filter" => 47, "merge" => 83];
static $functions = ["pimcore_relations" => 17, "pimcore_area" => 50, "pimcore_inc" => 101];
try {
$this->sandbox->checkSecurity(
['extends', 'include', 'if', 'set', 'for'],
['escape', 'trimUrl', 'trans', 'raw', 'filter', 'merge'],
['pimcore_relations', '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;
}
}
}