var/cache/dev/twig/f6/f602906e90e5abb13bb724300b3754c2.php line 47

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. /* site/index.html.twig */
  16. class __TwigTemplate_1d3ca38bc875b0219ed989a767b878b1 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.             'title' => [$this'block_title'],
  29.             'description' => [$this'block_description'],
  30.             'keywords' => [$this'block_keywords'],
  31.             'seoHeadAdd' => [$this'block_seoHeadAdd'],
  32.             'body' => [$this'block_body'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36.     {
  37.         // line 1
  38.         return "base.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = []): iterable
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/index.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/index.html.twig"));
  47.         $this->parent $this->load("base.html.twig"1);
  48.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 3
  55.     /**
  56.      * @return iterable<null|scalar|\Stringable>
  57.      */
  58.     public function block_title(array $context, array $blocks = []): iterable
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["pageheader"]) || array_key_exists("pageheader"$context) ? $context["pageheader"] : (function () { throw new RuntimeError('Variable "pageheader" does not exist.'3$this->source); })()), "pagetitle", [], "any"falsefalsefalse3), "html"nulltrue);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         yield from [];
  71.     }
  72.     // line 4
  73.     /**
  74.      * @return iterable<null|scalar|\Stringable>
  75.      */
  76.     public function block_description(array $context, array $blocks = []): iterable
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  83.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["pageheaderdescription"]) || array_key_exists("pageheaderdescription"$context) ? $context["pageheaderdescription"] : (function () { throw new RuntimeError('Variable "pageheaderdescription" does not exist.'4$this->source); })()), "html"nulltrue);
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.         yield from [];
  89.     }
  90.     // line 5
  91.     /**
  92.      * @return iterable<null|scalar|\Stringable>
  93.      */
  94.     public function block_keywords(array $context, array $blocks = []): iterable
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  101.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["pageheader"]) || array_key_exists("pageheader"$context) ? $context["pageheader"] : (function () { throw new RuntimeError('Variable "pageheader" does not exist.'5$this->source); })()), "keywords", [], "any"falsefalsefalse5), "html"nulltrue);
  102.         
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104.         
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106.         yield from [];
  107.     }
  108.     // line 6
  109.     /**
  110.      * @return iterable<null|scalar|\Stringable>
  111.      */
  112.     public function block_seoHeadAdd(array $context, array $blocks = []): iterable
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoHeadAdd"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoHeadAdd"));
  119.         // line 7
  120.         yield "    <link rel=”canonical” href=”";
  121.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "uri", [], "any"falsefalsefalse7), "html"nulltrue);
  122.         yield "” />
  123. ";
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.         yield from [];
  129.     }
  130.     // line 9
  131.     /**
  132.      * @return iterable<null|scalar|\Stringable>
  133.      */
  134.     public function block_body(array $context, array $blocks = []): iterable
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  141.         // line 10
  142.         yield "    ";
  143.         $context['_parent'] = $context;
  144.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pageElements"]) || array_key_exists("pageElements"$context) ? $context["pageElements"] : (function () { throw new RuntimeError('Variable "pageElements" does not exist.'10$this->source); })()));
  145.         $context['loop'] = [
  146.           'parent' => $context['_parent'],
  147.           'index0' => 0,
  148.           'index'  => 1,
  149.           'first'  => true,
  150.         ];
  151.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  152.             $length count($context['_seq']);
  153.             $context['loop']['revindex0'] = $length 1;
  154.             $context['loop']['revindex'] = $length;
  155.             $context['loop']['length'] = $length;
  156.             $context['loop']['last'] = === $length;
  157.         }
  158.         foreach ($context['_seq'] as $context["_key"] => $context["pe"]) {
  159.             // line 11
  160.             yield "        ";
  161.             yield from $this->load(CoreExtension::getAttribute($this->env$this->source$context["pe"], "twig", [], "any"falsefalsefalse11), 11)->unwrap()->yield(CoreExtension::merge($context, ["post" => CoreExtension::getAttribute($this->env$this->source$context["pe"], "post", [], "any"falsefalsefalse11), "meta" => CoreExtension::getAttribute($this->env$this->source$context["pe"], "meta", [], "any"falsefalsefalse11), "components" => CoreExtension::getAttribute($this->env$this->source$context["pe"], "components", [], "any"falsefalsefalse11)]));
  162.             // line 12
  163.             yield "    ";
  164.             ++$context['loop']['index0'];
  165.             ++$context['loop']['index'];
  166.             $context['loop']['first'] = false;
  167.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  168.                 --$context['loop']['revindex0'];
  169.                 --$context['loop']['revindex'];
  170.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  171.             }
  172.         }
  173.         $_parent $context['_parent'];
  174.         unset($context['_seq'], $context['_key'], $context['pe'], $context['_parent'], $context['loop']);
  175.         $context array_intersect_key($context$_parent) + $_parent;
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.         yield from [];
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName(): string
  186.     {
  187.         return "site/index.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable(): bool
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo(): array
  200.     {
  201.         return array (  197 => 12,  194 => 11,  176 => 10,  163 => 9,  149 => 7,  136 => 6,  113 => 5,  90 => 4,  67 => 3,  44 => 1,);
  202.     }
  203.     public function getSourceContext(): Source
  204.     {
  205.         return new Source("{% extends 'base.html.twig' %}
  206. {% block title %}{{ pageheader.pagetitle }}{% endblock %}
  207. {% block description %}{{ pageheaderdescription }}{% endblock %}
  208. {% block keywords %}{{ pageheader.keywords }}{% endblock %}
  209. {% block seoHeadAdd %}
  210.     <link rel=”canonical” href=”{{ app.request.uri }}” />
  211. {% endblock %}
  212. {% block body %}
  213.     {% for pe in pageElements %}
  214.         {% include pe.twig with {'post': pe.post, 'meta': pe.meta, 'components': pe.components} %}
  215.     {% endfor %}
  216. {% endblock %}""site/index.html.twig""/var/www/app/templates/site/index.html.twig");
  217.     }
  218. }