var/cache/dev/twig/a8/a8415de9da91b7da4165afb7ee94b767195198f692966de7fa41a17cbba962d9.php line 350

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/sector-cards-brick/view.html.twig */
  16. class __TwigTemplate_22fc3bbd525bd9a07b6945f6e15c0221f1b283b7d1da981c045e179a20d67844 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/sector-cards-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/sector-cards-brick/view.html.twig"));
  40.         // line 2
  41.         $context["style"] = ($context["style"] ?? (((CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""style"), "getData", [], "any"truetruetrue2) &&  !(null === CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""style"), "getData", [], "any"falsefalsetrue2)))) ? (CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""style"), "getData", [], "any"falsefalsetrue2)) : ("images")));
  42.         // line 4
  43.         $context["sectors"] = ($context["sectors"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""sectors"), "getElements", [], "method"falsefalsetrue4));
  44.         // line 5
  45.         $context["clients"] = ($context["clients"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""clients"), "getElements", [], "method"falsefalsetrue5));
  46.         // line 6
  47.         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);
  48.         // line 7
  49.         yield from $this->loadTemplate("areas/sector-cards-brick/view.html.twig""areas/sector-cards-brick/view.html.twig"7"226322389")->unwrap()->yield($context);
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.         yield from [];
  55.     }
  56.     /**
  57.      * @codeCoverageIgnore
  58.      */
  59.     public function getTemplateName(): string
  60.     {
  61.         return "areas/sector-cards-brick/view.html.twig";
  62.     }
  63.     /**
  64.      * @codeCoverageIgnore
  65.      */
  66.     public function isTraitable(): bool
  67.     {
  68.         return false;
  69.     }
  70.     /**
  71.      * @codeCoverageIgnore
  72.      */
  73.     public function getDebugInfo(): array
  74.     {
  75.         return array (  58 => 7,  56 => 6,  54 => 5,  52 => 4,  50 => 2,);
  76.     }
  77.     public function getSourceContext(): Source
  78.     {
  79.         return new Source("{# Defined as EditableDialog field #}
  80. {% set style = style ?? pimcore_select('style').getData ?? \"images\" %}
  81. {# Defined as EditableDialog field #}
  82. {% set sectors = sectors ?? pimcore_relations('sectors').getElements() %}
  83. {% set clients = clients ?? pimcore_relations('clients').getElements() %}
  84. {% include 'areas/sector-cards-brick/partials/editmode/_no-objects-found.html.twig' %}
  85. {% embed 'app/area-brick-layout.html.twig' %}
  86.     {% block content %}
  87.         {% if style == 'images' and sectors|length > 0 %}
  88.             <!-- Branches 4 columns -->
  89.             <section class=\"{{ containerClasses ?? 'relative py-10' }} {{ defaultBackgroundColor ?? \"\" }}\">
  90.                 {% if disableBackground is not defined or not disableBackground %}
  91.                     <div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
  92.                         {{ defaultSecondBackgroundColor ?? \"md:bg-blue-200\" }}
  93.                         {{ defaultSecondBackgroundPosition ?? \"top-0\" }}
  94.                     \">
  95.                         <!-- empty -->
  96.                     </div>
  97.                 {% endif %}
  98.                 <div class=\"container relative z-20\">
  99.                     <div class=\"grid grid-cols-12 gap-8\">
  100.                         {% for sector in sectors %}
  101.                             {% set page = sector.page() %}
  102.                             <a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
  103.                                 <div class=\"relative hidden overflow-hidden rounded-md md:block\">
  104.                                     {% set image = sector.visuals.current() %}
  105.                                     {% if image %}
  106.                                         {{ image.getThumbnail('sector-card').html({
  107.                                             pictureAttributes: {class: ''},
  108.                                             imgAttributes: {class: 'w-full'},
  109.                                         })|raw }}
  110.                                     {% endif %}
  111.                                     {% set icon = sector.icon() %}
  112.                                     {% if icon %}
  113.                                         <span class=\"absolute left-6 bottom-6\">
  114.                                             {{ icon.getThumbnail('text-and-link-icon').html({
  115.                                                 pictureAttributes: {class: 'rounded-full '},
  116.                                                 imgAttributes: {class: 'w-full h-full'},
  117.                                             })|raw }}
  118.                                         </span>
  119.                                     {% endif %}
  120.                                 </div>
  121.                                 <div class=\"flex items-center justify-between md:mt-4\">
  122.                                     {% set icon = sector.icon() %}
  123.                                     {% if icon %}
  124.                                         <span class=\"mr-2.5 md:hidden\">
  125.                                             {{ icon.getThumbnail('text-and-link-icon').html({
  126.                                                 pictureAttributes: {class: 'rounded-full '},
  127.                                                 imgAttributes: {class: 'w-full h-full'},
  128.                                             })|raw }}
  129.                                         </span>
  130.                                     {% endif %}
  131.                                     {% if disableBackground is defined and disableBackground %}
  132.                                         {% set classes = \"text-blue\" %}
  133.                                     {% else %}
  134.                                         {% set classes = (defaultSecondBackgroundColor ?? null) === 'bg-blue-300' ? \"text-blue md:text-white\" : \"text-blue md:text-white\" %}
  135.                                     {% endif %}
  136.                                     <h3 class=\"grow text-lg font-bold {{ classes }}\">{{ sector.branchename }}</h3>
  137.                                     <span
  138.                                         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\">
  139.                                         <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  140.                                             <path fill=\"currentColor\" fill-rule=\"currentColor\"
  141.                                                   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>
  142.                                         </svg>
  143.                                     </span>
  144.                                 </div>
  145.                             </a>
  146.                         {% endfor %}
  147.                     </div>
  148.                 </div>
  149.             </section>
  150.         {% elseif style == 'icons' and sectors|length > 0 %}
  151.             <section class=\"py-8 bg-blue-200 md:py-20\">
  152.                 <div class=\"container\">
  153.                     {% if clients|default(null) %}
  154.                         <section>
  155.                             {% for client in clients %}
  156.                                 <div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
  157.                                     <div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
  158.                                         {% if client.media.items[0] is defined and client.media.items[0] is not null %}
  159.                                             {{ client.media.items[0].thumbnail('testimonial-large').html(
  160.                                                 {
  161.                                                     'pictureAttributes': {
  162.                                                     'class': 'inline-block overflow-hidden shadow-lg sm:rounded-md w-full',
  163.                                                 },
  164.                                                     'imgAttributes': {
  165.                                                     'class': 'object-cover object-center w-full h-full'
  166.                                                 },
  167.                                                 }
  168.                                             )|raw }}
  169.                                         {% endif %}
  170.                                     </div>
  171.                                     <div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
  172.                                         {% include 'areas/testimonial-brick/partials/editmode/_no-client-details-found.html.twig' %}
  173.                                         <div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
  174.                                             <div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
  175.                                                 <blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
  176.                                                     {% if client.story %}
  177.                                                         “{{ client.story }}”
  178.                                                     {% endif %}
  179.                                                 </blockquote>
  180.                                                 <span class=\"font-bold\">
  181.                                         {% if client.job_title and client.contact %}
  182.                                             {{ client.contact }}, {{ client.job_title }}
  183.                                         {% elseif client.contact %}
  184.                                             {{ client.contact }}
  185.                                         {% endif %}
  186.                                     </span>
  187.                                             </div>
  188.                                             {% if client.logo %}
  189.                                                 <span class=\"flex justify-center py-6\">
  190.                                         {{ client.logo.thumbnail('testimonial-small').html({
  191.                                             pictureAttributes: {class: 'p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide'},
  192.                                         }) | raw }}
  193.                                     </span>
  194.                                             {% endif %}
  195.                                             {% if document.getProperty('clientArchivePage') %}
  196.                                                 <a
  197.                                                     class=\"button button__secondary button__secondary--white button--no-l-padding group\"
  198.                                                     href=\"{{ document.getProperty('clientArchivePage').url | trimUrl }}\"
  199.                                                 >
  200.                                         <span
  201.                                             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\">
  202.                                             <svg class=\"h-3.5 w-3.5\"
  203.                                                  xmlns=\"http://www.w3.org/2000/svg\"
  204.                                                  viewBox=\"0 0 16 16\">
  205.                                                 <path fill=\"currentColor\" fill-rule=\"currentColor\"
  206.                                                       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\"/>
  207.                                             </svg>
  208.                                         </span>
  209.                                                     {{ \"Bekijk alle verhalen\"|trans }}
  210.                                                 </a>
  211.                                             {% endif %}
  212.                                         </div>
  213.                                     </div>
  214.                                 </div>
  215.                             {% endfor %}
  216.                         </section>
  217.                     {% endif %}
  218.                     {% if editmode %}
  219.                         {% if showArchiveLink is not defined %}
  220.                             <label>
  221.                                 {{ pimcore_checkbox('showArchiveLink', { reload: true }) }}
  222.                                 <span>Toon link naar overzichtspagina</span>
  223.                             </label>
  224.                         {% endif %}
  225.                     {% endif %}
  226.                     <div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
  227.                         {% for sector in sectors %}
  228.                             {% set page = sector.page() %}
  229.                             <a href=\"{{ page ? (page.url | trimUrl) : '' }}\"
  230.                                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\">
  231.                                 {% if sector.icon %}
  232.                                     {{ sector.icon.getThumbnail('sector-card-icon').html({
  233.                                         pictureAttributes: {class: 'inline mb-4 rounded-full '},
  234.                                         imgAttributes: {class: 'w-full h-full'},
  235.                                     })|raw }}
  236.                                 {% endif %}
  237.                                 <span>{{ sector.branchename }}</span>
  238.                             </a>
  239.                         {% endfor %}
  240.                         {% if showArchiveLink ?? pimcore_checkbox('showArchiveLink').isChecked() %}
  241.                             <a
  242.                                 href=\"{{ document.getProperty('sectorArchivePage').url | trimUrl }}\"
  243.                                 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\"
  244.                             >
  245.                                 <svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  246.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  247.                                           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\"/>
  248.                                 </svg>
  249.                                 <span>{{ 'Bekijk alles' | trans }}</span>
  250.                             </a>
  251.                         {% endif %}
  252.                     </div>
  253.                 </div>
  254.             </section>
  255.         {% endif %}
  256.     {% endblock %}
  257. {% endembed %}
  258. ""areas/sector-cards-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/sector-cards-brick/view.html.twig");
  259.     }
  260.     
  261.     public function checkSecurity()
  262.     {
  263.         static $tags = ["set" => 2"include" => 6"embed" => 7];
  264.         static $filters = [];
  265.         static $functions = ["pimcore_select" => 2"pimcore_relations" => 4];
  266.         try {
  267.             $this->sandbox->checkSecurity(
  268.                 ['set''include''embed'],
  269.                 [],
  270.                 ['pimcore_select''pimcore_relations'],
  271.                 $this->source
  272.             );
  273.         } catch (SecurityError $e) {
  274.             $e->setSourceContext($this->source);
  275.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  276.                 $e->setTemplateLine($tags[$e->getTagName()]);
  277.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  278.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  279.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  280.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  281.             }
  282.             throw $e;
  283.         }
  284.     }
  285. }
  286. /* areas/sector-cards-brick/view.html.twig */
  287. class __TwigTemplate_22fc3bbd525bd9a07b6945f6e15c0221f1b283b7d1da981c045e179a20d67844___226322389 extends Template
  288. {
  289.     private Source $source;
  290.     /**
  291.      * @var array<string, Template>
  292.      */
  293.     private array $macros = [];
  294.     public function __construct(Environment $env)
  295.     {
  296.         parent::__construct($env);
  297.         $this->source $this->getSourceContext();
  298.         $this->blocks = [
  299.             'content' => [$this'block_content'],
  300.         ];
  301.         $this->sandbox $this->extensions[SandboxExtension::class];
  302.         $this->checkSecurity();
  303.     }
  304.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  305.     {
  306.         return "app/area-brick-layout.html.twig";
  307.     }
  308.     protected function doDisplay(array $context, array $blocks = []): iterable
  309.     {
  310.         $macros $this->macros;
  311.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  312.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/sector-cards-brick/view.html.twig"));
  313.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  314.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/sector-cards-brick/view.html.twig"));
  315.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/sector-cards-brick/view.html.twig"7);
  316.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  317.         
  318.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  319.         
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  321.     }
  322.     // line 8
  323.     /**
  324.      * @return iterable<null|scalar|\Stringable>
  325.      */
  326.     public function block_content(array $context, array $blocks = []): iterable
  327.     {
  328.         $macros $this->macros;
  329.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  330.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  331.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  332.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  333.         // line 9
  334.         yield "        ";
  335.         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))) {
  336.             // line 10
  337.             yield "            <!-- Branches 4 columns -->
  338.             <section class=\"";
  339.             // line 11
  340.             yield ($context["containerClasses"] ?? "relative py-10");
  341.             yield " ";
  342.             yield ($context["defaultBackgroundColor"] ?? "");
  343.             yield "\">
  344.                 ";
  345.             // line 13
  346.             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); })()))) {
  347.                 // line 14
  348.                 yield "                    <div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
  349.                         ";
  350.                 // line 15
  351.                 yield ($context["defaultSecondBackgroundColor"] ?? "md:bg-blue-200");
  352.                 yield "
  353.                         ";
  354.                 // line 16
  355.                 yield ($context["defaultSecondBackgroundPosition"] ?? "top-0");
  356.                 yield "
  357.                     \">
  358.                         <!-- empty -->
  359.                     </div>
  360.                 ";
  361.             }
  362.             // line 21
  363.             yield "
  364.                 <div class=\"container relative z-20\">
  365.                     <div class=\"grid grid-cols-12 gap-8\">
  366.                         ";
  367.             // line 24
  368.             $context['_parent'] = $context;
  369.             $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); })()));
  370.             foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
  371.                 // line 25
  372.                 yield "                            ";
  373.                 $context["page"] = CoreExtension::getAttribute($this->env$this->source$context["sector"], "page", [], "method"falsefalsetrue25);
  374.                 // line 26
  375.                 yield "                            <a href=\"";
  376.                 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"falsefalsetrue26), 26$this->source)), "html"nulltrue)) : (""));
  377.                 yield "\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
  378.                                 <div class=\"relative hidden overflow-hidden rounded-md md:block\">
  379.                                     ";
  380.                 // line 29
  381.                 $context["image"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["sector"], "visuals", [], "any"falsefalsetrue29), "current", [], "method"falsefalsetrue29);
  382.                 // line 30
  383.                 yield "                                    ";
  384.                 if ((isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'30$this->source); })())) {
  385.                     // line 31
  386.                     yield "                                        ";
  387.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue31), "html", [["pictureAttributes" => ["class" => ""], "imgAttributes" => ["class" => "w-full"]]], "method"falsefalsetrue31), 31$this->source);
  388.                     // line 34
  389.                     yield "
  390.                                     ";
  391.                 }
  392.                 // line 36
  393.                 yield "
  394.                                     ";
  395.                 // line 37
  396.                 $context["icon"] = CoreExtension::getAttribute($this->env$this->source$context["sector"], "icon", [], "method"falsefalsetrue37);
  397.                 // line 38
  398.                 yield "                                    ";
  399.                 if ((isset($context["icon"]) || array_key_exists("icon"$context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.'38$this->source); })())) {
  400.                     // line 39
  401.                     yield "                                        <span class=\"absolute left-6 bottom-6\">
  402.                                             ";
  403.                     // line 40
  404.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue40), "html", [["pictureAttributes" => ["class" => "rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method"falsefalsetrue40), 40$this->source);
  405.                     // line 43
  406.                     yield "
  407.                                         </span>
  408.                                     ";
  409.                 }
  410.                 // line 46
  411.                 yield "                                </div>
  412.                                 <div class=\"flex items-center justify-between md:mt-4\">
  413.                                     ";
  414.                 // line 48
  415.                 $context["icon"] = CoreExtension::getAttribute($this->env$this->source$context["sector"], "icon", [], "method"falsefalsetrue48);
  416.                 // line 49
  417.                 yield "                                    ";
  418.                 if ((isset($context["icon"]) || array_key_exists("icon"$context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.'49$this->source); })())) {
  419.                     // line 50
  420.                     yield "                                        <span class=\"mr-2.5 md:hidden\">
  421.                                             ";
  422.                     // line 51
  423.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue51), "html", [["pictureAttributes" => ["class" => "rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method"falsefalsetrue51), 51$this->source);
  424.                     // line 54
  425.                     yield "
  426.                                         </span>
  427.                                     ";
  428.                 }
  429.                 // line 57
  430.                 yield "
  431.                                     ";
  432.                 // line 58
  433.                 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); })()))) {
  434.                     // line 59
  435.                     yield "                                        ";
  436.                     $context["classes"] = "text-blue";
  437.                     // line 60
  438.                     yield "                                    ";
  439.                 } else {
  440.                     // line 61
  441.                     yield "                                        ";
  442.                     $context["classes"] = (((($context["defaultSecondBackgroundColor"] ?? null) === "bg-blue-300")) ? ("text-blue md:text-white") : ("text-blue md:text-white"));
  443.                     // line 62
  444.                     yield "                                    ";
  445.                 }
  446.                 // line 63
  447.                 yield "
  448.                                     <h3 class=\"grow text-lg font-bold ";
  449.                 // line 64
  450.                 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"nulltrue);
  451.                 yield "\">";
  452.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["sector"], "branchename", [], "any"falsefalsetrue64), 64$this->source), "html"nulltrue);
  453.                 yield "</h3>
  454.                                     <span
  455.                                         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\">
  456.                                         <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  457.                                             <path fill=\"currentColor\" fill-rule=\"currentColor\"
  458.                                                   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>
  459.                                         </svg>
  460.                                     </span>
  461.                                 </div>
  462.                             </a>
  463.                         ";
  464.             }
  465.             $_parent $context['_parent'];
  466.             unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent']);
  467.             $context array_intersect_key($context$_parent) + $_parent;
  468.             // line 75
  469.             yield "                    </div>
  470.                 </div>
  471.             </section>
  472.         ";
  473.         } elseif (((        // line 78
  474. (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))) {
  475.             // line 79
  476.             yield "            <section class=\"py-8 bg-blue-200 md:py-20\">
  477.                 <div class=\"container\">
  478.                     ";
  479.             // line 82
  480.             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))) {
  481.                 // line 83
  482.                 yield "                        <section>
  483.                             ";
  484.                 // line 84
  485.                 $context['_parent'] = $context;
  486.                 $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); })()));
  487.                 $context['loop'] = [
  488.                   'parent' => $context['_parent'],
  489.                   'index0' => 0,
  490.                   'index'  => 1,
  491.                   'first'  => true,
  492.                 ];
  493.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  494.                     $length count($context['_seq']);
  495.                     $context['loop']['revindex0'] = $length 1;
  496.                     $context['loop']['revindex'] = $length;
  497.                     $context['loop']['length'] = $length;
  498.                     $context['loop']['last'] = === $length;
  499.                 }
  500.                 foreach ($context['_seq'] as $context["_key"] => $context["client"]) {
  501.                     // line 85
  502.                     yield "                                <div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
  503.                                     <div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
  504.                                         ";
  505.                     // line 88
  506.                     if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["client"], "media", [], "any"falsetruetrue88), "items", [], "any"falsetruetrue88), 0, [], "array"truetruetrue88) &&  !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["client"], "media", [], "any"falsefalsetrue88), "items", [], "any"falsefalsetrue88), 0, [], "array"falsefalsetrue88)))) {
  507.                         // line 89
  508.                         yield "                                            ";
  509.                         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["client"], "media", [], "any"falsefalsetrue89), "items", [], "any"falsefalsetrue89), 0, [], "array"falsefalsetrue89), "thumbnail", ["testimonial-large"], "method"falsefalsetrue89), "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"falsefalsetrue89), 89$this->source);
  510.                         // line 98
  511.                         yield "
  512.                                         ";
  513.                     }
  514.                     // line 100
  515.                     yield "                                    </div>
  516.                                     <div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
  517.                                         ";
  518.                     // line 103
  519.                     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);
  520.                     // line 104
  521.                     yield "                                        <div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
  522.                                             <div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
  523.                                                 <blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
  524.                                                     ";
  525.                     // line 108
  526.                     if (CoreExtension::getAttribute($this->env$this->source$context["client"], "story", [], "any"falsefalsetrue108)) {
  527.                         // line 109
  528.                         yield "                                                        “";
  529.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["client"], "story", [], "any"falsefalsetrue109), 109$this->source), "html"nulltrue);
  530.                         yield "”
  531.                                                     ";
  532.                     }
  533.                     // line 111
  534.                     yield "                                                </blockquote>
  535.                                                 <span class=\"font-bold\">
  536.                                         ";
  537.                     // line 113
  538.                     if ((CoreExtension::getAttribute($this->env$this->source$context["client"], "job_title", [], "any"falsefalsetrue113) && CoreExtension::getAttribute($this->env$this->source$context["client"], "contact", [], "any"falsefalsetrue113))) {
  539.                         // line 114
  540.                         yield "                                            ";
  541.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["client"], "contact", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  542.                         yield ", ";
  543.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["client"], "job_title", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  544.                         yield "
  545.                                         ";
  546.                     } elseif (CoreExtension::getAttribute($this->env$this->source,                     // line 115
  547. $context["client"], "contact", [], "any"falsefalsetrue115)) {
  548.                         // line 116
  549.                         yield "                                            ";
  550.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["client"], "contact", [], "any"falsefalsetrue116), 116$this->source), "html"nulltrue);
  551.                         yield "
  552.                                         ";
  553.                     }
  554.                     // line 118
  555.                     yield "                                    </span>
  556.                                             </div>
  557.                                             ";
  558.                     // line 121
  559.                     if (CoreExtension::getAttribute($this->env$this->source$context["client"], "logo", [], "any"falsefalsetrue121)) {
  560.                         // line 122
  561.                         yield "                                                <span class=\"flex justify-center py-6\">
  562.                                         ";
  563.                         // line 123
  564.                         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["client"], "logo", [], "any"falsefalsetrue123), "thumbnail", ["testimonial-small"], "method"falsefalsetrue123), "html", [["pictureAttributes" => ["class" => "p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide"]]], "method"falsefalsetrue123), 123$this->source);
  565.                         // line 125
  566.                         yield "
  567.                                     </span>
  568.                                             ";
  569.                     }
  570.                     // line 128
  571.                     yield "
  572.                                             ";
  573.                     // line 129
  574.                     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"falsefalsetrue129)) {
  575.                         // line 130
  576.                         yield "                                                <a
  577.                                                     class=\"button button__secondary button__secondary--white button--no-l-padding group\"
  578.                                                     href=\"";
  579.                         // line 132
  580.                         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.'132$this->source); })()), "getProperty", ["clientArchivePage"], "method"falsefalsetrue132), "url", [], "any"falsefalsetrue132), 132$this->source)), "html"nulltrue);
  581.                         yield "\"
  582.                                                 >
  583.                                         <span
  584.                                             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\">
  585.                                             <svg class=\"h-3.5 w-3.5\"
  586.                                                  xmlns=\"http://www.w3.org/2000/svg\"
  587.                                                  viewBox=\"0 0 16 16\">
  588.                                                 <path fill=\"currentColor\" fill-rule=\"currentColor\"
  589.                                                       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\"/>
  590.                                             </svg>
  591.                                         </span>
  592.                                                     ";
  593.                         // line 143
  594.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alle verhalen"), "html"nulltrue);
  595.                         yield "
  596.                                                 </a>
  597.                                             ";
  598.                     }
  599.                     // line 146
  600.                     yield "
  601.                                         </div>
  602.                                     </div>
  603.                                 </div>
  604.                             ";
  605.                     ++$context['loop']['index0'];
  606.                     ++$context['loop']['index'];
  607.                     $context['loop']['first'] = false;
  608.                     if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  609.                         --$context['loop']['revindex0'];
  610.                         --$context['loop']['revindex'];
  611.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  612.                     }
  613.                 }
  614.                 $_parent $context['_parent'];
  615.                 unset($context['_seq'], $context['_key'], $context['client'], $context['_parent'], $context['loop']);
  616.                 $context array_intersect_key($context$_parent) + $_parent;
  617.                 // line 151
  618.                 yield "                        </section>
  619.                     ";
  620.             }
  621.             // line 153
  622.             yield "
  623.                     ";
  624.             // line 154
  625.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'154$this->source); })())) {
  626.                 // line 155
  627.                 yield "                        ";
  628.                 if ( !array_key_exists("showArchiveLink"$context)) {
  629.                     // line 156
  630.                     yield "                            <label>
  631.                                 ";
  632.                     // line 157
  633.                     yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""showArchiveLink", ["reload" => true]);
  634.                     yield "
  635.                                 <span>Toon link naar overzichtspagina</span>
  636.                             </label>
  637.                         ";
  638.                 }
  639.                 // line 161
  640.                 yield "                    ";
  641.             }
  642.             // line 162
  643.             yield "
  644.                     <div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
  645.                         ";
  646.             // line 164
  647.             $context['_parent'] = $context;
  648.             $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); })()));
  649.             foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
  650.                 // line 165
  651.                 yield "                            ";
  652.                 $context["page"] = CoreExtension::getAttribute($this->env$this->source$context["sector"], "page", [], "method"falsefalsetrue165);
  653.                 // line 166
  654.                 yield "                            <a href=\"";
  655.                 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"falsefalsetrue166), 166$this->source)), "html"nulltrue)) : (""));
  656.                 yield "\"
  657.                                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\">
  658.                                 ";
  659.                 // line 168
  660.                 if (CoreExtension::getAttribute($this->env$this->source$context["sector"], "icon", [], "any"falsefalsetrue168)) {
  661.                     // line 169
  662.                     yield "                                    ";
  663.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["sector"], "icon", [], "any"falsefalsetrue169), "getThumbnail", ["sector-card-icon"], "method"falsefalsetrue169), "html", [["pictureAttributes" => ["class" => "inline mb-4 rounded-full "], "imgAttributes" => ["class" => "w-full h-full"]]], "method"falsefalsetrue169), 169$this->source);
  664.                     // line 172
  665.                     yield "
  666.                                 ";
  667.                 }
  668.                 // line 174
  669.                 yield "                                <span>";
  670.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["sector"], "branchename", [], "any"falsefalsetrue174), 174$this->source), "html"nulltrue);
  671.                 yield "</span>
  672.                             </a>
  673.                         ";
  674.             }
  675.             $_parent $context['_parent'];
  676.             unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent']);
  677.             $context array_intersect_key($context$_parent) + $_parent;
  678.             // line 177
  679.             yield "
  680.                         ";
  681.             // line 178
  682.             if (($context["showArchiveLink"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""showArchiveLink"), "isChecked", [], "method"falsefalsetrue178))) {
  683.                 // line 179
  684.                 yield "                            <a
  685.                                 href=\"";
  686.                 // line 180
  687.                 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.'180$this->source); })()), "getProperty", ["sectorArchivePage"], "method"falsefalsetrue180), "url", [], "any"falsefalsetrue180), 180$this->source)), "html"nulltrue);
  688.                 yield "\"
  689.                                 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\"
  690.                             >
  691.                                 <svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  692.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  693.                                           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\"/>
  694.                                 </svg>
  695.                                 <span>";
  696.                 // line 187
  697.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk alles"), "html"nulltrue);
  698.                 yield "</span>
  699.                             </a>
  700.                         ";
  701.             }
  702.             // line 190
  703.             yield "                    </div>
  704.                 </div>
  705.             </section>
  706.         ";
  707.         }
  708.         // line 194
  709.         yield "    ";
  710.         
  711.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  712.         
  713.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  714.         yield from [];
  715.     }
  716.     /**
  717.      * @codeCoverageIgnore
  718.      */
  719.     public function getTemplateName(): string
  720.     {
  721.         return "areas/sector-cards-brick/view.html.twig";
  722.     }
  723.     /**
  724.      * @codeCoverageIgnore
  725.      */
  726.     public function isTraitable(): bool
  727.     {
  728.         return false;
  729.     }
  730.     /**
  731.      * @codeCoverageIgnore
  732.      */
  733.     public function getDebugInfo(): array
  734.     {
  735.         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,);
  736.     }
  737.     public function getSourceContext(): Source
  738.     {
  739.         return new Source("{# Defined as EditableDialog field #}
  740. {% set style = style ?? pimcore_select('style').getData ?? \"images\" %}
  741. {# Defined as EditableDialog field #}
  742. {% set sectors = sectors ?? pimcore_relations('sectors').getElements() %}
  743. {% set clients = clients ?? pimcore_relations('clients').getElements() %}
  744. {% include 'areas/sector-cards-brick/partials/editmode/_no-objects-found.html.twig' %}
  745. {% embed 'app/area-brick-layout.html.twig' %}
  746.     {% block content %}
  747.         {% if style == 'images' and sectors|length > 0 %}
  748.             <!-- Branches 4 columns -->
  749.             <section class=\"{{ containerClasses ?? 'relative py-10' }} {{ defaultBackgroundColor ?? \"\" }}\">
  750.                 {% if disableBackground is not defined or not disableBackground %}
  751.                     <div class=\"absolute w-full h-40 z-10 bg-white md:bg-blue-300
  752.                         {{ defaultSecondBackgroundColor ?? \"md:bg-blue-200\" }}
  753.                         {{ defaultSecondBackgroundPosition ?? \"top-0\" }}
  754.                     \">
  755.                         <!-- empty -->
  756.                     </div>
  757.                 {% endif %}
  758.                 <div class=\"container relative z-20\">
  759.                     <div class=\"grid grid-cols-12 gap-8\">
  760.                         {% for sector in sectors %}
  761.                             {% set page = sector.page() %}
  762.                             <a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"col-span-12 md:col-span-6 lg:col-span-3 group\">
  763.                                 <div class=\"relative hidden overflow-hidden rounded-md md:block\">
  764.                                     {% set image = sector.visuals.current() %}
  765.                                     {% if image %}
  766.                                         {{ image.getThumbnail('sector-card').html({
  767.                                             pictureAttributes: {class: ''},
  768.                                             imgAttributes: {class: 'w-full'},
  769.                                         })|raw }}
  770.                                     {% endif %}
  771.                                     {% set icon = sector.icon() %}
  772.                                     {% if icon %}
  773.                                         <span class=\"absolute left-6 bottom-6\">
  774.                                             {{ icon.getThumbnail('text-and-link-icon').html({
  775.                                                 pictureAttributes: {class: 'rounded-full '},
  776.                                                 imgAttributes: {class: 'w-full h-full'},
  777.                                             })|raw }}
  778.                                         </span>
  779.                                     {% endif %}
  780.                                 </div>
  781.                                 <div class=\"flex items-center justify-between md:mt-4\">
  782.                                     {% set icon = sector.icon() %}
  783.                                     {% if icon %}
  784.                                         <span class=\"mr-2.5 md:hidden\">
  785.                                             {{ icon.getThumbnail('text-and-link-icon').html({
  786.                                                 pictureAttributes: {class: 'rounded-full '},
  787.                                                 imgAttributes: {class: 'w-full h-full'},
  788.                                             })|raw }}
  789.                                         </span>
  790.                                     {% endif %}
  791.                                     {% if disableBackground is defined and disableBackground %}
  792.                                         {% set classes = \"text-blue\" %}
  793.                                     {% else %}
  794.                                         {% set classes = (defaultSecondBackgroundColor ?? null) === 'bg-blue-300' ? \"text-blue md:text-white\" : \"text-blue md:text-white\" %}
  795.                                     {% endif %}
  796.                                     <h3 class=\"grow text-lg font-bold {{ classes }}\">{{ sector.branchename }}</h3>
  797.                                     <span
  798.                                         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\">
  799.                                         <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  800.                                             <path fill=\"currentColor\" fill-rule=\"currentColor\"
  801.                                                   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>
  802.                                         </svg>
  803.                                     </span>
  804.                                 </div>
  805.                             </a>
  806.                         {% endfor %}
  807.                     </div>
  808.                 </div>
  809.             </section>
  810.         {% elseif style == 'icons' and sectors|length > 0 %}
  811.             <section class=\"py-8 bg-blue-200 md:py-20\">
  812.                 <div class=\"container\">
  813.                     {% if clients|default(null) %}
  814.                         <section>
  815.                             {% for client in clients %}
  816.                                 <div class=\"grid grid-cols-12 lg:gap-6 swiper-slide\">
  817.                                     <div class=\"col-span-12 xl:col-start-2 xl:row-start-1 xl:col-span-6\">
  818.                                         {% if client.media.items[0] is defined and client.media.items[0] is not null %}
  819.                                             {{ client.media.items[0].thumbnail('testimonial-large').html(
  820.                                                 {
  821.                                                     'pictureAttributes': {
  822.                                                     'class': 'inline-block overflow-hidden shadow-lg sm:rounded-md w-full',
  823.                                                 },
  824.                                                     'imgAttributes': {
  825.                                                     'class': 'object-cover object-center w-full h-full'
  826.                                                 },
  827.                                                 }
  828.                                             )|raw }}
  829.                                         {% endif %}
  830.                                     </div>
  831.                                     <div class=\"col-span-12 xl:col-span-6 xl:col-start-6 xl:row-start-1 flex items-center\">
  832.                                         {% include 'areas/testimonial-brick/partials/editmode/_no-client-details-found.html.twig' %}
  833.                                         <div class=\"relative md:mx-6 -mt-12 lg:mt-10\">
  834.                                             <div class=\"block p-8 text-white bg-blue-500 md:rounded shadow-lg \">
  835.                                                 <blockquote class=\"mb-8 text-xl font-bold leading-8 md:text-2xl\">
  836.                                                     {% if client.story %}
  837.                                                         “{{ client.story }}”
  838.                                                     {% endif %}
  839.                                                 </blockquote>
  840.                                                 <span class=\"font-bold\">
  841.                                         {% if client.job_title and client.contact %}
  842.                                             {{ client.contact }}, {{ client.job_title }}
  843.                                         {% elseif client.contact %}
  844.                                             {{ client.contact }}
  845.                                         {% endif %}
  846.                                     </span>
  847.                                             </div>
  848.                                             {% if client.logo %}
  849.                                                 <span class=\"flex justify-center py-6\">
  850.                                         {{ client.logo.thumbnail('testimonial-small').html({
  851.                                             pictureAttributes: {class: 'p-6 rounded flex justify-center cursor-pointer bg-white !w-[188px] h-[60px] swiper-slide'},
  852.                                         }) | raw }}
  853.                                     </span>
  854.                                             {% endif %}
  855.                                             {% if document.getProperty('clientArchivePage') %}
  856.                                                 <a
  857.                                                     class=\"button button__secondary button__secondary--white button--no-l-padding group\"
  858.                                                     href=\"{{ document.getProperty('clientArchivePage').url | trimUrl }}\"
  859.                                                 >
  860.                                         <span
  861.                                             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\">
  862.                                             <svg class=\"h-3.5 w-3.5\"
  863.                                                  xmlns=\"http://www.w3.org/2000/svg\"
  864.                                                  viewBox=\"0 0 16 16\">
  865.                                                 <path fill=\"currentColor\" fill-rule=\"currentColor\"
  866.                                                       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\"/>
  867.                                             </svg>
  868.                                         </span>
  869.                                                     {{ \"Bekijk alle verhalen\"|trans }}
  870.                                                 </a>
  871.                                             {% endif %}
  872.                                         </div>
  873.                                     </div>
  874.                                 </div>
  875.                             {% endfor %}
  876.                         </section>
  877.                     {% endif %}
  878.                     {% if editmode %}
  879.                         {% if showArchiveLink is not defined %}
  880.                             <label>
  881.                                 {{ pimcore_checkbox('showArchiveLink', { reload: true }) }}
  882.                                 <span>Toon link naar overzichtspagina</span>
  883.                             </label>
  884.                         {% endif %}
  885.                     {% endif %}
  886.                     <div class=\"grid grid-cols-2 gap-6 font-bold text-center md:grid-cols-3 lg:grid-cols-4\">
  887.                         {% for sector in sectors %}
  888.                             {% set page = sector.page() %}
  889.                             <a href=\"{{ page ? (page.url | trimUrl) : '' }}\"
  890.                                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\">
  891.                                 {% if sector.icon %}
  892.                                     {{ sector.icon.getThumbnail('sector-card-icon').html({
  893.                                         pictureAttributes: {class: 'inline mb-4 rounded-full '},
  894.                                         imgAttributes: {class: 'w-full h-full'},
  895.                                     })|raw }}
  896.                                 {% endif %}
  897.                                 <span>{{ sector.branchename }}</span>
  898.                             </a>
  899.                         {% endfor %}
  900.                         {% if showArchiveLink ?? pimcore_checkbox('showArchiveLink').isChecked() %}
  901.                             <a
  902.                                 href=\"{{ document.getProperty('sectorArchivePage').url | trimUrl }}\"
  903.                                 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\"
  904.                             >
  905.                                 <svg class=\"inline w-8 h-8 mb-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  906.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  907.                                           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\"/>
  908.                                 </svg>
  909.                                 <span>{{ 'Bekijk alles' | trans }}</span>
  910.                             </a>
  911.                         {% endif %}
  912.                     </div>
  913.                 </div>
  914.             </section>
  915.         {% endif %}
  916.     {% endblock %}
  917. {% endembed %}
  918. ""areas/sector-cards-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/sector-cards-brick/view.html.twig");
  919.     }
  920.     
  921.     public function checkSecurity()
  922.     {
  923.         static $tags = ["extends" => 7"if" => 9"for" => 24"set" => 25"include" => 103];
  924.         static $filters = ["length" => 9"escape" => 26"trimUrl" => 26"raw" => 34"default" => 82"trans" => 143];
  925.         static $functions = ["pimcore_checkbox" => 157];
  926.         try {
  927.             $this->sandbox->checkSecurity(
  928.                 ['extends''if''for''set''include'],
  929.                 ['length''escape''trimUrl''raw''default''trans'],
  930.                 ['pimcore_checkbox'],
  931.                 $this->source
  932.             );
  933.         } catch (SecurityError $e) {
  934.             $e->setSourceContext($this->source);
  935.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  936.                 $e->setTemplateLine($tags[$e->getTagName()]);
  937.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  938.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  939.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  940.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  941.             }
  942.             throw $e;
  943.         }
  944.     }
  945. }