var/cache/dev/twig/4b/4bc17385a8cdd8979a5c4f50bf47ea797a4fbc8d2e19d5a5c12b07b783f0f761.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/content-brick/partials/_headline.html.twig */
  16. class __TwigTemplate_0fb01394a13d48a80c0486990d7c18fb2a5adbf65f7bc41298b1e96836075b40 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/partials/_headline.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/partials/_headline.html.twig"));
  40.         // line 1
  41.         yield "<span class=\"inline-block mb-1 text-base font-bold md:mb-3 md:text-lg\">
  42.     ";
  43.         // line 3
  44.         if ((array_key_exists("preHeadlineIconActive"$context) &&  !array_key_exists("overrideIcon"$context))) {
  45.             // line 4
  46.             yield "        ";
  47.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""preHeadlineIconActive", ["thumbnail" => "icon"]);
  48.             // line 7
  49.             yield "
  50.     ";
  51.         }
  52.         // line 9
  53.         yield "
  54.     ";
  55.         // line 10
  56.         if ((array_key_exists("overrideIcon"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["overrideIcon"]) || array_key_exists("overrideIcon"$context) ? $context["overrideIcon"] : (function () { throw new RuntimeError('Variable "overrideIcon" does not exist.'10$this->source); })())))) {
  57.             // line 11
  58.             yield "        <span class=\"block w-12 h-12 mb-3\">
  59.             ";
  60.             // line 12
  61.             yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["overrideIcon"]) || array_key_exists("overrideIcon"$context) ? $context["overrideIcon"] : (function () { throw new RuntimeError('Variable "overrideIcon" does not exist.'12$this->source); })()), "thumbnail", ["icon"], "method"falsefalsetrue12), "html", [], "any"falsefalsetrue12), 12$this->source);
  62.             yield "
  63.         </span>
  64.     ";
  65.         }
  66.         // line 15
  67.         yield "
  68.     ";
  69.         // line 16
  70.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'16$this->source); })())) {
  71.             // line 17
  72.             yield "        ";
  73.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => ($context["defaultHeadline"] ?? "Headline")]);
  74.             yield "
  75.     ";
  76.         } else {
  77.             // line 19
  78.             yield "        ";
  79.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\RenderOrDefaultExtension']->renderOrDefault($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "getData", [], "method"falsefalsetrue19), 19$this->source), ($context["defaultHeadline"] ?? "")), "html"nulltrue);
  80.             yield "
  81.     ";
  82.         }
  83.         // line 21
  84.         yield "</span>
  85. ";
  86.         
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         yield from [];
  91.     }
  92.     /**
  93.      * @codeCoverageIgnore
  94.      */
  95.     public function getTemplateName(): string
  96.     {
  97.         return "areas/content-brick/partials/_headline.html.twig";
  98.     }
  99.     /**
  100.      * @codeCoverageIgnore
  101.      */
  102.     public function isTraitable(): bool
  103.     {
  104.         return false;
  105.     }
  106.     /**
  107.      * @codeCoverageIgnore
  108.      */
  109.     public function getDebugInfo(): array
  110.     {
  111.         return array (  94 => 21,  88 => 19,  82 => 17,  80 => 16,  77 => 15,  71 => 12,  68 => 11,  66 => 10,  63 => 9,  59 => 7,  56 => 4,  54 => 3,  50 => 1,);
  112.     }
  113.     public function getSourceContext(): Source
  114.     {
  115.         return new Source("<span class=\"inline-block mb-1 text-base font-bold md:mb-3 md:text-lg\">
  116.     {% if preHeadlineIconActive is defined and overrideIcon is not defined %}
  117.         {{ pimcore_image('preHeadlineIconActive',
  118.             {
  119.                 'thumbnail': 'icon',
  120.             }) |raw }}
  121.     {% endif %}
  122.     {% if overrideIcon is defined and overrideIcon is not empty %}
  123.         <span class=\"block w-12 h-12 mb-3\">
  124.             {{ overrideIcon.thumbnail('icon').html|raw }}
  125.         </span>
  126.     {% endif %}
  127.     {% if editmode %}
  128.         {{ pimcore_input(\"headline\", {'placeholder': defaultHeadline ?? \"Headline\"}) }}
  129.     {% else %}
  130.         {{ renderOrDefault(pimcore_input(\"headline\").getData(), defaultHeadline ?? \"\") }}
  131.     {% endif %}
  132. </span>
  133. ""areas/content-brick/partials/_headline.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/_headline.html.twig");
  134.     }
  135.     
  136.     public function checkSecurity()
  137.     {
  138.         static $tags = ["if" => 3];
  139.         static $filters = ["raw" => 7"escape" => 19];
  140.         static $functions = ["pimcore_image" => 4"pimcore_input" => 17"renderOrDefault" => 19];
  141.         try {
  142.             $this->sandbox->checkSecurity(
  143.                 ['if'],
  144.                 ['raw''escape'],
  145.                 ['pimcore_image''pimcore_input''renderOrDefault'],
  146.                 $this->source
  147.             );
  148.         } catch (SecurityError $e) {
  149.             $e->setSourceContext($this->source);
  150.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  151.                 $e->setTemplateLine($tags[$e->getTagName()]);
  152.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  153.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  154.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  155.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  156.             }
  157.             throw $e;
  158.         }
  159.     }
  160. }