<?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;
/* areas/footer-brick/partials/_column_product_categories.html.twig */
class __TwigTemplate_e3ed414b1fe33c8768b72a65003ecdc6dd4d0c7d4022229138b058534bbbda56 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", "areas/footer-brick/partials/_column_product_categories.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/footer-brick/partials/_column_product_categories.html.twig"));
// line 1
yield "<div class=\"px-5 pb-4 -mx-5 border-b border-white md:pb-6 sm:mx-0 sm:px-0 border-opacity-10 sm:border-none sm:pb-0\"
x-data=\"{ open: false }\"
>
<div class=\"flex items-center justify-between cursor-pointer sm:mb-6 sm:cursor-none\"
@click=\"open = !open\"
:class=\"{ 'mb-6' : open }\"
>
<h4 class=\"text-lg md:text-2xl\">";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Onze oplossingen"), "html", null, true);
yield "</h4>
<span
class=\"flex items-center justify-center w-5 h-3 transition-all duration-300 sm:hidden shrink-0\"
:class=\"{ 'rotate-180' : open }\"
>
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
<path fill=\"#8A8D94\" fill-rule=\"evenodd\"
d=\"m.389 2.36 6.73 6.963c.24.25.576.39.926.39.35 0 .685-.14.925-.39l6.732-6.963a1.206 1.206 0 0 0-.067-1.749l-.113-.09a1.297 1.297 0 0 0-1.67.154l-5.807 6.01L2.239.677A1.295 1.295 0 0 0 .456.612 1.204 1.204 0 0 0 .39 2.36H.389Z\"/>
</svg>
</span>
</div>
<div class=\"block overflow-hidden max-h-0 sm:max-h-max\"
:style=\"open ? `max-height: 100%` : ``\"
>
";
// line 22
if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "product-categories"))) {
// line 23
yield " <ul>
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "product-categories"));
foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
// line 25
yield " <li>
";
// line 26
if ((CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", true, true, true, 26) && CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, false, true, 26))) {
// line 27
yield " <a href=\"";
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["productCategory"], "page", [], "any", false, true, true, 27), "url", [], "any", true, true, true, 27) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, true, true, 27), "url", [], "any", false, false, true, 27)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, true, true, 27), "url", [], "any", false, false, true, 27)) : (null))), "html", null, true);
yield "\" class=\"flex items-center mr-3 hover:text-blue\">
";
// line 28
if (CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "icon", [], "any", false, false, true, 28)) {
// line 29
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "icon", [], "any", false, false, true, 29), "thumbnail", ["default"], "method", false, false, true, 29), "html", [["pictureAttributes" => ["class" => "inline w-6 h-6 mr-3"]]], "method", false, false, true, 29), 29, $this->source);
// line 33
yield "
";
}
// line 35
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "getTitle", [], "method", false, false, true, 35), 35, $this->source), "html", null, true);
yield "
</a>
";
}
// line 38
yield " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productCategory'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
yield " </ul>
";
}
// line 42
yield " </div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/footer-brick/partials/_column_product_categories.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 122 => 42, 118 => 40, 111 => 38, 104 => 35, 100 => 33, 97 => 29, 95 => 28, 90 => 27, 88 => 26, 85 => 25, 81 => 24, 78 => 23, 76 => 22, 59 => 8, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"px-5 pb-4 -mx-5 border-b border-white md:pb-6 sm:mx-0 sm:px-0 border-opacity-10 sm:border-none sm:pb-0\"
x-data=\"{ open: false }\"
>
<div class=\"flex items-center justify-between cursor-pointer sm:mb-6 sm:cursor-none\"
@click=\"open = !open\"
:class=\"{ 'mb-6' : open }\"
>
<h4 class=\"text-lg md:text-2xl\">{{ \"Onze oplossingen\"|trans }}</h4>
<span
class=\"flex items-center justify-center w-5 h-3 transition-all duration-300 sm:hidden shrink-0\"
:class=\"{ 'rotate-180' : open }\"
>
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
<path fill=\"#8A8D94\" fill-rule=\"evenodd\"
d=\"m.389 2.36 6.73 6.963c.24.25.576.39.926.39.35 0 .685-.14.925-.39l6.732-6.963a1.206 1.206 0 0 0-.067-1.749l-.113-.09a1.297 1.297 0 0 0-1.67.154l-5.807 6.01L2.239.677A1.295 1.295 0 0 0 .456.612 1.204 1.204 0 0 0 .39 2.36H.389Z\"/>
</svg>
</span>
</div>
<div class=\"block overflow-hidden max-h-0 sm:max-h-max\"
:style=\"open ? `max-height: 100%` : ``\"
>
{% if pimcore_relations(\"product-categories\") is not empty %}
<ul>
{% for productCategory in pimcore_relations(\"product-categories\") %}
<li>
{% if productCategory.page is defined and productCategory.page %}
<a href=\"{{ (productCategory.page.url ?? null) | trimUrl }}\" class=\"flex items-center mr-3 hover:text-blue\">
{% if productCategory.icon %}
{{ productCategory.icon.thumbnail('default').html({
'pictureAttributes':{
'class': \"inline w-6 h-6 mr-3\"
}
})|raw }}
{% endif %}
{{ productCategory.getTitle() }}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
", "areas/footer-brick/partials/_column_product_categories.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/partials/_column_product_categories.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 22, "for" => 24];
static $filters = ["escape" => 8, "trans" => 8, "trimUrl" => 27, "raw" => 33];
static $functions = ["pimcore_relations" => 22];
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'trans', 'trimUrl', 'raw'],
['pimcore_relations'],
$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;
}
}
}