var/cache/dev/twig/c2/c24ebaf189ca2a851b414f5921c5a1c8954ffd2b819a5651c70647550ad29c7e.php line 255

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-large-brick/view.html.twig */
  16. class __TwigTemplate_cf3d43b387550283267d45589716c2faae13951ea1ec8e6b102f2e6b2e61cae0 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-large-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-large-brick/view.html.twig"));
  40.         // line 1
  41.         yield from $this->loadTemplate("includes/partials/hero_usp_bar.html.twig""areas/hero-large-brick/view.html.twig"1)->unwrap()->yield($context);
  42.         // line 2
  43.         yield "
  44. ";
  45.         // line 3
  46.         yield from $this->loadTemplate("areas/hero-large-brick/view.html.twig""areas/hero-large-brick/view.html.twig"3"954632369")->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-large-brick/view.html.twig";
  59.     }
  60.     /**
  61.      * @codeCoverageIgnore
  62.      */
  63.     public function isTraitable(): bool
  64.     {
  65.         return false;
  66.     }
  67.     /**
  68.      * @codeCoverageIgnore
  69.      */
  70.     public function getDebugInfo(): array
  71.     {
  72.         return array (  55 => 3,  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.         {% set customButtonLabel = pimcore_input('customButtonLabel').getData() %}
  80.         <section class=\"relative pb-8 md:pb-10\">
  81.             {% set selectedImage = pimcore_image('background-image') %}
  82.             {% set HeroLargeBackgroundImage = selectedImage.getThumbnail(\"header-large-gradient\") %}
  83.             {% set backgroundPositionStyle = \"background-position:\" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? \"50\") ~ \"% \" ~  (selectedImage.getImage().getCustomSetting('focalPointY') ?? \"50\") ~ \"%; \" %}
  84.             <section>
  85.                 <div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
  86.                     <div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
  87.                         <div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"{{ backgroundPositionStyle ?? \"\" }} background-image:url('{{ HeroLargeBackgroundImage }}');\"></div>
  88.                         <div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
  89.                             {% include 'includes/partials/hero_content.html.twig' %}
  90.                         </div>
  91.                     </div>
  92.                 </div>
  93.             </section>
  94.             {# Defined as editableDialogBox field #}
  95.             {% if pimcore_relations(\"product-categories\") is not empty %}
  96.                 <div
  97.                     class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
  98.                     {% for productCategory in pimcore_relations(\"product-categories\") %}
  99.                         {% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %}
  100.                         {% if productCategory.page is empty or productCategory.page == false %}
  101.                             <div
  102.                                 class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
  103.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  104.                                     {% if productCategory.icon %}
  105.                                         <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  106.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  107.                                         </div>
  108.                                     {% endif %}
  109.                                     <span class=\"text-center\">
  110.                                         {{ productCategory.name ?: productCategory.key }}
  111.                                     </span>
  112.                                 </div>
  113.                                 <span class=\"text-gray-800 md:hidden\">
  114.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  115.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  116.                                               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\"/>
  117.                                     </svg>
  118.                                 </span>
  119.                             </div>
  120.                         {% else %}
  121.                             <a href=\"{{ productCategory.page.url | trimUrl }}\"
  122.                                class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300  md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
  123.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  124.                                     {% if productCategory.icon %}
  125.                                         <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  126.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  127.                                         </div>
  128.                                     {% endif %}
  129.                                     <span class=\"text-center\">
  130.                                         {{ productCategory.name ?: productCategory.key }}
  131.                                     </span>
  132.                                 </div>
  133.                                 <span class=\"text-gray-800 md:hidden\">
  134.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  135.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  136.                                               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\"/>
  137.                                     </svg>
  138.                                 </span>
  139.                             </a>
  140.                         {% endif %}
  141.                     {% endfor %}
  142.                     {% if document.getProperty('productCategoryArchivePage') is defined
  143.                         and document.getProperty('productCategoryArchivePage') is not null %}
  144.                         <a href=\"{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}\"
  145.                            class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
  146.                             <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  147.                                 {% if pimcore_website_config('allSolutionsIcon') %}
  148.                                     <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
  149.                                         {{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }}
  150.                                     </div>
  151.                                 {% endif %}
  152.                                 <span class=\"text-center\">
  153.                                     {{ \"Alle oplossingen\"|trans }}
  154.                                 </span>
  155.                             </div>
  156.                             <span class=\"text-gray-800 md:hidden\">
  157.                                 <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  158.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  159.                                           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\"/>
  160.                                 </svg>
  161.                             </span>
  162.                         </a>
  163.                     {% endif %}
  164.                 </div>
  165.             {% endif %}
  166.         </section>
  167.     {% endblock %}
  168. {% endembed %}
  169. ""areas/hero-large-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-large-brick/view.html.twig");
  170.     }
  171.     
  172.     public function checkSecurity()
  173.     {
  174.         static $tags = ["include" => 1"embed" => 3];
  175.         static $filters = [];
  176.         static $functions = [];
  177.         try {
  178.             $this->sandbox->checkSecurity(
  179.                 ['include''embed'],
  180.                 [],
  181.                 [],
  182.                 $this->source
  183.             );
  184.         } catch (SecurityError $e) {
  185.             $e->setSourceContext($this->source);
  186.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  187.                 $e->setTemplateLine($tags[$e->getTagName()]);
  188.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  189.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  190.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  191.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  192.             }
  193.             throw $e;
  194.         }
  195.     }
  196. }
  197. /* areas/hero-large-brick/view.html.twig */
  198. class __TwigTemplate_cf3d43b387550283267d45589716c2faae13951ea1ec8e6b102f2e6b2e61cae0___954632369 extends Template
  199. {
  200.     private Source $source;
  201.     /**
  202.      * @var array<string, Template>
  203.      */
  204.     private array $macros = [];
  205.     public function __construct(Environment $env)
  206.     {
  207.         parent::__construct($env);
  208.         $this->source $this->getSourceContext();
  209.         $this->blocks = [
  210.             'content' => [$this'block_content'],
  211.         ];
  212.         $this->sandbox $this->extensions[SandboxExtension::class];
  213.         $this->checkSecurity();
  214.     }
  215.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  216.     {
  217.         return "app/area-brick-layout.html.twig";
  218.     }
  219.     protected function doDisplay(array $context, array $blocks = []): iterable
  220.     {
  221.         $macros $this->macros;
  222.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-large-brick/view.html.twig"));
  224.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-large-brick/view.html.twig"));
  226.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/hero-large-brick/view.html.twig"3);
  227.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  228.         
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  230.         
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  232.     }
  233.     // line 5
  234.     /**
  235.      * @return iterable<null|scalar|\Stringable>
  236.      */
  237.     public function block_content(array $context, array $blocks = []): iterable
  238.     {
  239.         $macros $this->macros;
  240.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  242.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  243.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  244.         // line 6
  245.         yield "
  246.         ";
  247.         // line 7
  248.         $context["customButtonLabel"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""customButtonLabel"), "getData", [], "method"falsefalsetrue7);
  249.         // line 8
  250.         yield "
  251.         <section class=\"relative pb-8 md:pb-10\">
  252.             ";
  253.         // line 10
  254.         $context["selectedImage"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image");
  255.         // line 11
  256.         yield "            ";
  257.         $context["HeroLargeBackgroundImage"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["selectedImage"]) || array_key_exists("selectedImage"$context) ? $context["selectedImage"] : (function () { throw new RuntimeError('Variable "selectedImage" does not exist.'11$this->source); })()), "getThumbnail", ["header-large-gradient"], "method"falsefalsetrue11);
  258.         // line 12
  259.         yield "            ";
  260.         $context["backgroundPositionStyle"] = (((("background-position:" . (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointX"], "method"truetruetrue12) &&  !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointX"], "method"falsefalsetrue12)))) ? (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointX"], "method"falsefalsetrue12)) : ("50"))) . "% ") . (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointY"], "method"truetruetrue12) &&  !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointY"], "method"falsefalsetrue12)))) ? (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["selectedImage"] ?? null), "getImage", [], "method"falsetruetrue12), "getCustomSetting", ["focalPointY"], "method"falsefalsetrue12)) : ("50"))) . "%; ");
  261.         // line 13
  262.         yield "
  263.             <section>
  264.                 <div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
  265.                     <div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
  266.                         <div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"";
  267.         // line 17
  268.         yield ($context["backgroundPositionStyle"] ?? "");
  269.         yield " background-image:url('";
  270.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["HeroLargeBackgroundImage"]) || array_key_exists("HeroLargeBackgroundImage"$context) ? $context["HeroLargeBackgroundImage"] : (function () { throw new RuntimeError('Variable "HeroLargeBackgroundImage" does not exist.'17$this->source); })()), 17$this->source), "html"nulltrue);
  271.         yield "');\"></div>
  272.                         <div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
  273.                             ";
  274.         // line 19
  275.         yield from $this->loadTemplate("includes/partials/hero_content.html.twig""areas/hero-large-brick/view.html.twig"19)->unwrap()->yield($context);
  276.         // line 20
  277.         yield "                        </div>
  278.                     </div>
  279.                 </div>
  280.             </section>
  281.             ";
  282.         // line 26
  283.         yield "            ";
  284.         if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""product-categories"))) {
  285.             // line 27
  286.             yield "                <div
  287.                     class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
  288.                     ";
  289.             // line 29
  290.             $context['_parent'] = $context;
  291.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""product-categories"));
  292.             $context['loop'] = [
  293.               'parent' => $context['_parent'],
  294.               'index0' => 0,
  295.               'index'  => 1,
  296.               'first'  => true,
  297.             ];
  298.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  299.                 $length count($context['_seq']);
  300.                 $context['loop']['revindex0'] = $length 1;
  301.                 $context['loop']['revindex'] = $length;
  302.                 $context['loop']['length'] = $length;
  303.                 $context['loop']['last'] = === $length;
  304.             }
  305.             foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
  306.                 // line 30
  307.                 yield "                        ";
  308.                 yield from $this->loadTemplate("areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig""areas/hero-large-brick/view.html.twig"30)->unwrap()->yield($context);
  309.                 // line 31
  310.                 yield "
  311.                         ";
  312.                 // line 32
  313.                 if ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsefalsetrue32)) || (CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsefalsetrue32) == false))) {
  314.                     // line 33
  315.                     yield "                            <div
  316.                                 class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none ";
  317.                     // line 34
  318.                     yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue34) === 1)) ? ("rounded-t-md md:rounded-l-md md:rounded-r-none") : (""));
  319.                     yield "\">
  320.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  321.                                     ";
  322.                     // line 36
  323.                     if (CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue36)) {
  324.                         // line 37
  325.                         yield "                                        <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  326.                                             ";
  327.                         // line 38
  328.                         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue38), "thumbnail", ["default"], "method"falsefalsetrue38), "html", [], "any"falsefalsetrue38), 38$this->source);
  329.                         yield "
  330.                                         </div>
  331.                                     ";
  332.                     }
  333.                     // line 41
  334.                     yield "                                    <span class=\"text-center\">
  335.                                         ";
  336.                     // line 42
  337.                     yield ((CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "name", [], "any"falsefalsetrue42)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "name", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "key", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue)));
  338.                     yield "
  339.                                     </span>
  340.                                 </div>
  341.                                 <span class=\"text-gray-800 md:hidden\">
  342.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  343.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  344.                                               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\"/>
  345.                                     </svg>
  346.                                 </span>
  347.                             </div>
  348.                         ";
  349.                 } else {
  350.                     // line 53
  351.                     yield "                            <a href=\"";
  352.                     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$context["productCategory"], "page", [], "any"falsefalsetrue53), "url", [], "any"falsefalsetrue53), 53$this->source)), "html"nulltrue);
  353.                     yield "\"
  354.                                class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300  md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none ";
  355.                     // line 54
  356.                     yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue54) === 1)) ? ("rounded-t-md md:rounded-l-md md:rounded-r-none") : (""));
  357.                     yield "\">
  358.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  359.                                     ";
  360.                     // line 56
  361.                     if (CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue56)) {
  362.                         // line 57
  363.                         yield "                                        <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  364.                                             ";
  365.                         // line 58
  366.                         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue58), "thumbnail", ["default"], "method"falsefalsetrue58), "html", [], "any"falsefalsetrue58), 58$this->source);
  367.                         yield "
  368.                                         </div>
  369.                                     ";
  370.                     }
  371.                     // line 61
  372.                     yield "                                    <span class=\"text-center\">
  373.                                         ";
  374.                     // line 62
  375.                     yield ((CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "name", [], "any"falsefalsetrue62)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "name", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "key", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue)));
  376.                     yield "
  377.                                     </span>
  378.                                 </div>
  379.                                 <span class=\"text-gray-800 md:hidden\">
  380.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  381.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  382.                                               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\"/>
  383.                                     </svg>
  384.                                 </span>
  385.                             </a>
  386.                         ";
  387.                 }
  388.                 // line 73
  389.                 yield "                    ";
  390.                 ++$context['loop']['index0'];
  391.                 ++$context['loop']['index'];
  392.                 $context['loop']['first'] = false;
  393.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  394.                     --$context['loop']['revindex0'];
  395.                     --$context['loop']['revindex'];
  396.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  397.                 }
  398.             }
  399.             $_parent $context['_parent'];
  400.             unset($context['_seq'], $context['_key'], $context['productCategory'], $context['_parent'], $context['loop']);
  401.             $context array_intersect_key($context$_parent) + $_parent;
  402.             // line 74
  403.             yield "
  404.                     ";
  405.             // line 75
  406.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["productCategoryArchivePage"], "method"truetruetrue75) &&  !(null === CoreExtension::getAttribute($this->env$this->source,             // line 76
  407. (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'76$this->source); })()), "getProperty", ["productCategoryArchivePage"], "method"falsefalsetrue76)))) {
  408.                 // line 77
  409.                 yield "                        <a href=\"";
  410.                 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.'77$this->source); })()), "getProperty", ["productCategoryArchivePage"], "method"falsefalsetrue77), "url", [], "any"falsefalsetrue77), 77$this->source)), "html"nulltrue);
  411.                 yield "\"
  412.                            class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
  413.                             <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  414.                                 ";
  415.                 // line 80
  416.                 if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("allSolutionsIcon")) {
  417.                     // line 81
  418.                     yield "                                    <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
  419.                                         ";
  420.                     // line 82
  421.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("allSolutionsIcon"), "thumbnail", ["default"], "method"falsefalsetrue82), "html", [], "any"falsefalsetrue82), 82$this->source);
  422.                     yield "
  423.                                     </div>
  424.                                 ";
  425.                 }
  426.                 // line 85
  427.                 yield "                                <span class=\"text-center\">
  428.                                     ";
  429.                 // line 86
  430.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle oplossingen"), "html"nulltrue);
  431.                 yield "
  432.                                 </span>
  433.                             </div>
  434.                             <span class=\"text-gray-800 md:hidden\">
  435.                                 <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  436.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  437.                                           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\"/>
  438.                                 </svg>
  439.                             </span>
  440.                         </a>
  441.                     ";
  442.             }
  443.             // line 97
  444.             yield "
  445.                 </div>
  446.             ";
  447.         }
  448.         // line 100
  449.         yield "
  450.         </section>
  451.     ";
  452.         
  453.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  454.         
  455.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  456.         yield from [];
  457.     }
  458.     /**
  459.      * @codeCoverageIgnore
  460.      */
  461.     public function getTemplateName(): string
  462.     {
  463.         return "areas/hero-large-brick/view.html.twig";
  464.     }
  465.     /**
  466.      * @codeCoverageIgnore
  467.      */
  468.     public function isTraitable(): bool
  469.     {
  470.         return false;
  471.     }
  472.     /**
  473.      * @codeCoverageIgnore
  474.      */
  475.     public function getDebugInfo(): array
  476.     {
  477.         return array (  493 => 100,  488 => 97,  474 => 86,  471 => 85,  465 => 82,  462 => 81,  460 => 80,  453 => 77,  451 => 76,  450 => 75,  447 => 74,  433 => 73,  419 => 62,  416 => 61,  410 => 58,  407 => 57,  405 => 56,  400 => 54,  395 => 53,  381 => 42,  378 => 41,  372 => 38,  369 => 37,  367 => 36,  362 => 34,  359 => 33,  357 => 32,  354 => 31,  351 => 30,  334 => 29,  330 => 27,  327 => 26,  320 => 20,  318 => 19,  311 => 17,  305 => 13,  302 => 12,  299 => 11,  297 => 10,  293 => 8,  291 => 7,  288 => 6,  275 => 5,  55 => 3,  52 => 2,  50 => 1,);
  478.     }
  479.     public function getSourceContext(): Source
  480.     {
  481.         return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
  482. {% embed 'app/area-brick-layout.html.twig' %}
  483.     {% block content %}
  484.         {% set customButtonLabel = pimcore_input('customButtonLabel').getData() %}
  485.         <section class=\"relative pb-8 md:pb-10\">
  486.             {% set selectedImage = pimcore_image('background-image') %}
  487.             {% set HeroLargeBackgroundImage = selectedImage.getThumbnail(\"header-large-gradient\") %}
  488.             {% set backgroundPositionStyle = \"background-position:\" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? \"50\") ~ \"% \" ~  (selectedImage.getImage().getCustomSetting('focalPointY') ?? \"50\") ~ \"%; \" %}
  489.             <section>
  490.                 <div class=\"bg-blue-200 pb-8 pt-[150px] sm:py-20\">
  491.                     <div class=\"sm:container flex flex-row h-full items-center sm:min-h-[650px]\">
  492.                         <div class=\"sm:absolute sm:left-0 hero-large-background\" style=\"{{ backgroundPositionStyle ?? \"\" }} background-image:url('{{ HeroLargeBackgroundImage }}');\"></div>
  493.                         <div class=\"mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded\">
  494.                             {% include 'includes/partials/hero_content.html.twig' %}
  495.                         </div>
  496.                     </div>
  497.                 </div>
  498.             </section>
  499.             {# Defined as editableDialogBox field #}
  500.             {% if pimcore_relations(\"product-categories\") is not empty %}
  501.                 <div
  502.                     class=\"container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl\">
  503.                     {% for productCategory in pimcore_relations(\"product-categories\") %}
  504.                         {% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %}
  505.                         {% if productCategory.page is empty or productCategory.page == false %}
  506.                             <div
  507.                                 class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
  508.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  509.                                     {% if productCategory.icon %}
  510.                                         <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  511.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  512.                                         </div>
  513.                                     {% endif %}
  514.                                     <span class=\"text-center\">
  515.                                         {{ productCategory.name ?: productCategory.key }}
  516.                                     </span>
  517.                                 </div>
  518.                                 <span class=\"text-gray-800 md:hidden\">
  519.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  520.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  521.                                               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\"/>
  522.                                     </svg>
  523.                                 </span>
  524.                             </div>
  525.                         {% else %}
  526.                             <a href=\"{{ productCategory.page.url | trimUrl }}\"
  527.                                class=\"flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300  md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? \"rounded-t-md md:rounded-l-md md:rounded-r-none\" : \"\" }}\">
  528.                                 <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  529.                                     {% if productCategory.icon %}
  530.                                         <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4\">
  531.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  532.                                         </div>
  533.                                     {% endif %}
  534.                                     <span class=\"text-center\">
  535.                                         {{ productCategory.name ?: productCategory.key }}
  536.                                     </span>
  537.                                 </div>
  538.                                 <span class=\"text-gray-800 md:hidden\">
  539.                                     <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  540.                                         <path fill=\"currentColor\" fill-rule=\"evenodd\"
  541.                                               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\"/>
  542.                                     </svg>
  543.                                 </span>
  544.                             </a>
  545.                         {% endif %}
  546.                     {% endfor %}
  547.                     {% if document.getProperty('productCategoryArchivePage') is defined
  548.                         and document.getProperty('productCategoryArchivePage') is not null %}
  549.                         <a href=\"{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}\"
  550.                            class=\"flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md\">
  551.                             <div class=\"flex items-center w-full md:justify-center md:flex-col\">
  552.                                 {% if pimcore_website_config('allSolutionsIcon') %}
  553.                                     <div class=\"inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14\">
  554.                                         {{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }}
  555.                                     </div>
  556.                                 {% endif %}
  557.                                 <span class=\"text-center\">
  558.                                     {{ \"Alle oplossingen\"|trans }}
  559.                                 </span>
  560.                             </div>
  561.                             <span class=\"text-gray-800 md:hidden\">
  562.                                 <svg class=\"w-4 h-8 \" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  563.                                     <path fill=\"currentColor\" fill-rule=\"evenodd\"
  564.                                           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\"/>
  565.                                 </svg>
  566.                             </span>
  567.                         </a>
  568.                     {% endif %}
  569.                 </div>
  570.             {% endif %}
  571.         </section>
  572.     {% endblock %}
  573. {% endembed %}
  574. ""areas/hero-large-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-large-brick/view.html.twig");
  575.     }
  576.     
  577.     public function checkSecurity()
  578.     {
  579.         static $tags = ["extends" => 3"set" => 7"include" => 19"if" => 26"for" => 29];
  580.         static $filters = ["escape" => 17"raw" => 38"trimUrl" => 53"trans" => 86];
  581.         static $functions = ["pimcore_input" => 7"pimcore_image" => 10"pimcore_relations" => 26"pimcore_website_config" => 80];
  582.         try {
  583.             $this->sandbox->checkSecurity(
  584.                 ['extends''set''include''if''for'],
  585.                 ['escape''raw''trimUrl''trans'],
  586.                 ['pimcore_input''pimcore_image''pimcore_relations''pimcore_website_config'],
  587.                 $this->source
  588.             );
  589.         } catch (SecurityError $e) {
  590.             $e->setSourceContext($this->source);
  591.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  592.                 $e->setTemplateLine($tags[$e->getTagName()]);
  593.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  594.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  595.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  596.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  597.             }
  598.             throw $e;
  599.         }
  600.     }
  601. }