<?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-projects-with-text-and-button-brick/view.html.twig */
class __TwigTemplate_4fd9daa6fea037cc8bf00d1941826e4817364d9d1d45bd892ba7fd21ce5e2f3c 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-projects-with-text-and-button-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-projects-with-text-and-button-brick/view.html.twig"));
// line 1
yield from $this->loadTemplate("includes/partials/hero_usp_bar.html.twig", "areas/hero-projects-with-text-and-button-brick/view.html.twig", 1)->unwrap()->yield($context);
// line 2
yield "
";
// line 4
yield from $this->loadTemplate("areas/hero-projects-with-text-and-button-brick/view.html.twig", "areas/hero-projects-with-text-and-button-brick/view.html.twig", 4, "1383844566")->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-projects-with-text-and-button-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 56 => 4, 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 %}
<!-- Text + Cards 2 columns -->
<section class=\"relative text-white bg-blue-300\">
{# Defined as Dialog field. #}
{% if not pimcore_image('background-image').isEmpty() %}
{# Doing getThumbnail() instead of direct echo so image also gets rendered in editmode. #}
{{ pimcore_image('background-image').getThumbnail('projects-hero-background-image').html({
pictureAttributes: {class: 'z-0 absolute top-1/2 -translate-y-1/2'}
}) | raw }}
{% endif %}
<div
class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
<div class=\"w-full pr-5 lg:w-5/12\">
<span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
{{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
</span>
<h2 class=\"mb-4 text-3xl lg:text-5xl\">
{{ pimcore_input('title', { placeholder: 'Titel' }) }}
</h2>
<p class=\"mb-8 text-lg\">
{{ pimcore_textarea('text', { placeholder: 'Tekst' }) }}
</p>
{{ pimcore_link('link', {
placeholder: 'Link',
class: 'button button__primary',
}) }}
</div>
<div class=\"mt-6 lg:w-7/12 lg:mt-0\">
<div class=\"swiper project-swiper\">
<div class=\"swiper-wrapper lg:flex\">
{# Defined in Brick as editableContent fields #}
{% for project in pimcore_relations('projects') %}
{# Also see areas/projects-card-slider-brick/card.html.twig #}
{% set page = project.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
{% set image = project.visuals.current() %}
{% if image %}
<div class=\"relative\">
{{ image.getThumbnail('projects-hero-1').html({
pictureAttributes: {class: 'inline-block mb-5 overflow-hidden rounded-md'}
})|raw }}
</div>
{% endif %}
<span
class=\"block mb-3 text-lg\">{{ (project.meta_description ?: (project.webdesq_content|striptags|slice(0, 38) ~ '...'))|raw }}</span>
<h3 class=\"text-2xl leading-7\">{{ project.title }}</h3>
</a>
{% endfor %}
</div>
<div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
<div class=\"flex items-center custom-swiper-pagination\"></div>
<div class=\"flex gap-2.5 items-center text-white\">
<div class=\"arrow-swiper-button-prev\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
</div>
<div class=\"arrow-swiper-button-next\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/hero-projects-with-text-and-button-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-projects-with-text-and-button-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["include" => 1, "embed" => 4];
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-projects-with-text-and-button-brick/view.html.twig */
class __TwigTemplate_4fd9daa6fea037cc8bf00d1941826e4817364d9d1d45bd892ba7fd21ce5e2f3c___1383844566 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-projects-with-text-and-button-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-projects-with-text-and-button-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/hero-projects-with-text-and-button-brick/view.html.twig", 4);
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 " <!-- Text + Cards 2 columns -->
<section class=\"relative text-white bg-blue-300\">
";
// line 9
yield " ";
if ( !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background-image"), "isEmpty", [], "method", false, false, true, 9)) {
// line 10
yield " ";
// line 11
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background-image"), "getThumbnail", ["projects-hero-background-image"], "method", false, false, true, 11), "html", [["pictureAttributes" => ["class" => "z-0 absolute top-1/2 -translate-y-1/2"]]], "method", false, false, true, 11), 11, $this->source);
// line 13
yield "
";
}
// line 15
yield " <div
class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
<div class=\"w-full pr-5 lg:w-5/12\">
<span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
";
// line 19
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subtitle", ["placeholder" => "Subtitel"]);
yield "
</span>
<h2 class=\"mb-4 text-3xl lg:text-5xl\">
";
// line 23
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Titel"]);
yield "
</h2>
<p class=\"mb-8 text-lg\">
";
// line 27
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text", ["placeholder" => "Tekst"]);
yield "
</p>
";
// line 30
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["placeholder" => "Link", "class" => "button button__primary"]);
// line 33
yield "
</div>
<div class=\"mt-6 lg:w-7/12 lg:mt-0\">
<div class=\"swiper project-swiper\">
<div class=\"swiper-wrapper lg:flex\">
";
// line 40
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "projects"));
foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
// line 41
yield " ";
// line 42
yield " ";
$context["page"] = CoreExtension::getAttribute($this->env, $this->source, $context["project"], "page", [], "method", false, false, true, 42);
// line 43
yield " <a href=\"";
yield (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 43, $this->source); })())) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(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.', 43, $this->source); })()), "url", [], "any", false, false, true, 43), 43, $this->source)), "html", null, true)) : (""));
yield "\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
";
// line 44
$context["image"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["project"], "visuals", [], "any", false, false, true, 44), "current", [], "method", false, false, true, 44);
// line 45
yield " ";
if ((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 45, $this->source); })())) {
// line 46
yield " <div class=\"relative\">
";
// line 47
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 47, $this->source); })()), "getThumbnail", ["projects-hero-1"], "method", false, false, true, 47), "html", [["pictureAttributes" => ["class" => "inline-block mb-5 overflow-hidden rounded-md"]]], "method", false, false, true, 47), 47, $this->source);
// line 49
yield "
</div>
";
}
// line 52
yield " <span
class=\"block mb-3 text-lg\">";
// line 53
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["project"], "meta_description", [], "any", false, false, true, 53)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["project"], "meta_description", [], "any", false, false, true, 53)) : ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), Twig\Extension\CoreExtension::striptags($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["project"], "webdesq_content", [], "any", false, false, true, 53), 53, $this->source)), 0, 38) . "...")));
yield "</span>
<h3 class=\"text-2xl leading-7\">";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["project"], "title", [], "any", false, false, true, 54), 54, $this->source), "html", null, true);
yield "</h3>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['project'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
yield " </div>
<div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
<div class=\"flex items-center custom-swiper-pagination\"></div>
<div class=\"flex gap-2.5 items-center text-white\">
<div class=\"arrow-swiper-button-prev\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
</div>
<div class=\"arrow-swiper-button-next\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/hero-projects-with-text-and-button-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 360 => 57, 351 => 54, 347 => 53, 344 => 52, 339 => 49, 337 => 47, 334 => 46, 331 => 45, 329 => 44, 324 => 43, 321 => 42, 319 => 41, 314 => 40, 306 => 33, 304 => 30, 298 => 27, 291 => 23, 284 => 19, 278 => 15, 274 => 13, 271 => 11, 269 => 10, 266 => 9, 262 => 6, 249 => 5, 56 => 4, 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 %}
<!-- Text + Cards 2 columns -->
<section class=\"relative text-white bg-blue-300\">
{# Defined as Dialog field. #}
{% if not pimcore_image('background-image').isEmpty() %}
{# Doing getThumbnail() instead of direct echo so image also gets rendered in editmode. #}
{{ pimcore_image('background-image').getThumbnail('projects-hero-background-image').html({
pictureAttributes: {class: 'z-0 absolute top-1/2 -translate-y-1/2'}
}) | raw }}
{% endif %}
<div
class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
<div class=\"w-full pr-5 lg:w-5/12\">
<span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
{{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
</span>
<h2 class=\"mb-4 text-3xl lg:text-5xl\">
{{ pimcore_input('title', { placeholder: 'Titel' }) }}
</h2>
<p class=\"mb-8 text-lg\">
{{ pimcore_textarea('text', { placeholder: 'Tekst' }) }}
</p>
{{ pimcore_link('link', {
placeholder: 'Link',
class: 'button button__primary',
}) }}
</div>
<div class=\"mt-6 lg:w-7/12 lg:mt-0\">
<div class=\"swiper project-swiper\">
<div class=\"swiper-wrapper lg:flex\">
{# Defined in Brick as editableContent fields #}
{% for project in pimcore_relations('projects') %}
{# Also see areas/projects-card-slider-brick/card.html.twig #}
{% set page = project.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
{% set image = project.visuals.current() %}
{% if image %}
<div class=\"relative\">
{{ image.getThumbnail('projects-hero-1').html({
pictureAttributes: {class: 'inline-block mb-5 overflow-hidden rounded-md'}
})|raw }}
</div>
{% endif %}
<span
class=\"block mb-3 text-lg\">{{ (project.meta_description ?: (project.webdesq_content|striptags|slice(0, 38) ~ '...'))|raw }}</span>
<h3 class=\"text-2xl leading-7\">{{ project.title }}</h3>
</a>
{% endfor %}
</div>
<div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
<div class=\"flex items-center custom-swiper-pagination\"></div>
<div class=\"flex gap-2.5 items-center text-white\">
<div class=\"arrow-swiper-button-prev\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
</div>
<div class=\"arrow-swiper-button-next\">
<svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\">-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/hero-projects-with-text-and-button-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-projects-with-text-and-button-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 4, "if" => 9, "for" => 40, "set" => 42];
static $filters = ["raw" => 13, "escape" => 43, "trimUrl" => 43, "slice" => 53, "striptags" => 53];
static $functions = ["pimcore_image" => 9, "pimcore_input" => 19, "pimcore_textarea" => 27, "pimcore_link" => 30, "pimcore_relations" => 40];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'for', 'set'],
['raw', 'escape', 'trimUrl', 'slice', 'striptags'],
['pimcore_image', 'pimcore_input', 'pimcore_textarea', 'pimcore_link', '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;
}
}
}