var/cache/dev/twig/cc/cc0a4af5ab64e53e3eb40b94093a7d3acddf3ee2a7b73178031ed6cf18b681fd.php line 41

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. /* app/area-brick-layout.html.twig */
  16. class __TwigTemplate_69242af8ac442057bf423ce208d48f5c4a1b87550c7352318ae0e8ad6b292348 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.             'content' => [$this'block_content'],
  30.         ];
  31.         $this->sandbox $this->extensions[SandboxExtension::class];
  32.         $this->checkSecurity();
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = []): iterable
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/area-brick-layout.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/area-brick-layout.html.twig"));
  41.         // line 1
  42.         yield "<div class=\"";
  43.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'1$this->source); })()), "getId", [], "any"falsefalsetrue1), 1$this->source), "html"nulltrue);
  44.         yield " ";
  45.         yield ($context["brickBackgroundColor"] ?? (((CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "data", [], "any"truetruetrue1) &&  !(null === CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "data", [], "any"falsefalsetrue1)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "data", [], "any"falsefalsetrue1), 1$this->source), "html"nulltrue)) : ("bg-white")));
  46.         yield " ";
  47.         if (((CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""backgroundGradient"), "isChecked", [], "method"truetruetrue1)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""backgroundGradient"), "isChecked", [], "method"falsefalsetrue1), false)) : (false))) {
  48.             yield " hero-bg-radial ";
  49.         }
  50.         yield " pimcore_area_content\">
  51.     ";
  52.         // line 2
  53.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  54.         // line 3
  55.         yield "</div>
  56. ";
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         yield from [];
  62.     }
  63.     // line 2
  64.     /**
  65.      * @return iterable<null|scalar|\Stringable>
  66.      */
  67.     public function block_content(array $context, array $blocks = []): iterable
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.         yield from [];
  79.     }
  80.     /**
  81.      * @codeCoverageIgnore
  82.      */
  83.     public function getTemplateName(): string
  84.     {
  85.         return "app/area-brick-layout.html.twig";
  86.     }
  87.     /**
  88.      * @codeCoverageIgnore
  89.      */
  90.     public function isTraitable(): bool
  91.     {
  92.         return false;
  93.     }
  94.     /**
  95.      * @codeCoverageIgnore
  96.      */
  97.     public function getDebugInfo(): array
  98.     {
  99.         return array (  80 => 2,  64 => 3,  62 => 2,  51 => 1,);
  100.     }
  101.     public function getSourceContext(): Source
  102.     {
  103.         return new Source("<div class=\"{{ info.getId }} {{ brickBackgroundColor ?? pimcore_select('backgroundColor').data ?? 'bg-white' }} {% if pimcore_checkbox('backgroundGradient').isChecked() | default(false) %} hero-bg-radial {% endif %} pimcore_area_content\">
  104.     {% block content %}{% endblock %}
  105. </div>
  106. ""app/area-brick-layout.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/app/area-brick-layout.html.twig");
  107.     }
  108.     
  109.     public function checkSecurity()
  110.     {
  111.         static $tags = ["if" => 1"block" => 2];
  112.         static $filters = ["escape" => 1"default" => 1];
  113.         static $functions = ["pimcore_select" => 1"pimcore_checkbox" => 1];
  114.         try {
  115.             $this->sandbox->checkSecurity(
  116.                 ['if''block'],
  117.                 ['escape''default'],
  118.                 ['pimcore_select''pimcore_checkbox'],
  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. }