var/cache/dev/twig/da/daa76df3190ad372198633a6f940d359f86fe0e8bb094c380386715204709ea8.php line 40

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-regular-brick/view.html.twig */
  16. class __TwigTemplate_ccc55fab3f8b456f2dc1a778f4f7c03355081234d35ec5053e3a2c2135298134 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-regular-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-regular-brick/view.html.twig"));
  40.         // line 1
  41.         yield from $this->loadTemplate("includes/partials/hero_usp_bar.html.twig""areas/hero-regular-brick/view.html.twig"1)->unwrap()->yield($context);
  42.         // line 2
  43.         yield "
  44. ";
  45.         // line 3
  46.         yield from $this->loadTemplate("areas/hero-regular-brick/view.html.twig""areas/hero-regular-brick/view.html.twig"3"1251140530")->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-regular-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.         <section>
  80.             <div class=\"{{ pimcore_select('backgroundColor').getData()|default('bg-white') }} sm:py-20 sm:min-h-[640px]\">
  81.                 <div class=\"relative sm:-mb-[260px] sm:pb-0 sm:container flex flex-col h-full sm:flex-row-reverse items-center\">
  82.                     <div class=\"w-full sm:w-[50%] relative sm:-left-[62px] sm:rounded overflow-hidden\">
  83.                         {% if not pimcore_image('background-image').isEmpty() %}
  84.                             {{ pimcore_image('background-image').getThumbnail('header-regular-image').html()|raw }}
  85.                         {% endif %}
  86.                     </div>
  87.                     <div class=\"relative m-4 sm:w-[50%] hero-card z-1 hero-card--overlap bg-white py-8 px-10 sm:ml-8 rounded\">
  88.                         {% include 'includes/partials/hero_content.html.twig' %}
  89.                     </div>
  90.                 </div>
  91.             </div>
  92.         </section>
  93.     {% endblock %}
  94. {% endembed %}
  95. ""areas/hero-regular-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-regular-brick/view.html.twig");
  96.     }
  97.     
  98.     public function checkSecurity()
  99.     {
  100.         static $tags = ["include" => 1"embed" => 3];
  101.         static $filters = [];
  102.         static $functions = [];
  103.         try {
  104.             $this->sandbox->checkSecurity(
  105.                 ['include''embed'],
  106.                 [],
  107.                 [],
  108.                 $this->source
  109.             );
  110.         } catch (SecurityError $e) {
  111.             $e->setSourceContext($this->source);
  112.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  113.                 $e->setTemplateLine($tags[$e->getTagName()]);
  114.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  115.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  116.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  117.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  118.             }
  119.             throw $e;
  120.         }
  121.     }
  122. }
  123. /* areas/hero-regular-brick/view.html.twig */
  124. class __TwigTemplate_ccc55fab3f8b456f2dc1a778f4f7c03355081234d35ec5053e3a2c2135298134___1251140530 extends Template
  125. {
  126.     private Source $source;
  127.     /**
  128.      * @var array<string, Template>
  129.      */
  130.     private array $macros = [];
  131.     public function __construct(Environment $env)
  132.     {
  133.         parent::__construct($env);
  134.         $this->source $this->getSourceContext();
  135.         $this->blocks = [
  136.             'content' => [$this'block_content'],
  137.         ];
  138.         $this->sandbox $this->extensions[SandboxExtension::class];
  139.         $this->checkSecurity();
  140.     }
  141.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  142.     {
  143.         return "app/area-brick-layout.html.twig";
  144.     }
  145.     protected function doDisplay(array $context, array $blocks = []): iterable
  146.     {
  147.         $macros $this->macros;
  148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-regular-brick/view.html.twig"));
  150.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-regular-brick/view.html.twig"));
  152.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/hero-regular-brick/view.html.twig"3);
  153.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  154.         
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  156.         
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  158.     }
  159.     // line 4
  160.     /**
  161.      * @return iterable<null|scalar|\Stringable>
  162.      */
  163.     public function block_content(array $context, array $blocks = []): iterable
  164.     {
  165.         $macros $this->macros;
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  170.         // line 5
  171.         yield "        <section>
  172.             <div class=\"";
  173.         // line 6
  174.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "getData", [], "method"truetruetrue6)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "getData", [], "method"falsefalsetrue6), 6$this->source), "bg-white")) : ("bg-white")), "html"nulltrue);
  175.         yield " sm:py-20 sm:min-h-[640px]\">
  176.                 <div class=\"relative sm:-mb-[260px] sm:pb-0 sm:container flex flex-col h-full sm:flex-row-reverse items-center\">
  177.                     <div class=\"w-full sm:w-[50%] relative sm:-left-[62px] sm:rounded overflow-hidden\">
  178.                         ";
  179.         // line 10
  180.         if ( !CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image"), "isEmpty", [], "method"falsefalsetrue10)) {
  181.             // line 11
  182.             yield "                            ";
  183.             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", ["header-regular-image"], "method"falsefalsetrue11), "html", [], "method"falsefalsetrue11), 11$this->source);
  184.             yield "
  185.                         ";
  186.         }
  187.         // line 13
  188.         yield "                    </div>
  189.                     <div class=\"relative m-4 sm:w-[50%] hero-card z-1 hero-card--overlap bg-white py-8 px-10 sm:ml-8 rounded\">
  190.                         ";
  191.         // line 15
  192.         yield from $this->loadTemplate("includes/partials/hero_content.html.twig""areas/hero-regular-brick/view.html.twig"15)->unwrap()->yield($context);
  193.         // line 16
  194.         yield "                    </div>
  195.                 </div>
  196.             </div>
  197.         </section>
  198.     ";
  199.         
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  201.         
  202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  203.         yield from [];
  204.     }
  205.     /**
  206.      * @codeCoverageIgnore
  207.      */
  208.     public function getTemplateName(): string
  209.     {
  210.         return "areas/hero-regular-brick/view.html.twig";
  211.     }
  212.     /**
  213.      * @codeCoverageIgnore
  214.      */
  215.     public function isTraitable(): bool
  216.     {
  217.         return false;
  218.     }
  219.     /**
  220.      * @codeCoverageIgnore
  221.      */
  222.     public function getDebugInfo(): array
  223.     {
  224.         return array (  230 => 16,  228 => 15,  224 => 13,  218 => 11,  216 => 10,  209 => 6,  206 => 5,  193 => 4,  55 => 3,  52 => 2,  50 => 1,);
  225.     }
  226.     public function getSourceContext(): Source
  227.     {
  228.         return new Source("{% include 'includes/partials/hero_usp_bar.html.twig' %}
  229. {% embed 'app/area-brick-layout.html.twig' %}
  230.     {% block content %}
  231.         <section>
  232.             <div class=\"{{ pimcore_select('backgroundColor').getData()|default('bg-white') }} sm:py-20 sm:min-h-[640px]\">
  233.                 <div class=\"relative sm:-mb-[260px] sm:pb-0 sm:container flex flex-col h-full sm:flex-row-reverse items-center\">
  234.                     <div class=\"w-full sm:w-[50%] relative sm:-left-[62px] sm:rounded overflow-hidden\">
  235.                         {% if not pimcore_image('background-image').isEmpty() %}
  236.                             {{ pimcore_image('background-image').getThumbnail('header-regular-image').html()|raw }}
  237.                         {% endif %}
  238.                     </div>
  239.                     <div class=\"relative m-4 sm:w-[50%] hero-card z-1 hero-card--overlap bg-white py-8 px-10 sm:ml-8 rounded\">
  240.                         {% include 'includes/partials/hero_content.html.twig' %}
  241.                     </div>
  242.                 </div>
  243.             </div>
  244.         </section>
  245.     {% endblock %}
  246. {% endembed %}
  247. ""areas/hero-regular-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-regular-brick/view.html.twig");
  248.     }
  249.     
  250.     public function checkSecurity()
  251.     {
  252.         static $tags = ["extends" => 3"if" => 10"include" => 15];
  253.         static $filters = ["escape" => 6"default" => 6"raw" => 11];
  254.         static $functions = ["pimcore_select" => 6"pimcore_image" => 10];
  255.         try {
  256.             $this->sandbox->checkSecurity(
  257.                 ['extends''if''include'],
  258.                 ['escape''default''raw'],
  259.                 ['pimcore_select''pimcore_image'],
  260.                 $this->source
  261.             );
  262.         } catch (SecurityError $e) {
  263.             $e->setSourceContext($this->source);
  264.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  265.                 $e->setTemplateLine($tags[$e->getTagName()]);
  266.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  267.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  268.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  269.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  270.             }
  271.             throw $e;
  272.         }
  273.     }
  274. }