var/cache/dev/twig/8f/8f5f1fe676477093006faa20324de95d2cb33010f481a45199f03de47993471d.php line 45

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. /* content/default.html.twig */
  16. class __TwigTemplate_f97962ecf2e4998408d206983437272ddf3ccd79028c11e7930e27327bc95afb 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->blocks = [
  28.             'content' => [$this'block_content'],
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "app/layout.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/default.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/default.html.twig"));
  45.         $this->parent $this->loadTemplate("app/layout.html.twig""content/default.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 3
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_content(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 4
  64.         yield "
  65.     ";
  66.         // line 5
  67.         yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig""content/default.html.twig"5)->unwrap()->yield($context);
  68.         // line 6
  69.         yield "
  70.     ";
  71.         // line 7
  72.         if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'7$this->source); })()), "getTitle", [], "method"falsefalsetrue7))) {
  73.             // line 8
  74.             yield "        ";
  75.             $this->env->getFunction('pimcore_head_title')->getCallable()(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "getData", [], "method"falsefalsetrue8), "PREPEND");
  76.             // line 9
  77.             yield "    ";
  78.         }
  79.         // line 10
  80.         yield "
  81.     ";
  82.         // line 11
  83.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content"$this->sandbox->ensureToStringAllowed((isset($context["areaBlockSettings"]) || array_key_exists("areaBlockSettings"$context) ? $context["areaBlockSettings"] : (function () { throw new RuntimeError('Variable "areaBlockSettings" does not exist.'11$this->source); })()), 11$this->source));
  84.         yield "
  85.     ";
  86.         // line 13
  87.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""contact-side-widget", ["type" => "contact-side-widget-brick"]);
  88.         // line 15
  89.         yield "
  90. ";
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.         yield from [];
  96.     }
  97.     /**
  98.      * @codeCoverageIgnore
  99.      */
  100.     public function getTemplateName(): string
  101.     {
  102.         return "content/default.html.twig";
  103.     }
  104.     /**
  105.      * @codeCoverageIgnore
  106.      */
  107.     public function isTraitable(): bool
  108.     {
  109.         return false;
  110.     }
  111.     /**
  112.      * @codeCoverageIgnore
  113.      */
  114.     public function getDebugInfo(): array
  115.     {
  116.         return array (  104 => 15,  102 => 13,  97 => 11,  94 => 10,  91 => 9,  88 => 8,  86 => 7,  83 => 6,  81 => 5,  78 => 4,  65 => 3,  42 => 1,);
  117.     }
  118.     public function getSourceContext(): Source
  119.     {
  120.         return new Source("{% extends 'app/layout.html.twig' %}
  121. {% block content %}
  122.     {% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
  123.     {% if document.getTitle() is empty %}
  124.         {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  125.     {% endif %}
  126.     {{ pimcore_areablock( 'content', areaBlockSettings ) }}
  127.     {{ pimcore_area('contact-side-widget', {
  128.         type: 'contact-side-widget-brick'
  129.     }) }}
  130. {% endblock %}""content/default.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/content/default.html.twig");
  131.     }
  132.     
  133.     public function checkSecurity()
  134.     {
  135.         static $tags = ["extends" => 1"include" => 5"if" => 7"do" => 8];
  136.         static $filters = [];
  137.         static $functions = ["pimcore_head_title" => 8"pimcore_input" => 8"pimcore_areablock" => 11"pimcore_area" => 13];
  138.         try {
  139.             $this->sandbox->checkSecurity(
  140.                 ['extends''include''if''do'],
  141.                 [],
  142.                 ['pimcore_head_title''pimcore_input''pimcore_areablock''pimcore_area'],
  143.                 $this->source
  144.             );
  145.         } catch (SecurityError $e) {
  146.             $e->setSourceContext($this->source);
  147.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  148.                 $e->setTemplateLine($tags[$e->getTagName()]);
  149.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  150.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  151.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  152.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  153.             }
  154.             throw $e;
  155.         }
  156.     }
  157. }