var/cache/dev/twig/d0/d0576730ce2ce1f8e7e00aaafc863914a711e397327205eb42dacb2933d099dd.php line 56

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/hero-projects-with-text-and-button-brick/view.html.twig */
  16. class __TwigTemplate_4fd9daa6fea037cc8bf00d1941826e4817364d9d1d45bd892ba7fd21ce5e2f3c 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/hero-projects-with-text-and-button-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/hero-projects-with-text-and-button-brick/view.html.twig"));
  40.         // line 1
  41.         yield from $this->loadTemplate("includes/partials/hero_usp_bar.html.twig""areas/hero-projects-with-text-and-button-brick/view.html.twig"1)->unwrap()->yield($context);
  42.         // line 2
  43.         yield "
  44. ";
  45.         // line 4
  46.         yield from $this->loadTemplate("areas/hero-projects-with-text-and-button-brick/view.html.twig""areas/hero-projects-with-text-and-button-brick/view.html.twig"4"1383844566")->unwrap()->yield($context);
  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/hero-projects-with-text-and-button-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 (  56 => 4,  52 => 2,  50 => 1,);
  73.     }
  74.     public function getSourceContext(): Source
  75.     {
  76.         return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
  77. {% embed 'app/area-brick-layout.html.twig' %}
  78.     {% block content %}
  79.         <!-- Text + Cards 2 columns -->
  80.         <section class=\"relative text-white bg-blue-300\">
  81.             {# Defined as Dialog field. #}
  82.             {% if not pimcore_image('background-image').isEmpty() %}
  83.                 {# Doing getThumbnail() instead of direct echo so image also gets rendered in editmode. #}
  84.                 {{ pimcore_image('background-image').getThumbnail('projects-hero-background-image').html({
  85.                     pictureAttributes: {class: 'z-0 absolute top-1/2 -translate-y-1/2'}
  86.                 }) | raw }}
  87.             {% endif %}
  88.             <div
  89.                 class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
  90.                 <div class=\"w-full pr-5 lg:w-5/12\">
  91.                     <span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
  92.                         {{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
  93.                     </span>
  94.                     <h2 class=\"mb-4 text-3xl lg:text-5xl\">
  95.                         {{ pimcore_input('title', { placeholder: 'Titel' }) }}
  96.                     </h2>
  97.                     <p class=\"mb-8 text-lg\">
  98.                         {{ pimcore_textarea('text', { placeholder: 'Tekst' }) }}
  99.                     </p>
  100.                     {{ pimcore_link('link', {
  101.                         placeholder: 'Link',
  102.                         class: 'button button__primary',
  103.                     }) }}
  104.                 </div>
  105.                 <div class=\"mt-6 lg:w-7/12 lg:mt-0\">
  106.                     <div class=\"swiper project-swiper\">
  107.                         <div class=\"swiper-wrapper lg:flex\">
  108.                             {# Defined in Brick as editableContent fields #}
  109.                             {% for project in pimcore_relations('projects') %}
  110.                                 {# Also see areas/projects-card-slider-brick/card.html.twig #}
  111.                                 {% set page = project.page() %}
  112.                                 <a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
  113.                                     {% set image = project.visuals.current() %}
  114.                                     {% if image %}
  115.                                         <div class=\"relative\">
  116.                                             {{ image.getThumbnail('projects-hero-1').html({
  117.                                                 pictureAttributes: {class: 'inline-block mb-5 overflow-hidden rounded-md'}
  118.                                             })|raw }}
  119.                                         </div>
  120.                                     {% endif %}
  121.                                     <span
  122.                                         class=\"block mb-3 text-lg\">{{ (project.meta_description ?: (project.webdesq_content|striptags|slice(0, 38) ~ '...'))|raw }}</span>
  123.                                     <h3 class=\"text-2xl leading-7\">{{ project.title }}</h3>
  124.                                 </a>
  125.                             {% endfor %}
  126.                         </div>
  127.                         <div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
  128.                             <div class=\"flex items-center custom-swiper-pagination\"></div>
  129.                             <div class=\"flex gap-2.5 items-center text-white\">
  130.                                 <div class=\"arrow-swiper-button-prev\">
  131.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
  132.                                 </div>
  133.                                 <div class=\"arrow-swiper-button-next\">
  134.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
  135.                                 </div>
  136.                             </div>
  137.                         </div>
  138.                     </div>
  139.                 </div>
  140.             </div>
  141.         </section>
  142.     {% endblock %}
  143. {% endembed %}
  144. ""areas/hero-projects-with-text-and-button-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-projects-with-text-and-button-brick/view.html.twig");
  145.     }
  146.     
  147.     public function checkSecurity()
  148.     {
  149.         static $tags = ["include" => 1"embed" => 4];
  150.         static $filters = [];
  151.         static $functions = [];
  152.         try {
  153.             $this->sandbox->checkSecurity(
  154.                 ['include''embed'],
  155.                 [],
  156.                 [],
  157.                 $this->source
  158.             );
  159.         } catch (SecurityError $e) {
  160.             $e->setSourceContext($this->source);
  161.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  162.                 $e->setTemplateLine($tags[$e->getTagName()]);
  163.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  164.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  165.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  166.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  167.             }
  168.             throw $e;
  169.         }
  170.     }
  171. }
  172. /* areas/hero-projects-with-text-and-button-brick/view.html.twig */
  173. class __TwigTemplate_4fd9daa6fea037cc8bf00d1941826e4817364d9d1d45bd892ba7fd21ce5e2f3c___1383844566 extends Template
  174. {
  175.     private Source $source;
  176.     /**
  177.      * @var array<string, Template>
  178.      */
  179.     private array $macros = [];
  180.     public function __construct(Environment $env)
  181.     {
  182.         parent::__construct($env);
  183.         $this->source $this->getSourceContext();
  184.         $this->blocks = [
  185.             'content' => [$this'block_content'],
  186.         ];
  187.         $this->sandbox $this->extensions[SandboxExtension::class];
  188.         $this->checkSecurity();
  189.     }
  190.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  191.     {
  192.         return "app/area-brick-layout.html.twig";
  193.     }
  194.     protected function doDisplay(array $context, array $blocks = []): iterable
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-projects-with-text-and-button-brick/view.html.twig"));
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-projects-with-text-and-button-brick/view.html.twig"));
  201.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/hero-projects-with-text-and-button-brick/view.html.twig"4);
  202.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  203.         
  204.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  205.         
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  207.     }
  208.     // line 5
  209.     /**
  210.      * @return iterable<null|scalar|\Stringable>
  211.      */
  212.     public function block_content(array $context, array $blocks = []): iterable
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  219.         // line 6
  220.         yield "        <!-- Text + Cards 2 columns -->
  221.         <section class=\"relative text-white bg-blue-300\">
  222.             ";
  223.         // line 9
  224.         yield "            ";
  225.         if ( !CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image"), "isEmpty", [], "method"falsefalsetrue9)) {
  226.             // line 10
  227.             yield "                ";
  228.             // line 11
  229.             yield "                ";
  230.             yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image"), "getThumbnail", ["projects-hero-background-image"], "method"falsefalsetrue11), "html", [["pictureAttributes" => ["class" => "z-0 absolute top-1/2 -translate-y-1/2"]]], "method"falsefalsetrue11), 11$this->source);
  231.             // line 13
  232.             yield "
  233.             ";
  234.         }
  235.         // line 15
  236.         yield "            <div
  237.                 class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
  238.                 <div class=\"w-full pr-5 lg:w-5/12\">
  239.                     <span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
  240.                         ";
  241.         // line 19
  242.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subtitle", ["placeholder" => "Subtitel"]);
  243.         yield "
  244.                     </span>
  245.                     <h2 class=\"mb-4 text-3xl lg:text-5xl\">
  246.                         ";
  247.         // line 23
  248.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Titel"]);
  249.         yield "
  250.                     </h2>
  251.                     <p class=\"mb-8 text-lg\">
  252.                         ";
  253.         // line 27
  254.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text", ["placeholder" => "Tekst"]);
  255.         yield "
  256.                     </p>
  257.                     ";
  258.         // line 30
  259.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link", ["placeholder" => "Link""class" => "button button__primary"]);
  260.         // line 33
  261.         yield "
  262.                 </div>
  263.                 <div class=\"mt-6 lg:w-7/12 lg:mt-0\">
  264.                     <div class=\"swiper project-swiper\">
  265.                         <div class=\"swiper-wrapper lg:flex\">
  266.                             ";
  267.         // line 40
  268.         yield "                            ";
  269.         $context['_parent'] = $context;
  270.         $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""projects"));
  271.         foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
  272.             // line 41
  273.             yield "                                ";
  274.             // line 42
  275.             yield "                                ";
  276.             $context["page"] = CoreExtension::getAttribute($this->env$this->source$context["project"], "page", [], "method"falsefalsetrue42);
  277.             // line 43
  278.             yield "                                <a href=\"";
  279.             yield (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'43$this->source); })())) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'43$this->source); })()), "url", [], "any"falsefalsetrue43), 43$this->source)), "html"nulltrue)) : (""));
  280.             yield "\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
  281.                                     ";
  282.             // line 44
  283.             $context["image"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["project"], "visuals", [], "any"falsefalsetrue44), "current", [], "method"falsefalsetrue44);
  284.             // line 45
  285.             yield "                                    ";
  286.             if ((isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'45$this->source); })())) {
  287.                 // line 46
  288.                 yield "                                        <div class=\"relative\">
  289.                                             ";
  290.                 // line 47
  291.                 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.'47$this->source); })()), "getThumbnail", ["projects-hero-1"], "method"falsefalsetrue47), "html", [["pictureAttributes" => ["class" => "inline-block mb-5 overflow-hidden rounded-md"]]], "method"falsefalsetrue47), 47$this->source);
  292.                 // line 49
  293.                 yield "
  294.                                         </div>
  295.                                     ";
  296.             }
  297.             // line 52
  298.             yield "                                    <span
  299.                                         class=\"block mb-3 text-lg\">";
  300.             // line 53
  301.             yield ((CoreExtension::getAttribute($this->env$this->source$context["project"], "meta_description", [], "any"falsefalsetrue53)) ? (CoreExtension::getAttribute($this->env$this->source$context["project"], "meta_description", [], "any"falsefalsetrue53)) : ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), Twig\Extension\CoreExtension::striptags($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["project"], "webdesq_content", [], "any"falsefalsetrue53), 53$this->source)), 038) . "...")));
  302.             yield "</span>
  303.                                     <h3 class=\"text-2xl leading-7\">";
  304.             // line 54
  305.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["project"], "title", [], "any"falsefalsetrue54), 54$this->source), "html"nulltrue);
  306.             yield "</h3>
  307.                                 </a>
  308.                             ";
  309.         }
  310.         $_parent $context['_parent'];
  311.         unset($context['_seq'], $context['_key'], $context['project'], $context['_parent']);
  312.         $context array_intersect_key($context$_parent) + $_parent;
  313.         // line 57
  314.         yield "                        </div>
  315.                         <div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
  316.                             <div class=\"flex items-center custom-swiper-pagination\"></div>
  317.                             <div class=\"flex gap-2.5 items-center text-white\">
  318.                                 <div class=\"arrow-swiper-button-prev\">
  319.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
  320.                                 </div>
  321.                                 <div class=\"arrow-swiper-button-next\">
  322.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
  323.                                 </div>
  324.                             </div>
  325.                         </div>
  326.                     </div>
  327.                 </div>
  328.             </div>
  329.         </section>
  330.     ";
  331.         
  332.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  333.         
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  335.         yield from [];
  336.     }
  337.     /**
  338.      * @codeCoverageIgnore
  339.      */
  340.     public function getTemplateName(): string
  341.     {
  342.         return "areas/hero-projects-with-text-and-button-brick/view.html.twig";
  343.     }
  344.     /**
  345.      * @codeCoverageIgnore
  346.      */
  347.     public function isTraitable(): bool
  348.     {
  349.         return false;
  350.     }
  351.     /**
  352.      * @codeCoverageIgnore
  353.      */
  354.     public function getDebugInfo(): array
  355.     {
  356.         return array (  360 => 57,  351 => 54,  347 => 53,  344 => 52,  339 => 49,  337 => 47,  334 => 46,  331 => 45,  329 => 44,  324 => 43,  321 => 42,  319 => 41,  314 => 40,  306 => 33,  304 => 30,  298 => 27,  291 => 23,  284 => 19,  278 => 15,  274 => 13,  271 => 11,  269 => 10,  266 => 9,  262 => 6,  249 => 5,  56 => 4,  52 => 2,  50 => 1,);
  357.     }
  358.     public function getSourceContext(): Source
  359.     {
  360.         return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
  361. {% embed 'app/area-brick-layout.html.twig' %}
  362.     {% block content %}
  363.         <!-- Text + Cards 2 columns -->
  364.         <section class=\"relative text-white bg-blue-300\">
  365.             {# Defined as Dialog field. #}
  366.             {% if not pimcore_image('background-image').isEmpty() %}
  367.                 {# Doing getThumbnail() instead of direct echo so image also gets rendered in editmode. #}
  368.                 {{ pimcore_image('background-image').getThumbnail('projects-hero-background-image').html({
  369.                     pictureAttributes: {class: 'z-0 absolute top-1/2 -translate-y-1/2'}
  370.                 }) | raw }}
  371.             {% endif %}
  372.             <div
  373.                 class=\"container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap\">
  374.                 <div class=\"w-full pr-5 lg:w-5/12\">
  375.                     <span class=\"inline-block mb-3 text-base font-bold md:text-lg\">
  376.                         {{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
  377.                     </span>
  378.                     <h2 class=\"mb-4 text-3xl lg:text-5xl\">
  379.                         {{ pimcore_input('title', { placeholder: 'Titel' }) }}
  380.                     </h2>
  381.                     <p class=\"mb-8 text-lg\">
  382.                         {{ pimcore_textarea('text', { placeholder: 'Tekst' }) }}
  383.                     </p>
  384.                     {{ pimcore_link('link', {
  385.                         placeholder: 'Link',
  386.                         class: 'button button__primary',
  387.                     }) }}
  388.                 </div>
  389.                 <div class=\"mt-6 lg:w-7/12 lg:mt-0\">
  390.                     <div class=\"swiper project-swiper\">
  391.                         <div class=\"swiper-wrapper lg:flex\">
  392.                             {# Defined in Brick as editableContent fields #}
  393.                             {% for project in pimcore_relations('projects') %}
  394.                                 {# Also see areas/projects-card-slider-brick/card.html.twig #}
  395.                                 {% set page = project.page() %}
  396.                                 <a href=\"{{ page ? (page.url | trimUrl) : '' }}\" class=\"!w-11/12 lg:!w-6/12 swiper-slide pr-6\">
  397.                                     {% set image = project.visuals.current() %}
  398.                                     {% if image %}
  399.                                         <div class=\"relative\">
  400.                                             {{ image.getThumbnail('projects-hero-1').html({
  401.                                                 pictureAttributes: {class: 'inline-block mb-5 overflow-hidden rounded-md'}
  402.                                             })|raw }}
  403.                                         </div>
  404.                                     {% endif %}
  405.                                     <span
  406.                                         class=\"block mb-3 text-lg\">{{ (project.meta_description ?: (project.webdesq_content|striptags|slice(0, 38) ~ '...'))|raw }}</span>
  407.                                     <h3 class=\"text-2xl leading-7\">{{ project.title }}</h3>
  408.                                 </a>
  409.                             {% endfor %}
  410.                         </div>
  411.                         <div class=\"flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden\">
  412.                             <div class=\"flex items-center custom-swiper-pagination\"></div>
  413.                             <div class=\"flex gap-2.5 items-center text-white\">
  414.                                 <div class=\"arrow-swiper-button-prev\">
  415.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" ><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-296 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right-copy\" transform=\"translate(275 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-left\" transform=\"matrix(1 0 0 -1 0 17.968)\"/></g></g></g></g></g></svg>
  416.                                 </div>
  417.                                 <div class=\"arrow-swiper-button-next\">
  418.                                     <svg width=\"24px\" height=\"18px\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"&gt;-Klimaatbeheersing-v2\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"coolworld-product-category-vd-375-v02.3\" transform=\"translate(-332 -3452)\" fill=\"currentColor\"><g id=\"Group-4\" transform=\"translate(0 3333)\"><g id=\"components/navigation/mobile/carousel\" transform=\"translate(21 116)\"><g id=\"icons/ui/arrow-line-right\" transform=\"translate(311 3)\"><path d=\"M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z\" id=\"arrow-line-right\" transform=\"matrix(-1 0 0 1 24 0)\"/></g></g></g></g></g></svg>
  419.                                 </div>
  420.                             </div>
  421.                         </div>
  422.                     </div>
  423.                 </div>
  424.             </div>
  425.         </section>
  426.     {% endblock %}
  427. {% endembed %}
  428. ""areas/hero-projects-with-text-and-button-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-projects-with-text-and-button-brick/view.html.twig");
  429.     }
  430.     
  431.     public function checkSecurity()
  432.     {
  433.         static $tags = ["extends" => 4"if" => 9"for" => 40"set" => 42];
  434.         static $filters = ["raw" => 13"escape" => 43"trimUrl" => 43"slice" => 53"striptags" => 53];
  435.         static $functions = ["pimcore_image" => 9"pimcore_input" => 19"pimcore_textarea" => 27"pimcore_link" => 30"pimcore_relations" => 40];
  436.         try {
  437.             $this->sandbox->checkSecurity(
  438.                 ['extends''if''for''set'],
  439.                 ['raw''escape''trimUrl''slice''striptags'],
  440.                 ['pimcore_image''pimcore_input''pimcore_textarea''pimcore_link''pimcore_relations'],
  441.                 $this->source
  442.             );
  443.         } catch (SecurityError $e) {
  444.             $e->setSourceContext($this->source);
  445.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  446.                 $e->setTemplateLine($tags[$e->getTagName()]);
  447.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  448.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  449.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  450.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  451.             }
  452.             throw $e;
  453.         }
  454.     }
  455. }