<?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/contact-people-brick/view.html.twig */
class __TwigTemplate_02915b7cb4ea21c77cf8982463256c3d91214bedab16f1757fc76bc2b84e62c8 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/contact-people-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/contact-people-brick/view.html.twig"));
// line 1
$context["contacts"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "contacts", ["classes" => ["ContactPerson"], "title" => "Contactpersonen"]);
// line 5
yield "
";
// line 6
yield from $this->loadTemplate("areas/contact-people-brick/view.html.twig", "areas/contact-people-brick/view.html.twig", 6, "1649994769")->unwrap()->yield($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/contact-people-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 55 => 6, 52 => 5, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set contacts = pimcore_relations('contacts', {
classes: ['ContactPerson'],
title: 'Contactpersonen'
}) %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Contact Colleagues -->
<section class=\"container py-10\">
{% if editmode or not pimcore_input('contact-people-title').isEmpty() %}
<h2 class=\"my-10 text-4xl\">{{ pimcore_input('contact-people-title', { placeholder: 'Titel' }) }}</h2>
{% endif %}
<div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
{% if editmode or not pimcore_input('title').isEmpty() %}
<h3 class=\"text-2xl leading-7\">{{ pimcore_input('title', { placeholder: 'Titel' }) }}</h3>
{% endif %}
{% if editmode %}
{{ contacts|raw }}
{% else %}
{# Don't do `contacts|length` within the loop, that resets the pointer. #}
{% set length = contacts|length %}
{% for i, contact in contacts %}
<div class=\"
flex
items-center
justify-between
{% if not pimcore_input('title').isEmpty() || length > 1 %}
{{ loop.index == length ? 'pt-6' : 'py-6 border-b border-white border-opacity-20' }}
{% endif %}
\">
{% if contact.image %}
<div class=\"block mr-4\">
{{ contact.image.getThumbnail('contact-people-image').html({
imgAttributes: {class: 'rounded-full'}
})|raw }}
</div>
{% endif %}
<div class=\"flex flex-col flex-grow\">
<span class=\"text-xl font-bold\">{{ contact.name }}</span>
<span>{{ contact.function }}</span>
</div>
<div class=\"flex\">
{% if contact.phone %}
<a href=\"tel:{{ contact.phone | phone }}\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"m19.243 13.03-4-1a1.004 1.004 0 0 0-1.075.416l-2.56 3.84a17.084 17.084 0 0 1-7.894-7.894l3.84-2.56a1 1 0 0 0 .416-1.074l-1-4A1 1 0 0 0 6 0H1a1 1 0 0 0-1 1c.012 10.489 8.511 18.988 19 19a1 1 0 0 0 1-1v-5a1 1 0 0 0-.757-.97Z\"/></svg>
</a>
{% endif %}
{% if document.hasProperty('contactPage') and data.request.url != document.getProperty('contactPage').getUrl() %}
<a href=\"{{ document.getProperty('contactPage').getUrl() | trimUrl }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M2 14.5V6.04l7.594 3.375a.999.999 0 0 0 .812 0L18 6.039V14.5H2Zm16-12v1.35l-8 3.555-8-3.554V2.5h16Zm2 1.98V1.5a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4.48Z\"/></svg>
</a>
{% endif %}
{# Temporarily disabled in favor of ↑ (COOL-186) #}
{#<a href=\"mailto:{{ contact.email }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M2 14.5V6.04l7.594 3.375a.999.999 0 0 0 .812 0L18 6.039V14.5H2Zm16-12v1.35l-8 3.555-8-3.554V2.5h16Zm2 1.98V1.5a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4.48Z\"/></svg>
</a>#}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/contact-people-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/contact-people-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["set" => 1, "embed" => 6];
static $filters = [];
static $functions = ["pimcore_relations" => 1];
try {
$this->sandbox->checkSecurity(
['set', 'embed'],
[],
['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/contact-people-brick/view.html.twig */
class __TwigTemplate_02915b7cb4ea21c77cf8982463256c3d91214bedab16f1757fc76bc2b84e62c8___1649994769 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/contact-people-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/contact-people-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/contact-people-brick/view.html.twig", 6);
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 " <!-- Contact Colleagues -->
<section class=\"container py-10\">
";
// line 11
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 11, $this->source); })()) || !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "contact-people-title"), "isEmpty", [], "method", false, false, true, 11))) {
// line 12
yield " <h2 class=\"my-10 text-4xl\">";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "contact-people-title", ["placeholder" => "Titel"]);
yield "</h2>
";
}
// line 14
yield "
<div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
";
// line 16
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })()) || !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "isEmpty", [], "method", false, false, true, 16))) {
// line 17
yield " <h3 class=\"text-2xl leading-7\">";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Titel"]);
yield "</h3>
";
}
// line 19
yield "
";
// line 20
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 20, $this->source); })())) {
// line 21
yield " ";
yield $this->sandbox->ensureToStringAllowed((isset($context["contacts"]) || array_key_exists("contacts", $context) ? $context["contacts"] : (function () { throw new RuntimeError('Variable "contacts" does not exist.', 21, $this->source); })()), 21, $this->source);
yield "
";
} else {
// line 23
yield " ";
// line 24
yield " ";
$context["length"] = Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->sandbox->ensureToStringAllowed((isset($context["contacts"]) || array_key_exists("contacts", $context) ? $context["contacts"] : (function () { throw new RuntimeError('Variable "contacts" does not exist.', 24, $this->source); })()), 24, $this->source));
// line 25
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["contacts"]) || array_key_exists("contacts", $context) ? $context["contacts"] : (function () { throw new RuntimeError('Variable "contacts" does not exist.', 25, $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["i"] => $context["contact"]) {
// line 26
yield " <div class=\"
flex
items-center
justify-between
";
// line 30
if (( !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "isEmpty", [], "method", false, false, true, 30) || ((isset($context["length"]) || array_key_exists("length", $context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.', 30, $this->source); })()) > 1))) {
// line 31
yield " ";
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 31) == (isset($context["length"]) || array_key_exists("length", $context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.', 31, $this->source); })()))) ? ("pt-6") : ("py-6 border-b border-white border-opacity-20"));
yield "
";
}
// line 33
yield " \">
";
// line 34
if (CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "image", [], "any", false, false, true, 34)) {
// line 35
yield " <div class=\"block mr-4\">
";
// line 36
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "image", [], "any", false, false, true, 36), "getThumbnail", ["contact-people-image"], "method", false, false, true, 36), "html", [["imgAttributes" => ["class" => "rounded-full"]]], "method", false, false, true, 36), 36, $this->source);
// line 38
yield "
</div>
";
}
// line 41
yield " <div class=\"flex flex-col flex-grow\">
<span class=\"text-xl font-bold\">";
// line 42
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "name", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
yield "</span>
<span>";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "function", [], "any", false, false, true, 43), 43, $this->source), "html", null, true);
yield "</span>
</div>
<div class=\"flex\">
";
// line 46
if (CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "phone", [], "any", false, false, true, 46)) {
// line 47
yield " <a href=\"tel:";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PhoneExtension']->phone($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["contact"], "phone", [], "any", false, false, true, 47), 47, $this->source)), "html", null, true);
yield "\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"m19.243 13.03-4-1a1.004 1.004 0 0 0-1.075.416l-2.56 3.84a17.084 17.084 0 0 1-7.894-7.894l3.84-2.56a1 1 0 0 0 .416-1.074l-1-4A1 1 0 0 0 6 0H1a1 1 0 0 0-1 1c.012 10.489 8.511 18.988 19 19a1 1 0 0 0 1-1v-5a1 1 0 0 0-.757-.97Z\"/></svg>
</a>
";
}
// line 51
yield " ";
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.', 51, $this->source); })()), "hasProperty", ["contactPage"], "method", false, false, true, 51) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 51, $this->source); })()), "request", [], "any", false, false, true, 51), "url", [], "any", false, false, true, 51) != 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.', 51, $this->source); })()), "getProperty", ["contactPage"], "method", false, false, true, 51), "getUrl", [], "method", false, false, true, 51)))) {
// line 52
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.', 52, $this->source); })()), "getProperty", ["contactPage"], "method", false, false, true, 52), "getUrl", [], "method", false, false, true, 52), 52, $this->source)), "html", null, true);
yield "\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M2 14.5V6.04l7.594 3.375a.999.999 0 0 0 .812 0L18 6.039V14.5H2Zm16-12v1.35l-8 3.555-8-3.554V2.5h16Zm2 1.98V1.5a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4.48Z\"/></svg>
</a>
";
}
// line 56
yield " ";
// line 57
yield " ";
// line 60
yield " </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['i'], $context['contact'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
yield " ";
}
// line 64
yield " </div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/contact-people-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 397 => 64, 394 => 63, 378 => 60, 376 => 57, 374 => 56, 366 => 52, 363 => 51, 355 => 47, 353 => 46, 347 => 43, 343 => 42, 340 => 41, 335 => 38, 333 => 36, 330 => 35, 328 => 34, 325 => 33, 319 => 31, 317 => 30, 311 => 26, 293 => 25, 290 => 24, 288 => 23, 282 => 21, 280 => 20, 277 => 19, 271 => 17, 269 => 16, 265 => 14, 259 => 12, 257 => 11, 253 => 9, 240 => 8, 55 => 6, 52 => 5, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set contacts = pimcore_relations('contacts', {
classes: ['ContactPerson'],
title: 'Contactpersonen'
}) %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Contact Colleagues -->
<section class=\"container py-10\">
{% if editmode or not pimcore_input('contact-people-title').isEmpty() %}
<h2 class=\"my-10 text-4xl\">{{ pimcore_input('contact-people-title', { placeholder: 'Titel' }) }}</h2>
{% endif %}
<div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
{% if editmode or not pimcore_input('title').isEmpty() %}
<h3 class=\"text-2xl leading-7\">{{ pimcore_input('title', { placeholder: 'Titel' }) }}</h3>
{% endif %}
{% if editmode %}
{{ contacts|raw }}
{% else %}
{# Don't do `contacts|length` within the loop, that resets the pointer. #}
{% set length = contacts|length %}
{% for i, contact in contacts %}
<div class=\"
flex
items-center
justify-between
{% if not pimcore_input('title').isEmpty() || length > 1 %}
{{ loop.index == length ? 'pt-6' : 'py-6 border-b border-white border-opacity-20' }}
{% endif %}
\">
{% if contact.image %}
<div class=\"block mr-4\">
{{ contact.image.getThumbnail('contact-people-image').html({
imgAttributes: {class: 'rounded-full'}
})|raw }}
</div>
{% endif %}
<div class=\"flex flex-col flex-grow\">
<span class=\"text-xl font-bold\">{{ contact.name }}</span>
<span>{{ contact.function }}</span>
</div>
<div class=\"flex\">
{% if contact.phone %}
<a href=\"tel:{{ contact.phone | phone }}\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"m19.243 13.03-4-1a1.004 1.004 0 0 0-1.075.416l-2.56 3.84a17.084 17.084 0 0 1-7.894-7.894l3.84-2.56a1 1 0 0 0 .416-1.074l-1-4A1 1 0 0 0 6 0H1a1 1 0 0 0-1 1c.012 10.489 8.511 18.988 19 19a1 1 0 0 0 1-1v-5a1 1 0 0 0-.757-.97Z\"/></svg>
</a>
{% endif %}
{% if document.hasProperty('contactPage') and data.request.url != document.getProperty('contactPage').getUrl() %}
<a href=\"{{ document.getProperty('contactPage').getUrl() | trimUrl }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M2 14.5V6.04l7.594 3.375a.999.999 0 0 0 .812 0L18 6.039V14.5H2Zm16-12v1.35l-8 3.555-8-3.554V2.5h16Zm2 1.98V1.5a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4.48Z\"/></svg>
</a>
{% endif %}
{# Temporarily disabled in favor of ↑ (COOL-186) #}
{#<a href=\"mailto:{{ contact.email }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M2 14.5V6.04l7.594 3.375a.999.999 0 0 0 .812 0L18 6.039V14.5H2Zm16-12v1.35l-8 3.555-8-3.554V2.5h16Zm2 1.98V1.5a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4.48Z\"/></svg>
</a>#}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/contact-people-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/contact-people-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 6, "if" => 11, "set" => 24, "for" => 25];
static $filters = ["raw" => 21, "length" => 24, "escape" => 42, "phone" => 47, "trimUrl" => 52];
static $functions = ["pimcore_input" => 11];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'set', 'for'],
['raw', 'length', 'escape', 'phone', 'trimUrl'],
['pimcore_input'],
$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;
}
}
}