var/cache/dev/twig/b0/b046012dee225f9f1a5c5674859bb7b23529a7b9398aa28018f1f895988244f3.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/contact-people-brick/view.html.twig */
  16. class __TwigTemplate_02915b7cb4ea21c77cf8982463256c3d91214bedab16f1757fc76bc2b84e62c8 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/contact-people-brick/view.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/contact-people-brick/view.html.twig"));
  40.         // line 1
  41.         $context["contacts"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""contacts", ["classes" => ["ContactPerson"], "title" => "Contactpersonen"]);
  42.         // line 5
  43.         yield "
  44. ";
  45.         // line 6
  46.         yield from $this->loadTemplate("areas/contact-people-brick/view.html.twig""areas/contact-people-brick/view.html.twig"6"1649994769")->unwrap()->yield($context);
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.         yield from [];
  52.     }
  53.     /**
  54.      * @codeCoverageIgnore
  55.      */
  56.     public function getTemplateName(): string
  57.     {
  58.         return "areas/contact-people-brick/view.html.twig";
  59.     }
  60.     /**
  61.      * @codeCoverageIgnore
  62.      */
  63.     public function isTraitable(): bool
  64.     {
  65.         return false;
  66.     }
  67.     /**
  68.      * @codeCoverageIgnore
  69.      */
  70.     public function getDebugInfo(): array
  71.     {
  72.         return array (  55 => 6,  52 => 5,  50 => 1,);
  73.     }
  74.     public function getSourceContext(): Source
  75.     {
  76.         return new Source("{% set contacts = pimcore_relations('contacts', {
  77.     classes: ['ContactPerson'],
  78.     title: 'Contactpersonen'
  79. }) %}
  80. {% embed 'app/area-brick-layout.html.twig' %}
  81.     {% block content %}
  82.         <!-- Contact Colleagues -->
  83.         <section class=\"container py-10\">
  84.             {% if editmode or not pimcore_input('contact-people-title').isEmpty() %}
  85.                 <h2 class=\"my-10 text-4xl\">{{ pimcore_input('contact-people-title', { placeholder: 'Titel' }) }}</h2>
  86.             {% endif %}
  87.             <div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
  88.                 {% if editmode or not pimcore_input('title').isEmpty() %}
  89.                     <h3 class=\"text-2xl leading-7\">{{ pimcore_input('title', { placeholder: 'Titel' }) }}</h3>
  90.                 {% endif %}
  91.                 {% if editmode %}
  92.                     {{ contacts|raw }}
  93.                 {% else %}
  94.                     {# Don't do `contacts|length` within the loop, that resets the pointer. #}
  95.                     {% set length = contacts|length %}
  96.                     {% for i, contact in contacts %}
  97.                         <div class=\"
  98.                             flex
  99.                             items-center
  100.                             justify-between
  101.                             {% if not pimcore_input('title').isEmpty() || length > 1 %}
  102.                                 {{ loop.index == length ? 'pt-6' : 'py-6 border-b border-white border-opacity-20' }}
  103.                             {% endif %}
  104.                         \">
  105.                             {% if contact.image %}
  106.                                 <div class=\"block mr-4\">
  107.                                     {{ contact.image.getThumbnail('contact-people-image').html({
  108.                                         imgAttributes: {class: 'rounded-full'}
  109.                                     })|raw }}
  110.                                 </div>
  111.                             {% endif %}
  112.                             <div class=\"flex flex-col flex-grow\">
  113.                                 <span class=\"text-xl font-bold\">{{ contact.name }}</span>
  114.                                 <span>{{ contact.function }}</span>
  115.                             </div>
  116.                             <div class=\"flex\">
  117.                                 {% if contact.phone %}
  118.                                     <a href=\"tel:{{ contact.phone | phone }}\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
  119.                                         <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>
  120.                                     </a>
  121.                                 {% endif %}
  122.                                 {% if document.hasProperty('contactPage') and data.request.url != document.getProperty('contactPage').getUrl() %}
  123.                                     <a href=\"{{ document.getProperty('contactPage').getUrl() | trimUrl }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
  124.                                         <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>
  125.                                     </a>
  126.                                 {% endif %}
  127.                                 {# Temporarily disabled in favor of ↑ (COOL-186) #}
  128.                                 {#<a href=\"mailto:{{ contact.email }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
  129.                                     <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>
  130.                                 </a>#}
  131.                             </div>
  132.                         </div>
  133.                     {% endfor %}
  134.                 {% endif %}
  135.             </div>
  136.         </section>
  137.     {% endblock %}
  138. {% endembed %}
  139. ""areas/contact-people-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/contact-people-brick/view.html.twig");
  140.     }
  141.     
  142.     public function checkSecurity()
  143.     {
  144.         static $tags = ["set" => 1"embed" => 6];
  145.         static $filters = [];
  146.         static $functions = ["pimcore_relations" => 1];
  147.         try {
  148.             $this->sandbox->checkSecurity(
  149.                 ['set''embed'],
  150.                 [],
  151.                 ['pimcore_relations'],
  152.                 $this->source
  153.             );
  154.         } catch (SecurityError $e) {
  155.             $e->setSourceContext($this->source);
  156.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  157.                 $e->setTemplateLine($tags[$e->getTagName()]);
  158.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  159.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  160.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  161.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  162.             }
  163.             throw $e;
  164.         }
  165.     }
  166. }
  167. /* areas/contact-people-brick/view.html.twig */
  168. class __TwigTemplate_02915b7cb4ea21c77cf8982463256c3d91214bedab16f1757fc76bc2b84e62c8___1649994769 extends Template
  169. {
  170.     private Source $source;
  171.     /**
  172.      * @var array<string, Template>
  173.      */
  174.     private array $macros = [];
  175.     public function __construct(Environment $env)
  176.     {
  177.         parent::__construct($env);
  178.         $this->source $this->getSourceContext();
  179.         $this->blocks = [
  180.             'content' => [$this'block_content'],
  181.         ];
  182.         $this->sandbox $this->extensions[SandboxExtension::class];
  183.         $this->checkSecurity();
  184.     }
  185.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  186.     {
  187.         return "app/area-brick-layout.html.twig";
  188.     }
  189.     protected function doDisplay(array $context, array $blocks = []): iterable
  190.     {
  191.         $macros $this->macros;
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/contact-people-brick/view.html.twig"));
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/contact-people-brick/view.html.twig"));
  196.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/contact-people-brick/view.html.twig"6);
  197.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  198.         
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  200.         
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  202.     }
  203.     // line 8
  204.     /**
  205.      * @return iterable<null|scalar|\Stringable>
  206.      */
  207.     public function block_content(array $context, array $blocks = []): iterable
  208.     {
  209.         $macros $this->macros;
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  212.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  213.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  214.         // line 9
  215.         yield "        <!-- Contact Colleagues -->
  216.         <section class=\"container py-10\">
  217.             ";
  218.         // line 11
  219.         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"falsefalsetrue11))) {
  220.             // line 12
  221.             yield "                <h2 class=\"my-10 text-4xl\">";
  222.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""contact-people-title", ["placeholder" => "Titel"]);
  223.             yield "</h2>
  224.             ";
  225.         }
  226.         // line 14
  227.         yield "
  228.             <div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
  229.                 ";
  230.         // line 16
  231.         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"falsefalsetrue16))) {
  232.             // line 17
  233.             yield "                    <h3 class=\"text-2xl leading-7\">";
  234.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Titel"]);
  235.             yield "</h3>
  236.                 ";
  237.         }
  238.         // line 19
  239.         yield "
  240.                 ";
  241.         // line 20
  242.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'20$this->source); })())) {
  243.             // line 21
  244.             yield "                    ";
  245.             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);
  246.             yield "
  247.                 ";
  248.         } else {
  249.             // line 23
  250.             yield "                    ";
  251.             // line 24
  252.             yield "                    ";
  253.             $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));
  254.             // line 25
  255.             yield "                    ";
  256.             $context['_parent'] = $context;
  257.             $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); })()));
  258.             $context['loop'] = [
  259.               'parent' => $context['_parent'],
  260.               'index0' => 0,
  261.               'index'  => 1,
  262.               'first'  => true,
  263.             ];
  264.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  265.                 $length count($context['_seq']);
  266.                 $context['loop']['revindex0'] = $length 1;
  267.                 $context['loop']['revindex'] = $length;
  268.                 $context['loop']['length'] = $length;
  269.                 $context['loop']['last'] = === $length;
  270.             }
  271.             foreach ($context['_seq'] as $context["i"] => $context["contact"]) {
  272.                 // line 26
  273.                 yield "                        <div class=\"
  274.                             flex
  275.                             items-center
  276.                             justify-between
  277.                             ";
  278.                 // line 30
  279.                 if (( !CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title"), "isEmpty", [], "method"falsefalsetrue30) || ((isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'30$this->source); })()) > 1))) {
  280.                     // line 31
  281.                     yield "                                ";
  282.                     yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue31) == (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"));
  283.                     yield "
  284.                             ";
  285.                 }
  286.                 // line 33
  287.                 yield "                        \">
  288.                             ";
  289.                 // line 34
  290.                 if (CoreExtension::getAttribute($this->env$this->source$context["contact"], "image", [], "any"falsefalsetrue34)) {
  291.                     // line 35
  292.                     yield "                                <div class=\"block mr-4\">
  293.                                     ";
  294.                     // line 36
  295.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["contact"], "image", [], "any"falsefalsetrue36), "getThumbnail", ["contact-people-image"], "method"falsefalsetrue36), "html", [["imgAttributes" => ["class" => "rounded-full"]]], "method"falsefalsetrue36), 36$this->source);
  296.                     // line 38
  297.                     yield "
  298.                                 </div>
  299.                             ";
  300.                 }
  301.                 // line 41
  302.                 yield "                            <div class=\"flex flex-col flex-grow\">
  303.                                 <span class=\"text-xl font-bold\">";
  304.                 // line 42
  305.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["contact"], "name", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue);
  306.                 yield "</span>
  307.                                 <span>";
  308.                 // line 43
  309.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["contact"], "function", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  310.                 yield "</span>
  311.                             </div>
  312.                             <div class=\"flex\">
  313.                                 ";
  314.                 // line 46
  315.                 if (CoreExtension::getAttribute($this->env$this->source$context["contact"], "phone", [], "any"falsefalsetrue46)) {
  316.                     // line 47
  317.                     yield "                                    <a href=\"tel:";
  318.                     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"falsefalsetrue47), 47$this->source)), "html"nulltrue);
  319.                     yield "\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
  320.                                         <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>
  321.                                     </a>
  322.                                 ";
  323.                 }
  324.                 // line 51
  325.                 yield "                                ";
  326.                 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"falsefalsetrue51) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue51), "url", [], "any"falsefalsetrue51) != CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue51), "getUrl", [], "method"falsefalsetrue51)))) {
  327.                     // line 52
  328.                     yield "                                    <a href=\"";
  329.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue52), "getUrl", [], "method"falsefalsetrue52), 52$this->source)), "html"nulltrue);
  330.                     yield "\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
  331.                                         <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>
  332.                                     </a>
  333.                                 ";
  334.                 }
  335.                 // line 56
  336.                 yield "                                ";
  337.                 // line 57
  338.                 yield "                                ";
  339.                 // line 60
  340.                 yield "                            </div>
  341.                         </div>
  342.                     ";
  343.                 ++$context['loop']['index0'];
  344.                 ++$context['loop']['index'];
  345.                 $context['loop']['first'] = false;
  346.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  347.                     --$context['loop']['revindex0'];
  348.                     --$context['loop']['revindex'];
  349.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  350.                 }
  351.             }
  352.             $_parent $context['_parent'];
  353.             unset($context['_seq'], $context['i'], $context['contact'], $context['_parent'], $context['loop']);
  354.             $context array_intersect_key($context$_parent) + $_parent;
  355.             // line 63
  356.             yield "                ";
  357.         }
  358.         // line 64
  359.         yield "            </div>
  360.         </section>
  361.     ";
  362.         
  363.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  364.         
  365.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  366.         yield from [];
  367.     }
  368.     /**
  369.      * @codeCoverageIgnore
  370.      */
  371.     public function getTemplateName(): string
  372.     {
  373.         return "areas/contact-people-brick/view.html.twig";
  374.     }
  375.     /**
  376.      * @codeCoverageIgnore
  377.      */
  378.     public function isTraitable(): bool
  379.     {
  380.         return false;
  381.     }
  382.     /**
  383.      * @codeCoverageIgnore
  384.      */
  385.     public function getDebugInfo(): array
  386.     {
  387.         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,);
  388.     }
  389.     public function getSourceContext(): Source
  390.     {
  391.         return new Source("{% set contacts = pimcore_relations('contacts', {
  392.     classes: ['ContactPerson'],
  393.     title: 'Contactpersonen'
  394. }) %}
  395. {% embed 'app/area-brick-layout.html.twig' %}
  396.     {% block content %}
  397.         <!-- Contact Colleagues -->
  398.         <section class=\"container py-10\">
  399.             {% if editmode or not pimcore_input('contact-people-title').isEmpty() %}
  400.                 <h2 class=\"my-10 text-4xl\">{{ pimcore_input('contact-people-title', { placeholder: 'Titel' }) }}</h2>
  401.             {% endif %}
  402.             <div class=\"relative z-20 block p-10 text-white bg-blue-300 rounded-md\">
  403.                 {% if editmode or not pimcore_input('title').isEmpty() %}
  404.                     <h3 class=\"text-2xl leading-7\">{{ pimcore_input('title', { placeholder: 'Titel' }) }}</h3>
  405.                 {% endif %}
  406.                 {% if editmode %}
  407.                     {{ contacts|raw }}
  408.                 {% else %}
  409.                     {# Don't do `contacts|length` within the loop, that resets the pointer. #}
  410.                     {% set length = contacts|length %}
  411.                     {% for i, contact in contacts %}
  412.                         <div class=\"
  413.                             flex
  414.                             items-center
  415.                             justify-between
  416.                             {% if not pimcore_input('title').isEmpty() || length > 1 %}
  417.                                 {{ loop.index == length ? 'pt-6' : 'py-6 border-b border-white border-opacity-20' }}
  418.                             {% endif %}
  419.                         \">
  420.                             {% if contact.image %}
  421.                                 <div class=\"block mr-4\">
  422.                                     {{ contact.image.getThumbnail('contact-people-image').html({
  423.                                         imgAttributes: {class: 'rounded-full'}
  424.                                     })|raw }}
  425.                                 </div>
  426.                             {% endif %}
  427.                             <div class=\"flex flex-col flex-grow\">
  428.                                 <span class=\"text-xl font-bold\">{{ contact.name }}</span>
  429.                                 <span>{{ contact.function }}</span>
  430.                             </div>
  431.                             <div class=\"flex\">
  432.                                 {% if contact.phone %}
  433.                                     <a href=\"tel:{{ contact.phone | phone }}\" class=\"flex items-center justify-center w-10 h-10 mr-6 bg-white rounded-full\">
  434.                                         <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>
  435.                                     </a>
  436.                                 {% endif %}
  437.                                 {% if document.hasProperty('contactPage') and data.request.url != document.getProperty('contactPage').getUrl() %}
  438.                                     <a href=\"{{ document.getProperty('contactPage').getUrl() | trimUrl }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
  439.                                         <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>
  440.                                     </a>
  441.                                 {% endif %}
  442.                                 {# Temporarily disabled in favor of ↑ (COOL-186) #}
  443.                                 {#<a href=\"mailto:{{ contact.email }}\" target=\"_blank\" class=\"flex items-center justify-center w-10 h-10 bg-white rounded-full\">
  444.                                     <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>
  445.                                 </a>#}
  446.                             </div>
  447.                         </div>
  448.                     {% endfor %}
  449.                 {% endif %}
  450.             </div>
  451.         </section>
  452.     {% endblock %}
  453. {% endembed %}
  454. ""areas/contact-people-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/contact-people-brick/view.html.twig");
  455.     }
  456.     
  457.     public function checkSecurity()
  458.     {
  459.         static $tags = ["extends" => 6"if" => 11"set" => 24"for" => 25];
  460.         static $filters = ["raw" => 21"length" => 24"escape" => 42"phone" => 47"trimUrl" => 52];
  461.         static $functions = ["pimcore_input" => 11];
  462.         try {
  463.             $this->sandbox->checkSecurity(
  464.                 ['extends''if''set''for'],
  465.                 ['raw''length''escape''phone''trimUrl'],
  466.                 ['pimcore_input'],
  467.                 $this->source
  468.             );
  469.         } catch (SecurityError $e) {
  470.             $e->setSourceContext($this->source);
  471.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  472.                 $e->setTemplateLine($tags[$e->getTagName()]);
  473.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  474.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  475.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  476.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  477.             }
  478.             throw $e;
  479.         }
  480.     }
  481. }