<?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/sector-cards-brick/view.html.twig */
class __TwigTemplate_22fc3bbd525bd9a07b6945f6e15c0221f1b283b7d1da981c045e179a20d67844 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/sector-cards-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/sector-cards-brick/view.html.twig"));
// line 2
$context["style"] = ($context["style"] ?? (((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "style"), "getData", [], "any", true, true, true, 2) && !(null === CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "style"), "getData", [], "any", false, false, true, 2)))) ? (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "style"), "getData", [], "any", false, false, true, 2)) : ("images")));
// line 4
$context["sectors"] = ($context["sectors"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "sectors"), "getElements", [], "method", false, false, true, 4));
// line 5
$context["clients"] = ($context["clients"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "clients"), "getElements", [], "method", false, false, true, 5));
// line 6
yield from $this->loadTemplate("areas/sector-cards-brick/partials/editmode/_no-objects-found.html.twig", "areas/sector-cards-brick/view.html.twig", 6)->unwrap()->yield($context);
// line 7
yield from $this->loadTemplate("areas/sector-cards-brick/view.html.twig", "areas/sector-cards-brick/view.html.twig", 7, "226322389")->unwrap()->yield($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/sector-cards-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 58 => 7, 56 => 6, 54 => 5, 52 => 4, 50 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# Defined as EditableDialog field #}
{% set style = style ?? pimcore_select('style').getData ?? \"images\" %}
{# Defined as EditableDialog field #}
{% set sectors = sectors ?? pimcore_relations('sectors').getElements() %}
{% set clients = clients ?? pimcore_relations('clients').getElements() %}
{% include 'areas/sector-cards-brick/partials/editmode/_no-objects-found.html.twig' %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if style == 'images' and sectors|length > 0 %}
<!-- Branches 4 columns -->
<section class=\"{{ containerClasses ?? 'relative py-10' }} {{ defaultBackgroundColor ?? \"\" }}\">
{% if disableBackground is not defined or not disableBackground %}
<div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
{{ defaultSecondBackgroundColor ?? \"md:bg-blue-200\" }}
{{ defaultSecondBackgroundPosition ?? \"top-0\" }}
\">
<!-- empty -->
</div>
{% endif %}
<div class=\"container relative z-20\">
<div class=\"grid grid-cols-12 gap-8\">
{% for sector in sectors %}
{% set page = sector.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
<div class=\"relative hidden overflow-hidden rounded-md md:block\">
{% set image = sector.visuals.current() %}
{% if image %}
{{ image.getThumbnail('sector-card').html({
pictureAttributes: {class: ''},
imgAttributes: {class: 'w-full'},
})|raw }}
{% endif %}
{% set icon = sector.icon() %}
{% if icon %}
<span class=\"absolute left-6 bottom-6\">
{{ icon.getThumbnail('text-and-link-icon').html({
pictureAttributes: {class: 'rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
</span>
{% endif %}
</div>
<div class=\"flex items-center justify-between md:mt-4\">
{% set icon = sector.icon() %}
{% if icon %}
<span class=\"mr-2.5 md:hidden\">
{{ icon.getThumbnail('text-and-link-icon').html({
pictureAttributes: {class: 'rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
</span>
{% endif %}
{% if disableBackground is defined and disableBackground %}
{% set classes = \"text-blue\" %}
{% else %}
{% set classes = (defaultSecondBackgroundColor ?? null) === 'bg-blue-300' ? \"text-blue md:text-white\" : \"text-blue md:text-white\" %}
{% endif %}
<h3 class=\"grow text-lg font-bold {{ classes }}\">{{ sector.branchename }}</h3>
<span
class=\"flex items-center justify-center w-6 h-6 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>
</div>
</a>
{% endfor %}
</div>
</div>
</section>
{% elseif style == 'icons' and sectors|length > 0 %}
<section class=\"py-8 bg-blue-200 md:py-20\">
<div class=\"container\">
{% if clients|default(null) %}
<section>
{% for client in clients %}
<div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
<div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
{% if client.media.items[0] is defined and client.media.items[0] is not null %}
{{ client.media.items[0].thumbnail('testimonial-large').html(
{
'pictureAttributes': {
'class': 'inline-block overflow-hidden shadow-lg sm:rounded-md w-full',
},
'imgAttributes': {
'class': 'object-cover object-center w-full h-full'
},
}
)|raw }}
{% endif %}
</div>
<div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
{% include 'areas/testimonial-brick/partials/editmode/_no-client-details-found.html.twig' %}
<div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
<div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
<blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
{% if client.story %}
“{{ client.story }}”
{% endif %}
</blockquote>
<span class=\"font-bold\">
{% if client.job_title and client.contact %}
{{ client.contact }}, {{ client.job_title }}
{% elseif client.contact %}
{{ client.contact }}
{% endif %}
</span>
</div>
{% if client.logo %}
<span class=\"flex justify-center py-6\">
{{ client.logo.thumbnail('testimonial-small').html({
pictureAttributes: {class: 'p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide'},
}) | raw }}
</span>
{% endif %}
{% if document.getProperty('clientArchivePage') %}
<a
class=\"button button__secondary button__secondary--white button--no-l-padding group\"
href=\"{{ document.getProperty('clientArchivePage').url | trimUrl }}\"
>
<span
class=\"flex items-center justify-center w-6 h-6 ml-3 transition-all 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\"/>
</svg>
</span>
{{ \"Bekijk alle verhalen\"|trans }}
</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</section>
{% endif %}
{% if editmode %}
{% if showArchiveLink is not defined %}
<label>
{{ pimcore_checkbox('showArchiveLink', { reload: true }) }}
<span>Toon link naar overzichtspagina</span>
</label>
{% endif %}
{% endif %}
<div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
{% for sector in sectors %}
{% set page = sector.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\"
class=\"flex flex-col items-center justify-between pt-8 pb-6 transition-transform bg-white rounded-md px-7 hover:scale-105 hover:drop-shadow-2xl hover:text-blue\">
{% if sector.icon %}
{{ sector.icon.getThumbnail('sector-card-icon').html({
pictureAttributes: {class: 'inline mb-4 rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
{% endif %}
<span>{{ sector.branchename }}</span>
</a>
{% endfor %}
{% if showArchiveLink ?? pimcore_checkbox('showArchiveLink').isChecked() %}
<a
href=\"{{ document.getProperty('sectorArchivePage').url | trimUrl }}\"
class=\"flex flex-col items-center pt-8 pb-6 text-white transition-transform rounded-md px-7 justify-evenly bg-blue hover:scale-105 hover:drop-shadow-2xl\"
>
<svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
d=\"M3.5 9a3.5 3.5 0 0 1 .192 6.995L3.5 16a3.5 3.5 0 0 1-.192-6.995L3.5 9Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 16a3.5 3.5 0 0 1-.192-6.995L12.5 9Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.5 0a3.5 3.5 0 0 1 .192 6.995L3.5 7A3.5 3.5 0 0 1 3.308.005L3.5 0Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 7a3.5 3.5 0 0 1-.192-6.995L12.5 0Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z\"/>
</svg>
<span>{{ 'Bekijk alles' | trans }}</span>
</a>
{% endif %}
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}
", "areas/sector-cards-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/sector-cards-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["set" => 2, "include" => 6, "embed" => 7];
static $filters = [];
static $functions = ["pimcore_select" => 2, "pimcore_relations" => 4];
try {
$this->sandbox->checkSecurity(
['set', 'include', 'embed'],
[],
['pimcore_select', '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;
}
}
}
/* areas/sector-cards-brick/view.html.twig */
class __TwigTemplate_22fc3bbd525bd9a07b6945f6e15c0221f1b283b7d1da981c045e179a20d67844___226322389 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/sector-cards-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/sector-cards-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/sector-cards-brick/view.html.twig", 7);
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 8
/**
* @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 9
yield " ";
if ((((isset($context["style"]) || array_key_exists("style", $context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.', 9, $this->source); })()) == "images") && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["sectors"]) || array_key_exists("sectors", $context) ? $context["sectors"] : (function () { throw new RuntimeError('Variable "sectors" does not exist.', 9, $this->source); })())) > 0))) {
// line 10
yield " <!-- Branches 4 columns -->
<section class=\"";
// line 11
yield ($context["containerClasses"] ?? "relative py-10");
yield " ";
yield ($context["defaultBackgroundColor"] ?? "");
yield "\">
";
// line 13
if (( !array_key_exists("disableBackground", $context) || !(isset($context["disableBackground"]) || array_key_exists("disableBackground", $context) ? $context["disableBackground"] : (function () { throw new RuntimeError('Variable "disableBackground" does not exist.', 13, $this->source); })()))) {
// line 14
yield " <div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
";
// line 15
yield ($context["defaultSecondBackgroundColor"] ?? "md:bg-blue-200");
yield "
";
// line 16
yield ($context["defaultSecondBackgroundPosition"] ?? "top-0");
yield "
\">
<!-- empty -->
</div>
";
}
// line 21
yield "
<div class=\"container relative z-20\">
<div class=\"grid grid-cols-12 gap-8\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["sectors"]) || array_key_exists("sectors", $context) ? $context["sectors"] : (function () { throw new RuntimeError('Variable "sectors" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
// line 25
yield " ";
$context["page"] = CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "page", [], "method", false, false, true, 25);
// line 26
yield " <a href=\"";
yield (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $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.', 26, $this->source); })()), "url", [], "any", false, false, true, 26), 26, $this->source)), "html", null, true)) : (""));
yield "\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
<div class=\"relative hidden overflow-hidden rounded-md md:block\">
";
// line 29
$context["image"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "visuals", [], "any", false, false, true, 29), "current", [], "method", false, false, true, 29);
// line 30
yield " ";
if ((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 30, $this->source); })())) {
// line 31
yield " ";
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.', 31, $this->source); })()), "getThumbnail", ["sector-card"], "method", false, false, true, 31), "html", [["pictureAttributes" => ["class" => ""], "imgAttributes" => ["class" => "w-full"]]], "method", false, false, true, 31), 31, $this->source);
// line 34
yield "
";
}
// line 36
yield "
";
// line 37
$context["icon"] = CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "icon", [], "method", false, false, true, 37);
// line 38
yield " ";
if ((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 38, $this->source); })())) {
// line 39
yield " <span class=\"absolute left-6 bottom-6\">
";
// line 40
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 40, $this->source); })()), "getThumbnail", ["text-and-link-icon"], "method", false, false, true, 40), "html", [["pictureAttributes" => ["class" => "rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method", false, false, true, 40), 40, $this->source);
// line 43
yield "
</span>
";
}
// line 46
yield " </div>
<div class=\"flex items-center justify-between md:mt-4\">
";
// line 48
$context["icon"] = CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "icon", [], "method", false, false, true, 48);
// line 49
yield " ";
if ((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 49, $this->source); })())) {
// line 50
yield " <span class=\"mr-2.5 md:hidden\">
";
// line 51
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 51, $this->source); })()), "getThumbnail", ["text-and-link-icon"], "method", false, false, true, 51), "html", [["pictureAttributes" => ["class" => "rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method", false, false, true, 51), 51, $this->source);
// line 54
yield "
</span>
";
}
// line 57
yield "
";
// line 58
if ((array_key_exists("disableBackground", $context) && (isset($context["disableBackground"]) || array_key_exists("disableBackground", $context) ? $context["disableBackground"] : (function () { throw new RuntimeError('Variable "disableBackground" does not exist.', 58, $this->source); })()))) {
// line 59
yield " ";
$context["classes"] = "text-blue";
// line 60
yield " ";
} else {
// line 61
yield " ";
$context["classes"] = (((($context["defaultSecondBackgroundColor"] ?? null) === "bg-blue-300")) ? ("text-blue md:text-white") : ("text-blue md:text-white"));
// line 62
yield " ";
}
// line 63
yield "
<h3 class=\"grow text-lg font-bold ";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.', 64, $this->source); })()), 64, $this->source), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "branchename", [], "any", false, false, true, 64), 64, $this->source), "html", null, true);
yield "</h3>
<span
class=\"flex items-center justify-center w-6 h-6 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>
</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
yield " </div>
</div>
</section>
";
} elseif ((( // line 78
(isset($context["style"]) || array_key_exists("style", $context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.', 78, $this->source); })()) == "icons") && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["sectors"]) || array_key_exists("sectors", $context) ? $context["sectors"] : (function () { throw new RuntimeError('Variable "sectors" does not exist.', 78, $this->source); })())) > 0))) {
// line 79
yield " <section class=\"py-8 bg-blue-200 md:py-20\">
<div class=\"container\">
";
// line 82
if (((array_key_exists("clients", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["clients"]) || array_key_exists("clients", $context) ? $context["clients"] : (function () { throw new RuntimeError('Variable "clients" does not exist.', 82, $this->source); })()), null)) : (null))) {
// line 83
yield " <section>
";
// line 84
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["clients"]) || array_key_exists("clients", $context) ? $context["clients"] : (function () { throw new RuntimeError('Variable "clients" does not exist.', 84, $this->source); })()));
$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["client"]) {
// line 85
yield " <div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
<div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
";
// line 88
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["client"], "media", [], "any", false, true, true, 88), "items", [], "any", false, true, true, 88), 0, [], "array", true, true, true, 88) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["client"], "media", [], "any", false, false, true, 88), "items", [], "any", false, false, true, 88), 0, [], "array", false, false, true, 88)))) {
// line 89
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["client"], "media", [], "any", false, false, true, 89), "items", [], "any", false, false, true, 89), 0, [], "array", false, false, true, 89), "thumbnail", ["testimonial-large"], "method", false, false, true, 89), "html", [["pictureAttributes" => ["class" => "inline-block overflow-hidden shadow-lg sm:rounded-md w-full"], "imgAttributes" => ["class" => "object-cover object-center w-full h-full"]]], "method", false, false, true, 89), 89, $this->source);
// line 98
yield "
";
}
// line 100
yield " </div>
<div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
";
// line 103
yield from $this->loadTemplate("areas/testimonial-brick/partials/editmode/_no-client-details-found.html.twig", "areas/sector-cards-brick/view.html.twig", 103)->unwrap()->yield($context);
// line 104
yield " <div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
<div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
<blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
";
// line 108
if (CoreExtension::getAttribute($this->env, $this->source, $context["client"], "story", [], "any", false, false, true, 108)) {
// line 109
yield " “";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["client"], "story", [], "any", false, false, true, 109), 109, $this->source), "html", null, true);
yield "”
";
}
// line 111
yield " </blockquote>
<span class=\"font-bold\">
";
// line 113
if ((CoreExtension::getAttribute($this->env, $this->source, $context["client"], "job_title", [], "any", false, false, true, 113) && CoreExtension::getAttribute($this->env, $this->source, $context["client"], "contact", [], "any", false, false, true, 113))) {
// line 114
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["client"], "contact", [], "any", false, false, true, 114), 114, $this->source), "html", null, true);
yield ", ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["client"], "job_title", [], "any", false, false, true, 114), 114, $this->source), "html", null, true);
yield "
";
} elseif (CoreExtension::getAttribute($this->env, $this->source, // line 115
$context["client"], "contact", [], "any", false, false, true, 115)) {
// line 116
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["client"], "contact", [], "any", false, false, true, 116), 116, $this->source), "html", null, true);
yield "
";
}
// line 118
yield " </span>
</div>
";
// line 121
if (CoreExtension::getAttribute($this->env, $this->source, $context["client"], "logo", [], "any", false, false, true, 121)) {
// line 122
yield " <span class=\"flex justify-center py-6\">
";
// line 123
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["client"], "logo", [], "any", false, false, true, 123), "thumbnail", ["testimonial-small"], "method", false, false, true, 123), "html", [["pictureAttributes" => ["class" => "p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide"]]], "method", false, false, true, 123), 123, $this->source);
// line 125
yield "
</span>
";
}
// line 128
yield "
";
// line 129
if (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.', 129, $this->source); })()), "getProperty", ["clientArchivePage"], "method", false, false, true, 129)) {
// line 130
yield " <a
class=\"button button__secondary button__secondary--white button--no-l-padding group\"
href=\"";
// line 132
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.', 132, $this->source); })()), "getProperty", ["clientArchivePage"], "method", false, false, true, 132), "url", [], "any", false, false, true, 132), 132, $this->source)), "html", null, true);
yield "\"
>
<span
class=\"flex items-center justify-center w-6 h-6 ml-3 transition-all 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\"/>
</svg>
</span>
";
// line 143
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alle verhalen"), "html", null, true);
yield "
</a>
";
}
// line 146
yield "
</div>
</div>
</div>
";
++$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['client'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 151
yield " </section>
";
}
// line 153
yield "
";
// line 154
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 154, $this->source); })())) {
// line 155
yield " ";
if ( !array_key_exists("showArchiveLink", $context)) {
// line 156
yield " <label>
";
// line 157
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showArchiveLink", ["reload" => true]);
yield "
<span>Toon link naar overzichtspagina</span>
</label>
";
}
// line 161
yield " ";
}
// line 162
yield "
<div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
";
// line 164
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["sectors"]) || array_key_exists("sectors", $context) ? $context["sectors"] : (function () { throw new RuntimeError('Variable "sectors" does not exist.', 164, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
// line 165
yield " ";
$context["page"] = CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "page", [], "method", false, false, true, 165);
// line 166
yield " <a href=\"";
yield (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 166, $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.', 166, $this->source); })()), "url", [], "any", false, false, true, 166), 166, $this->source)), "html", null, true)) : (""));
yield "\"
class=\"flex flex-col items-center justify-between pt-8 pb-6 transition-transform bg-white rounded-md px-7 hover:scale-105 hover:drop-shadow-2xl hover:text-blue\">
";
// line 168
if (CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "icon", [], "any", false, false, true, 168)) {
// line 169
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "icon", [], "any", false, false, true, 169), "getThumbnail", ["sector-card-icon"], "method", false, false, true, 169), "html", [["pictureAttributes" => ["class" => "inline mb-4 rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method", false, false, true, 169), 169, $this->source);
// line 172
yield "
";
}
// line 174
yield " <span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "branchename", [], "any", false, false, true, 174), 174, $this->source), "html", null, true);
yield "</span>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 177
yield "
";
// line 178
if (($context["showArchiveLink"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showArchiveLink"), "isChecked", [], "method", false, false, true, 178))) {
// line 179
yield " <a
href=\"";
// line 180
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.', 180, $this->source); })()), "getProperty", ["sectorArchivePage"], "method", false, false, true, 180), "url", [], "any", false, false, true, 180), 180, $this->source)), "html", null, true);
yield "\"
class=\"flex flex-col items-center pt-8 pb-6 text-white transition-transform rounded-md px-7 justify-evenly bg-blue hover:scale-105 hover:drop-shadow-2xl\"
>
<svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
d=\"M3.5 9a3.5 3.5 0 0 1 .192 6.995L3.5 16a3.5 3.5 0 0 1-.192-6.995L3.5 9Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 16a3.5 3.5 0 0 1-.192-6.995L12.5 9Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.5 0a3.5 3.5 0 0 1 .192 6.995L3.5 7A3.5 3.5 0 0 1 3.308.005L3.5 0Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 7a3.5 3.5 0 0 1-.192-6.995L12.5 0Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z\"/>
</svg>
<span>";
// line 187
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alles"), "html", null, true);
yield "</span>
</a>
";
}
// line 190
yield " </div>
</div>
</section>
";
}
// line 194
yield " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/sector-cards-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 765 => 194, 759 => 190, 753 => 187, 743 => 180, 740 => 179, 738 => 178, 735 => 177, 725 => 174, 721 => 172, 718 => 169, 716 => 168, 710 => 166, 707 => 165, 703 => 164, 699 => 162, 696 => 161, 689 => 157, 686 => 156, 683 => 155, 681 => 154, 678 => 153, 674 => 151, 656 => 146, 650 => 143, 636 => 132, 632 => 130, 630 => 129, 627 => 128, 622 => 125, 620 => 123, 617 => 122, 615 => 121, 610 => 118, 604 => 116, 602 => 115, 595 => 114, 593 => 113, 589 => 111, 583 => 109, 581 => 108, 575 => 104, 573 => 103, 568 => 100, 564 => 98, 561 => 89, 559 => 88, 554 => 85, 537 => 84, 534 => 83, 532 => 82, 527 => 79, 525 => 78, 520 => 75, 501 => 64, 498 => 63, 495 => 62, 492 => 61, 489 => 60, 486 => 59, 484 => 58, 481 => 57, 476 => 54, 474 => 51, 471 => 50, 468 => 49, 466 => 48, 462 => 46, 457 => 43, 455 => 40, 452 => 39, 449 => 38, 447 => 37, 444 => 36, 440 => 34, 437 => 31, 434 => 30, 432 => 29, 425 => 26, 422 => 25, 418 => 24, 413 => 21, 405 => 16, 401 => 15, 398 => 14, 396 => 13, 389 => 11, 386 => 10, 383 => 9, 370 => 8, 58 => 7, 56 => 6, 54 => 5, 52 => 4, 50 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# Defined as EditableDialog field #}
{% set style = style ?? pimcore_select('style').getData ?? \"images\" %}
{# Defined as EditableDialog field #}
{% set sectors = sectors ?? pimcore_relations('sectors').getElements() %}
{% set clients = clients ?? pimcore_relations('clients').getElements() %}
{% include 'areas/sector-cards-brick/partials/editmode/_no-objects-found.html.twig' %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if style == 'images' and sectors|length > 0 %}
<!-- Branches 4 columns -->
<section class=\"{{ containerClasses ?? 'relative py-10' }} {{ defaultBackgroundColor ?? \"\" }}\">
{% if disableBackground is not defined or not disableBackground %}
<div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
{{ defaultSecondBackgroundColor ?? \"md:bg-blue-200\" }}
{{ defaultSecondBackgroundPosition ?? \"top-0\" }}
\">
<!-- empty -->
</div>
{% endif %}
<div class=\"container relative z-20\">
<div class=\"grid grid-cols-12 gap-8\">
{% for sector in sectors %}
{% set page = sector.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
<div class=\"relative hidden overflow-hidden rounded-md md:block\">
{% set image = sector.visuals.current() %}
{% if image %}
{{ image.getThumbnail('sector-card').html({
pictureAttributes: {class: ''},
imgAttributes: {class: 'w-full'},
})|raw }}
{% endif %}
{% set icon = sector.icon() %}
{% if icon %}
<span class=\"absolute left-6 bottom-6\">
{{ icon.getThumbnail('text-and-link-icon').html({
pictureAttributes: {class: 'rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
</span>
{% endif %}
</div>
<div class=\"flex items-center justify-between md:mt-4\">
{% set icon = sector.icon() %}
{% if icon %}
<span class=\"mr-2.5 md:hidden\">
{{ icon.getThumbnail('text-and-link-icon').html({
pictureAttributes: {class: 'rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
</span>
{% endif %}
{% if disableBackground is defined and disableBackground %}
{% set classes = \"text-blue\" %}
{% else %}
{% set classes = (defaultSecondBackgroundColor ?? null) === 'bg-blue-300' ? \"text-blue md:text-white\" : \"text-blue md:text-white\" %}
{% endif %}
<h3 class=\"grow text-lg font-bold {{ classes }}\">{{ sector.branchename }}</h3>
<span
class=\"flex items-center justify-center w-6 h-6 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>
</div>
</a>
{% endfor %}
</div>
</div>
</section>
{% elseif style == 'icons' and sectors|length > 0 %}
<section class=\"py-8 bg-blue-200 md:py-20\">
<div class=\"container\">
{% if clients|default(null) %}
<section>
{% for client in clients %}
<div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
<div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
{% if client.media.items[0] is defined and client.media.items[0] is not null %}
{{ client.media.items[0].thumbnail('testimonial-large').html(
{
'pictureAttributes': {
'class': 'inline-block overflow-hidden shadow-lg sm:rounded-md w-full',
},
'imgAttributes': {
'class': 'object-cover object-center w-full h-full'
},
}
)|raw }}
{% endif %}
</div>
<div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
{% include 'areas/testimonial-brick/partials/editmode/_no-client-details-found.html.twig' %}
<div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
<div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
<blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
{% if client.story %}
“{{ client.story }}”
{% endif %}
</blockquote>
<span class=\"font-bold\">
{% if client.job_title and client.contact %}
{{ client.contact }}, {{ client.job_title }}
{% elseif client.contact %}
{{ client.contact }}
{% endif %}
</span>
</div>
{% if client.logo %}
<span class=\"flex justify-center py-6\">
{{ client.logo.thumbnail('testimonial-small').html({
pictureAttributes: {class: 'p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide'},
}) | raw }}
</span>
{% endif %}
{% if document.getProperty('clientArchivePage') %}
<a
class=\"button button__secondary button__secondary--white button--no-l-padding group\"
href=\"{{ document.getProperty('clientArchivePage').url | trimUrl }}\"
>
<span
class=\"flex items-center justify-center w-6 h-6 ml-3 transition-all 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\"/>
</svg>
</span>
{{ \"Bekijk alle verhalen\"|trans }}
</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</section>
{% endif %}
{% if editmode %}
{% if showArchiveLink is not defined %}
<label>
{{ pimcore_checkbox('showArchiveLink', { reload: true }) }}
<span>Toon link naar overzichtspagina</span>
</label>
{% endif %}
{% endif %}
<div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
{% for sector in sectors %}
{% set page = sector.page() %}
<a href=\"{{ page ? (page.url | trimUrl) : '' }}\"
class=\"flex flex-col items-center justify-between pt-8 pb-6 transition-transform bg-white rounded-md px-7 hover:scale-105 hover:drop-shadow-2xl hover:text-blue\">
{% if sector.icon %}
{{ sector.icon.getThumbnail('sector-card-icon').html({
pictureAttributes: {class: 'inline mb-4 rounded-full '},
imgAttributes: {class: 'w-full h-full'},
})|raw }}
{% endif %}
<span>{{ sector.branchename }}</span>
</a>
{% endfor %}
{% if showArchiveLink ?? pimcore_checkbox('showArchiveLink').isChecked() %}
<a
href=\"{{ document.getProperty('sectorArchivePage').url | trimUrl }}\"
class=\"flex flex-col items-center pt-8 pb-6 text-white transition-transform rounded-md px-7 justify-evenly bg-blue hover:scale-105 hover:drop-shadow-2xl\"
>
<svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
<path fill=\"currentColor\" fill-rule=\"evenodd\"
d=\"M3.5 9a3.5 3.5 0 0 1 .192 6.995L3.5 16a3.5 3.5 0 0 1-.192-6.995L3.5 9Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 16a3.5 3.5 0 0 1-.192-6.995L12.5 9Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.5 0a3.5 3.5 0 0 1 .192 6.995L3.5 7A3.5 3.5 0 0 1 3.308.005L3.5 0Zm9 0a3.5 3.5 0 0 1 .192 6.995L12.5 7a3.5 3.5 0 0 1-.192-6.995L12.5 0Zm-9 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z\"/>
</svg>
<span>{{ 'Bekijk alles' | trans }}</span>
</a>
{% endif %}
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}
", "areas/sector-cards-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/sector-cards-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 7, "if" => 9, "for" => 24, "set" => 25, "include" => 103];
static $filters = ["length" => 9, "escape" => 26, "trimUrl" => 26, "raw" => 34, "default" => 82, "trans" => 143];
static $functions = ["pimcore_checkbox" => 157];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'for', 'set', 'include'],
['length', 'escape', 'trimUrl', 'raw', 'default', 'trans'],
['pimcore_checkbox'],
$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;
}
}
}