<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/subpage_variance_3.html.twig */
class __TwigTemplate_998f8f69d05ef5baeaf7e36868d058e4 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/subpage_variance_3.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/subpage_variance_3.html.twig"));
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
yield " <main id=\"main\" class=\"main-shifted-right\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 4, $this->source); })()), "blocks", [], "any", false, false, false, 4));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 5
yield " ";
yield from $this->load((("partials/" . CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 5)) . ".html.twig"), 5)->unwrap()->yield(CoreExtension::merge($context, ["content" => // line 6
$context["block"], "view" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 7
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 7, $this->source); })()), "blocks", [], "any", false, false, false, 7), CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 7), [], "array", false, false, false, 7)]));
// line 9
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
yield "
";
// line 11
if (CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "participant_block", [], "any", true, true, false, 11)) {
// line 12
yield " ";
yield from $this->load("/partials/participantBlock.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["content" => CoreExtension::getAttribute($this->env, $this->source, // line 13
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 13, $this->source); })()), "participant_block", [], "any", false, false, false, 13)]));
// line 15
yield " ";
}
// line 16
yield "
";
// line 17
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 17, $this->source); })()), "blocks2", [], "any", false, false, false, 17));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 18
yield " ";
yield from $this->load((("partials/" . CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 18)) . ".html.twig"), 18)->unwrap()->yield(CoreExtension::merge($context, ["content" => // line 19
$context["block"], "view" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 20
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 20, $this->source); })()), "blocks2", [], "any", false, false, false, 20), CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 20), [], "array", false, false, false, 20)]));
// line 22
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
yield "
";
// line 24
if (CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "lecturer_block", [], "any", true, true, false, 24)) {
// line 25
yield " ";
yield from $this->load("/partials/lecturerBlock.html.twig", 25)->unwrap()->yield(CoreExtension::merge($context, ["content" => CoreExtension::getAttribute($this->env, $this->source, // line 26
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 26, $this->source); })()), "lecturer_block", [], "any", false, false, false, 26)]));
// line 28
yield " ";
}
// line 29
yield "
";
// line 30
if (CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "team_block", [], "any", true, true, false, 30)) {
// line 31
yield " ";
yield from $this->load("/partials/teamBlock.html.twig", 31)->unwrap()->yield(CoreExtension::merge($context, ["content" => CoreExtension::getAttribute($this->env, $this->source, // line 32
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 32, $this->source); })()), "team_block", [], "any", false, false, false, 32)]));
// line 34
yield " ";
}
// line 35
yield " </main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/subpage_variance_3.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 190 => 35, 187 => 34, 185 => 32, 183 => 31, 181 => 30, 178 => 29, 175 => 28, 173 => 26, 171 => 25, 169 => 24, 166 => 23, 152 => 22, 150 => 20, 149 => 19, 147 => 18, 130 => 17, 127 => 16, 124 => 15, 122 => 13, 120 => 12, 118 => 11, 115 => 10, 101 => 9, 99 => 7, 98 => 6, 96 => 5, 79 => 4, 76 => 3, 63 => 2, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
<main id=\"main\" class=\"main-shifted-right\">
{% for block in content.blocks %}
{% include 'partials/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} %}
{% endfor %}
{% if content.participant_block is defined %}
{% include '/partials/participantBlock.html.twig' with {
content: content.participant_block,
}%}
{% endif %}
{% for block in content.blocks2 %}
{% include 'partials/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks2[loop.index0],
} %}
{% endfor %}
{% if content.lecturer_block is defined %}
{% include '/partials/lecturerBlock.html.twig' with {
content: content.lecturer_block,
}%}
{% endif %}
{% if content.team_block is defined %}
{% include '/partials/teamBlock.html.twig' with {
content: content.team_block,
}%}
{% endif %}
</main>
{% endblock %}
", "pages/subpage_variance_3.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/subpage_variance_3.html.twig");
}
}