<?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/hero-large-brick/view.html.twig */
class __TwigTemplate_cf3d43b387550283267d45589716c2faae13951ea1ec8e6b102f2e6b2e61cae0 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/hero-large-brick/view.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/hero-large-brick/view.html.twig"));
// line 1
yield from $this->loadTemplate("includes/partials/hero_usp_bar.html.twig", "areas/hero-large-brick/view.html.twig", 1)->unwrap()->yield($context);
// line 2
yield "
";
// line 3
yield from $this->loadTemplate("areas/hero-large-brick/view.html.twig", "areas/hero-large-brick/view.html.twig", 3, "954632369")->unwrap()->yield($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/hero-large-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 55 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set customButtonLabel = pimcore_input('customButtonLabel').getData() %}
<section class=\"relative pb-8 md:pb-10\">
{% set selectedImage = pimcore_image('background-image') %}
{% set HeroLargeBackgroundImage = selectedImage.getThumbnail(\"header-large-gradient\") %}
{% set backgroundPositionStyle = \"background-position:\" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? \"50\") ~ \"% \" ~ (selectedImage.getImage().getCustomSetting('focalPointY') ?? \"50\") ~ \"%; \" %}
<section>
<div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
<div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
<div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"{{ backgroundPositionStyle ?? \"\" }} background-image:url('{{ HeroLargeBackgroundImage }}');\"></div>
<div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
{% include 'includes/partials/hero_content.html.twig' %}
</div>
</div>
</div>
</section>
{# Defined as editableDialogBox field #}
{% if pimcore_relations(\"product-categories\") is not empty %}
<div
class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
{% for productCategory in pimcore_relations(\"product-categories\") %}
{% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %}
{% if productCategory.page is empty or productCategory.page == false %}
<div
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if productCategory.icon %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
{{ productCategory.icon.thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ productCategory.name ?: productCategory.key }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</div>
{% else %}
<a href=\"{{ productCategory.page.url | trimUrl }}\"
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if productCategory.icon %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
{{ productCategory.icon.thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ productCategory.name ?: productCategory.key }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
{% endif %}
{% endfor %}
{% if document.getProperty('productCategoryArchivePage') is defined
and document.getProperty('productCategoryArchivePage') is not null %}
<a href=\"{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}\"
class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if pimcore_website_config('allSolutionsIcon') %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
{{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ \"Alle oplossingen\"|trans }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
{% endif %}
</div>
{% endif %}
</section>
{% endblock %}
{% endembed %}
", "areas/hero-large-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-large-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["include" => 1, "embed" => 3];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['include', 'embed'],
[],
[],
$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;
}
}
}
/* areas/hero-large-brick/view.html.twig */
class __TwigTemplate_cf3d43b387550283267d45589716c2faae13951ea1ec8e6b102f2e6b2e61cae0___954632369 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
{
return "app/area-brick-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", "areas/hero-large-brick/view.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/hero-large-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/hero-large-brick/view.html.twig", 3);
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 5
/**
* @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 6
yield "
";
// line 7
$context["customButtonLabel"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "customButtonLabel"), "getData", [], "method", false, false, true, 7);
// line 8
yield "
<section class=\"relative pb-8 md:pb-10\">
";
// line 10
$context["selectedImage"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background-image");
// line 11
yield " ";
$context["HeroLargeBackgroundImage"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["selectedImage"]) || array_key_exists("selectedImage", $context) ? $context["selectedImage"] : (function () { throw new RuntimeError('Variable "selectedImage" does not exist.', 11, $this->source); })()), "getThumbnail", ["header-large-gradient"], "method", false, false, true, 11);
// line 12
yield " ";
$context["backgroundPositionStyle"] = (((("background-position:" . (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointX"], "method", true, true, true, 12) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointX"], "method", false, false, true, 12)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointX"], "method", false, false, true, 12)) : ("50"))) . "% ") . (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointY"], "method", true, true, true, 12) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointY"], "method", false, false, true, 12)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["selectedImage"] ?? null), "getImage", [], "method", false, true, true, 12), "getCustomSetting", ["focalPointY"], "method", false, false, true, 12)) : ("50"))) . "%; ");
// line 13
yield "
<section>
<div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
<div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
<div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"";
// line 17
yield ($context["backgroundPositionStyle"] ?? "");
yield " background-image:url('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["HeroLargeBackgroundImage"]) || array_key_exists("HeroLargeBackgroundImage", $context) ? $context["HeroLargeBackgroundImage"] : (function () { throw new RuntimeError('Variable "HeroLargeBackgroundImage" does not exist.', 17, $this->source); })()), 17, $this->source), "html", null, true);
yield "');\"></div>
<div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
";
// line 19
yield from $this->loadTemplate("includes/partials/hero_content.html.twig", "areas/hero-large-brick/view.html.twig", 19)->unwrap()->yield($context);
// line 20
yield " </div>
</div>
</div>
</section>
";
// line 26
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "product-categories"))) {
// line 27
yield " <div
class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
";
// line 29
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "product-categories"));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
// line 30
yield " ";
yield from $this->loadTemplate("areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig", "areas/hero-large-brick/view.html.twig", 30)->unwrap()->yield($context);
// line 31
yield "
";
// line 32
if ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, false, true, 32)) || (CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, false, true, 32) == false))) {
// line 33
yield " <div
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none ";
// line 34
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 34) === 1)) ? ("rounded-t-md md:rounded-l-md md:rounded-r-none") : (""));
yield "\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
";
// line 36
if (CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "icon", [], "any", false, false, true, 36)) {
// line 37
yield " <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
";
// line 38
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, 38), "thumbnail", ["default"], "method", false, false, true, 38), "html", [], "any", false, false, true, 38), 38, $this->source);
yield "
</div>
";
}
// line 41
yield " <span class=\"text-center\">
";
// line 42
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "name", [], "any", false, false, true, 42)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "name", [], "any", false, false, true, 42), 42, $this->source), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "key", [], "any", false, false, true, 42), 42, $this->source), "html", null, true)));
yield "
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</div>
";
} else {
// line 53
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "page", [], "any", false, false, true, 53), "url", [], "any", false, false, true, 53), 53, $this->source)), "html", null, true);
yield "\"
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none ";
// line 54
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 54) === 1)) ? ("rounded-t-md md:rounded-l-md md:rounded-r-none") : (""));
yield "\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
";
// line 56
if (CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "icon", [], "any", false, false, true, 56)) {
// line 57
yield " <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
";
// line 58
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, 58), "thumbnail", ["default"], "method", false, false, true, 58), "html", [], "any", false, false, true, 58), 58, $this->source);
yield "
</div>
";
}
// line 61
yield " <span class=\"text-center\">
";
// line 62
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "name", [], "any", false, false, true, 62)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "name", [], "any", false, false, true, 62), 62, $this->source), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["productCategory"], "key", [], "any", false, false, true, 62), 62, $this->source), "html", null, true)));
yield "
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
";
}
// line 73
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
yield "
";
// line 75
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["productCategoryArchivePage"], "method", true, true, true, 75) && !(null === CoreExtension::getAttribute($this->env, $this->source, // line 76
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 76, $this->source); })()), "getProperty", ["productCategoryArchivePage"], "method", false, false, true, 76)))) {
// line 77
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, 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.', 77, $this->source); })()), "getProperty", ["productCategoryArchivePage"], "method", false, false, true, 77), "url", [], "any", false, false, true, 77), 77, $this->source)), "html", null, true);
yield "\"
class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
";
// line 80
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("allSolutionsIcon")) {
// line 81
yield " <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
";
// line 82
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("allSolutionsIcon"), "thumbnail", ["default"], "method", false, false, true, 82), "html", [], "any", false, false, true, 82), 82, $this->source);
yield "
</div>
";
}
// line 85
yield " <span class=\"text-center\">
";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle oplossingen"), "html", null, true);
yield "
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
";
}
// line 97
yield "
</div>
";
}
// line 100
yield "
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/hero-large-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 493 => 100, 488 => 97, 474 => 86, 471 => 85, 465 => 82, 462 => 81, 460 => 80, 453 => 77, 451 => 76, 450 => 75, 447 => 74, 433 => 73, 419 => 62, 416 => 61, 410 => 58, 407 => 57, 405 => 56, 400 => 54, 395 => 53, 381 => 42, 378 => 41, 372 => 38, 369 => 37, 367 => 36, 362 => 34, 359 => 33, 357 => 32, 354 => 31, 351 => 30, 334 => 29, 330 => 27, 327 => 26, 320 => 20, 318 => 19, 311 => 17, 305 => 13, 302 => 12, 299 => 11, 297 => 10, 293 => 8, 291 => 7, 288 => 6, 275 => 5, 55 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set customButtonLabel = pimcore_input('customButtonLabel').getData() %}
<section class=\"relative pb-8 md:pb-10\">
{% set selectedImage = pimcore_image('background-image') %}
{% set HeroLargeBackgroundImage = selectedImage.getThumbnail(\"header-large-gradient\") %}
{% set backgroundPositionStyle = \"background-position:\" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? \"50\") ~ \"% \" ~ (selectedImage.getImage().getCustomSetting('focalPointY') ?? \"50\") ~ \"%; \" %}
<section>
<div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
<div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
<div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"{{ backgroundPositionStyle ?? \"\" }} background-image:url('{{ HeroLargeBackgroundImage }}');\"></div>
<div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
{% include 'includes/partials/hero_content.html.twig' %}
</div>
</div>
</div>
</section>
{# Defined as editableDialogBox field #}
{% if pimcore_relations(\"product-categories\") is not empty %}
<div
class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
{% for productCategory in pimcore_relations(\"product-categories\") %}
{% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %}
{% if productCategory.page is empty or productCategory.page == false %}
<div
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if productCategory.icon %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
{{ productCategory.icon.thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ productCategory.name ?: productCategory.key }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</div>
{% else %}
<a href=\"{{ productCategory.page.url | trimUrl }}\"
class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if productCategory.icon %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
{{ productCategory.icon.thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ productCategory.name ?: productCategory.key }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
{% endif %}
{% endfor %}
{% if document.getProperty('productCategoryArchivePage') is defined
and document.getProperty('productCategoryArchivePage') is not null %}
<a href=\"{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}\"
class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
<div class=\"flex items-center w-full md:justify-center md:flex-col\">
{% if pimcore_website_config('allSolutionsIcon') %}
<div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
{{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }}
</div>
{% endif %}
<span class=\"text-center\">
{{ \"Alle oplossingen\"|trans }}
</span>
</div>
<span class=\"text-gray-800 md:hidden\">
<svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
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\"/>
</svg>
</span>
</a>
{% endif %}
</div>
{% endif %}
</section>
{% endblock %}
{% endembed %}
", "areas/hero-large-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-large-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 3, "set" => 7, "include" => 19, "if" => 26, "for" => 29];
static $filters = ["escape" => 17, "raw" => 38, "trimUrl" => 53, "trans" => 86];
static $functions = ["pimcore_input" => 7, "pimcore_image" => 10, "pimcore_relations" => 26, "pimcore_website_config" => 80];
try {
$this->sandbox->checkSecurity(
['extends', 'set', 'include', 'if', 'for'],
['escape', 'raw', 'trimUrl', 'trans'],
['pimcore_input', 'pimcore_image', 'pimcore_relations', 'pimcore_website_config'],
$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;
}
}
}