var/cache/dev/twig/68/6848714bdb241a34db09b1d1acfc79a3e3a950d176964ad14c544a2711ae46b2.php line 310

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/content-brick/view.html.twig */
  16. class __TwigTemplate_c557f62fb8534a3394fb93c4b6c7db898fae17b88ef8e0ebb2fbd357546a8cfd 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/content-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/content-brick/view.html.twig"));
  40.         // line 1
  41.         yield from $this->loadTemplate("areas/content-brick/view.html.twig""areas/content-brick/view.html.twig"1"276613162")->unwrap()->yield($context);
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.         yield from [];
  47.     }
  48.     /**
  49.      * @codeCoverageIgnore
  50.      */
  51.     public function getTemplateName(): string
  52.     {
  53.         return "areas/content-brick/view.html.twig";
  54.     }
  55.     /**
  56.      * @codeCoverageIgnore
  57.      */
  58.     public function getDebugInfo(): array
  59.     {
  60.         return array (  50 => 1,);
  61.     }
  62.     public function getSourceContext(): Source
  63.     {
  64.         return new Source("{% embed 'app/area-brick-layout.html.twig' %}
  65.     {% block content %}
  66.         {% set brickLayout = layout ?? pimcore_select(\"layout\").getData() %}
  67.         {% if editmode or pimcore_input(\"title\").data is not empty or pimcore_input(\"headline\").data is not empty or pimcore_wysiwyg(\"wysiwyg\").data is not empty or defaultTitle is defined %}
  68.             <section class=\"
  69.                 {% if containerClasses is defined and containerClasses %}
  70.                     {{ containerClasses }}
  71.                 {% else %}
  72.                     {{ 'py-10 lg:py-20' }}
  73.                 {% endif %}
  74.                 {{ defaultBackgroundColor ?? '' }}
  75.                 \">
  76.                 {% if brickLayout == \"text-image\" %}
  77.                     {% include 'areas/content-brick/layouts/text-image.html.twig'  with {
  78.                         product: product ?? null,
  79.                         productCategory: productCategory ?? null
  80.                     } %}
  81.                 {% elseif brickLayout == \"text-video\"  %}
  82.                     {% include 'areas/content-brick/layouts/text-video.html.twig' with {
  83.                         product: product ?? null,
  84.                         productCategory: productCategory ?? null
  85.                     } %}
  86.                 {% elseif brickLayout == \"text-gallery\" %}
  87.                     {% include 'areas/content-brick/layouts/text-gallery.html.twig' with {
  88.                         product: product ?? null,
  89.                         productCategory: productCategory ?? null
  90.                     } %}
  91.                 {% elseif brickLayout == \"text-below-text\" %}
  92.                     {% include 'areas/content-brick/layouts/text-below-text.html.twig' %}
  93.                 {% elseif brickLayout == \"text-usps\" %}
  94.                     {% include 'areas/content-brick/layouts/text-usps.html.twig' %}
  95.                 {% else %}{# DEFAULT #}
  96.                     {% include 'areas/content-brick/layouts/text-image.html.twig' %}
  97.                 {% endif %}
  98.                 {% if showFloatingBanner is defined and showFloatingBanner %}
  99.                     {% include 'areas/content-brick/partials/_floating_banner.html.twig' %}
  100.                 {% endif %}
  101.             </section>
  102.         {% endif %}
  103.         {% include 'areas/content-brick/partials/editmode/styling.html.twig' %}
  104.     {% endblock %}
  105. {% endembed %}
  106. ""areas/content-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/view.html.twig");
  107.     }
  108.     
  109.     public function checkSecurity()
  110.     {
  111.         static $tags = ["embed" => 1];
  112.         static $filters = [];
  113.         static $functions = [];
  114.         try {
  115.             $this->sandbox->checkSecurity(
  116.                 ['embed'],
  117.                 [],
  118.                 [],
  119.                 $this->source
  120.             );
  121.         } catch (SecurityError $e) {
  122.             $e->setSourceContext($this->source);
  123.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  124.                 $e->setTemplateLine($tags[$e->getTagName()]);
  125.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  126.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  128.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  129.             }
  130.             throw $e;
  131.         }
  132.     }
  133. }
  134. /* areas/content-brick/view.html.twig */
  135. class __TwigTemplate_c557f62fb8534a3394fb93c4b6c7db898fae17b88ef8e0ebb2fbd357546a8cfd___276613162 extends Template
  136. {
  137.     private Source $source;
  138.     /**
  139.      * @var array<string, Template>
  140.      */
  141.     private array $macros = [];
  142.     public function __construct(Environment $env)
  143.     {
  144.         parent::__construct($env);
  145.         $this->source $this->getSourceContext();
  146.         $this->blocks = [
  147.             'content' => [$this'block_content'],
  148.         ];
  149.         $this->sandbox $this->extensions[SandboxExtension::class];
  150.         $this->checkSecurity();
  151.     }
  152.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  153.     {
  154.         return "app/area-brick-layout.html.twig";
  155.     }
  156.     protected function doDisplay(array $context, array $blocks = []): iterable
  157.     {
  158.         $macros $this->macros;
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/view.html.twig"));
  161.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/view.html.twig"));
  163.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/content-brick/view.html.twig"1);
  164.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  165.         
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  167.         
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  169.     }
  170.     // line 3
  171.     /**
  172.      * @return iterable<null|scalar|\Stringable>
  173.      */
  174.     public function block_content(array $context, array $blocks = []): iterable
  175.     {
  176.         $macros $this->macros;
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  178.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  179.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  180.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  181.         // line 4
  182.         yield "
  183.         ";
  184.         // line 5
  185.         $context["brickLayout"] = ($context["layout"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""layout"), "getData", [], "method"falsefalsetrue5));
  186.         // line 6
  187.         yield "
  188.         ";
  189.         // line 7
  190.         if ((((((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'7$this->source); })()) ||  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title"), "data", [], "any"falsefalsetrue7))) ||  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "data", [], "any"falsefalsetrue7))) ||  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""wysiwyg"), "data", [], "any"falsefalsetrue7))) || array_key_exists("defaultTitle"$context))) {
  191.             // line 8
  192.             yield "            <section class=\"
  193.                 ";
  194.             // line 9
  195.             if ((array_key_exists("containerClasses"$context) && (isset($context["containerClasses"]) || array_key_exists("containerClasses"$context) ? $context["containerClasses"] : (function () { throw new RuntimeError('Variable "containerClasses" does not exist.'9$this->source); })()))) {
  196.                 // line 10
  197.                 yield "                    ";
  198.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["containerClasses"]) || array_key_exists("containerClasses"$context) ? $context["containerClasses"] : (function () { throw new RuntimeError('Variable "containerClasses" does not exist.'10$this->source); })()), 10$this->source), "html"nulltrue);
  199.                 yield "
  200.                 ";
  201.             } else {
  202.                 // line 12
  203.                 yield "                    ";
  204.                 yield "py-10 lg:py-20";
  205.                 yield "
  206.                 ";
  207.             }
  208.             // line 14
  209.             yield "                ";
  210.             yield ($context["defaultBackgroundColor"] ?? "");
  211.             yield "
  212.                 \">
  213.                 ";
  214.             // line 17
  215.             if (((isset($context["brickLayout"]) || array_key_exists("brickLayout"$context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.'17$this->source); })()) == "text-image")) {
  216.                 // line 18
  217.                 yield "                    ";
  218.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-image.html.twig""areas/content-brick/view.html.twig"18)->unwrap()->yield(CoreExtension::merge($context, ["product" => (                // line 19
  219. $context["product"] ?? null), "productCategory" => (                // line 20
  220. $context["productCategory"] ?? null)]));
  221.                 // line 22
  222.                 yield "
  223.                 ";
  224.             } elseif ((            // line 23
  225. (isset($context["brickLayout"]) || array_key_exists("brickLayout"$context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.'23$this->source); })()) == "text-video")) {
  226.                 // line 24
  227.                 yield "                    ";
  228.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-video.html.twig""areas/content-brick/view.html.twig"24)->unwrap()->yield(CoreExtension::merge($context, ["product" => (                // line 25
  229. $context["product"] ?? null), "productCategory" => (                // line 26
  230. $context["productCategory"] ?? null)]));
  231.                 // line 28
  232.                 yield "
  233.                 ";
  234.             } elseif ((            // line 29
  235. (isset($context["brickLayout"]) || array_key_exists("brickLayout"$context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.'29$this->source); })()) == "text-gallery")) {
  236.                 // line 30
  237.                 yield "                    ";
  238.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-gallery.html.twig""areas/content-brick/view.html.twig"30)->unwrap()->yield(CoreExtension::merge($context, ["product" => (                // line 31
  239. $context["product"] ?? null), "productCategory" => (                // line 32
  240. $context["productCategory"] ?? null)]));
  241.                 // line 34
  242.                 yield "
  243.                 ";
  244.             } elseif ((            // line 35
  245. (isset($context["brickLayout"]) || array_key_exists("brickLayout"$context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.'35$this->source); })()) == "text-below-text")) {
  246.                 // line 36
  247.                 yield "                    ";
  248.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-below-text.html.twig""areas/content-brick/view.html.twig"36)->unwrap()->yield($context);
  249.                 // line 37
  250.                 yield "
  251.                 ";
  252.             } elseif ((            // line 38
  253. (isset($context["brickLayout"]) || array_key_exists("brickLayout"$context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.'38$this->source); })()) == "text-usps")) {
  254.                 // line 39
  255.                 yield "                    ";
  256.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-usps.html.twig""areas/content-brick/view.html.twig"39)->unwrap()->yield($context);
  257.                 // line 40
  258.                 yield "
  259.                 ";
  260.             } else {
  261.                 // line 42
  262.                 yield "                    ";
  263.                 yield from $this->loadTemplate("areas/content-brick/layouts/text-image.html.twig""areas/content-brick/view.html.twig"42)->unwrap()->yield($context);
  264.                 // line 43
  265.                 yield "
  266.                 ";
  267.             }
  268.             // line 45
  269.             yield "
  270.                 ";
  271.             // line 46
  272.             if ((array_key_exists("showFloatingBanner"$context) && (isset($context["showFloatingBanner"]) || array_key_exists("showFloatingBanner"$context) ? $context["showFloatingBanner"] : (function () { throw new RuntimeError('Variable "showFloatingBanner" does not exist.'46$this->source); })()))) {
  273.                 // line 47
  274.                 yield "                    ";
  275.                 yield from $this->loadTemplate("areas/content-brick/partials/_floating_banner.html.twig""areas/content-brick/view.html.twig"47)->unwrap()->yield($context);
  276.                 // line 48
  277.                 yield "                ";
  278.             }
  279.             // line 49
  280.             yield "
  281.             </section>
  282.         ";
  283.         }
  284.         // line 52
  285.         yield "
  286.         ";
  287.         // line 53
  288.         yield from $this->loadTemplate("areas/content-brick/partials/editmode/styling.html.twig""areas/content-brick/view.html.twig"53)->unwrap()->yield($context);
  289.         // line 54
  290.         yield "
  291.     ";
  292.         
  293.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  294.         
  295.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  296.         yield from [];
  297.     }
  298.     /**
  299.      * @codeCoverageIgnore
  300.      */
  301.     public function getTemplateName(): string
  302.     {
  303.         return "areas/content-brick/view.html.twig";
  304.     }
  305.     /**
  306.      * @codeCoverageIgnore
  307.      */
  308.     public function isTraitable(): bool
  309.     {
  310.         return false;
  311.     }
  312.     /**
  313.      * @codeCoverageIgnore
  314.      */
  315.     public function getDebugInfo(): array
  316.     {
  317.         return array (  337 => 54,  335 => 53,  332 => 52,  327 => 49,  324 => 48,  321 => 47,  319 => 46,  316 => 45,  312 => 43,  309 => 42,  305 => 40,  302 => 39,  300 => 38,  297 => 37,  294 => 36,  292 => 35,  289 => 34,  287 => 32,  286 => 31,  284 => 30,  282 => 29,  279 => 28,  277 => 26,  276 => 25,  274 => 24,  272 => 23,  269 => 22,  267 => 20,  266 => 19,  264 => 18,  262 => 17,  255 => 14,  249 => 12,  243 => 10,  241 => 9,  238 => 8,  236 => 7,  233 => 6,  231 => 5,  228 => 4,  215 => 3,  50 => 1,);
  318.     }
  319.     public function getSourceContext(): Source
  320.     {
  321.         return new Source("{% embed 'app/area-brick-layout.html.twig' %}
  322.     {% block content %}
  323.         {% set brickLayout = layout ?? pimcore_select(\"layout\").getData() %}
  324.         {% if editmode or pimcore_input(\"title\").data is not empty or pimcore_input(\"headline\").data is not empty or pimcore_wysiwyg(\"wysiwyg\").data is not empty or defaultTitle is defined %}
  325.             <section class=\"
  326.                 {% if containerClasses is defined and containerClasses %}
  327.                     {{ containerClasses }}
  328.                 {% else %}
  329.                     {{ 'py-10 lg:py-20' }}
  330.                 {% endif %}
  331.                 {{ defaultBackgroundColor ?? '' }}
  332.                 \">
  333.                 {% if brickLayout == \"text-image\" %}
  334.                     {% include 'areas/content-brick/layouts/text-image.html.twig'  with {
  335.                         product: product ?? null,
  336.                         productCategory: productCategory ?? null
  337.                     } %}
  338.                 {% elseif brickLayout == \"text-video\"  %}
  339.                     {% include 'areas/content-brick/layouts/text-video.html.twig' with {
  340.                         product: product ?? null,
  341.                         productCategory: productCategory ?? null
  342.                     } %}
  343.                 {% elseif brickLayout == \"text-gallery\" %}
  344.                     {% include 'areas/content-brick/layouts/text-gallery.html.twig' with {
  345.                         product: product ?? null,
  346.                         productCategory: productCategory ?? null
  347.                     } %}
  348.                 {% elseif brickLayout == \"text-below-text\" %}
  349.                     {% include 'areas/content-brick/layouts/text-below-text.html.twig' %}
  350.                 {% elseif brickLayout == \"text-usps\" %}
  351.                     {% include 'areas/content-brick/layouts/text-usps.html.twig' %}
  352.                 {% else %}{# DEFAULT #}
  353.                     {% include 'areas/content-brick/layouts/text-image.html.twig' %}
  354.                 {% endif %}
  355.                 {% if showFloatingBanner is defined and showFloatingBanner %}
  356.                     {% include 'areas/content-brick/partials/_floating_banner.html.twig' %}
  357.                 {% endif %}
  358.             </section>
  359.         {% endif %}
  360.         {% include 'areas/content-brick/partials/editmode/styling.html.twig' %}
  361.     {% endblock %}
  362. {% endembed %}
  363. ""areas/content-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/view.html.twig");
  364.     }
  365.     
  366.     public function checkSecurity()
  367.     {
  368.         static $tags = ["extends" => 1"set" => 5"if" => 7"include" => 18];
  369.         static $filters = ["escape" => 10];
  370.         static $functions = ["pimcore_select" => 5"pimcore_input" => 7"pimcore_wysiwyg" => 7];
  371.         try {
  372.             $this->sandbox->checkSecurity(
  373.                 ['extends''set''if''include'],
  374.                 ['escape'],
  375.                 ['pimcore_select''pimcore_input''pimcore_wysiwyg'],
  376.                 $this->source
  377.             );
  378.         } catch (SecurityError $e) {
  379.             $e->setSourceContext($this->source);
  380.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  381.                 $e->setTemplateLine($tags[$e->getTagName()]);
  382.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  383.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  384.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  385.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  386.             }
  387.             throw $e;
  388.         }
  389.     }
  390. }