<?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/archiv.html.twig */
class __TwigTemplate_739e6f6fb87f685ef30da9a729ce86a0 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 2
return "base_archive.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/archiv.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/archiv.html.twig"));
$this->parent = $this->load("base_archive.html.twig", 2);
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 3
/**
* @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 4
yield " <main id=\"main\" class=\"main-shifted-right-archiv\" style=\"margin-top: 0\">
";
// line 10
yield " ";
$context["temp_archivBlocks"] = [];
// line 11
yield "
";
// line 12
$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.', 12, $this->source); })()), "blocks", [], "any", false, false, false, 12));
$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 13
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 13) == "archivBlock")) {
// line 14
yield " ";
$context["temp_archivBlocks"] = Twig\Extension\CoreExtension::merge((isset($context["temp_archivBlocks"]) || array_key_exists("temp_archivBlocks", $context) ? $context["temp_archivBlocks"] : (function () { throw new RuntimeError('Variable "temp_archivBlocks" does not exist.', 14, $this->source); })()), [$context["block"]]);
// line 15
yield " ";
} else {
// line 16
yield " ";
// line 17
yield " ";
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["temp_archivBlocks"]) || array_key_exists("temp_archivBlocks", $context) ? $context["temp_archivBlocks"] : (function () { throw new RuntimeError('Variable "temp_archivBlocks" does not exist.', 17, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 18
yield " ";
yield from $this->load("partials/archivBlock.html.twig", 18)->unwrap()->yield(CoreExtension::merge($context, ["archives" => // line 19
(isset($context["temp_archivBlocks"]) || array_key_exists("temp_archivBlocks", $context) ? $context["temp_archivBlocks"] : (function () { throw new RuntimeError('Variable "temp_archivBlocks" does not exist.', 19, $this->source); })()), "tabs_per_row" => 4]));
// line 22
yield " ";
// line 23
yield " ";
$context["temp_archivBlocks"] = [];
// line 24
yield " ";
}
// line 25
yield "
";
// line 26
yield from $this->load((("partials/" . CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 26)) . ".html.twig"), 26)->unwrap()->yield(CoreExtension::merge($context, ["content" => // line 27
$context["block"], "view" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 28
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 28, $this->source); })()), "blocks", [], "any", false, false, false, 28), CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 28), [], "array", false, false, false, 28)]));
// line 30
yield " ";
}
// line 31
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 32
yield "
";
// line 34
yield " ";
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["temp_archivBlocks"]) || array_key_exists("temp_archivBlocks", $context) ? $context["temp_archivBlocks"] : (function () { throw new RuntimeError('Variable "temp_archivBlocks" does not exist.', 34, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 35
yield " ";
yield from $this->load("partials/archivBlock.html.twig", 35)->unwrap()->yield(CoreExtension::merge($context, ["archives" => // line 36
(isset($context["temp_archivBlocks"]) || array_key_exists("temp_archivBlocks", $context) ? $context["temp_archivBlocks"] : (function () { throw new RuntimeError('Variable "temp_archivBlocks" does not exist.', 36, $this->source); })()), "tabs_per_row" => 4]));
// line 39
yield " ";
}
// line 40
yield " </main>
<style>
h2 {
font-size: 70px;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/archiv.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 165 => 40, 162 => 39, 160 => 36, 158 => 35, 155 => 34, 152 => 32, 138 => 31, 135 => 30, 133 => 28, 132 => 27, 131 => 26, 128 => 25, 125 => 24, 122 => 23, 120 => 22, 118 => 19, 116 => 18, 113 => 17, 111 => 16, 108 => 15, 105 => 14, 102 => 13, 85 => 12, 82 => 11, 79 => 10, 76 => 4, 63 => 3, 40 => 2,);
}
public function getSourceContext(): Source
{
return new Source("
{% extends \"base_archive.html.twig\" %}
{% block content %}
<main id=\"main\" class=\"main-shifted-right-archiv\" style=\"margin-top: 0\">
{# <div class=\"container\">
<div class=\"title\" style=\"width: 80%\">
<h1 style=\"font-family: Teko Medium, sans-serif; font-size: 70px; letter-spacing: 1.3px\"> {{ content.title}} </h1>
</div>
</div>#}
{% set temp_archivBlocks = [] %}
{% for block in content.blocks %}
{% if block.type == \"archivBlock\" %}
{% set temp_archivBlocks = temp_archivBlocks|merge([block]) %}
{% else %}
{# Check if there are any archivBlocks stored in the temporary storage #}
{% if temp_archivBlocks is not empty %}
{% include 'partials/archivBlock.html.twig' with {
archives: temp_archivBlocks,
tabs_per_row: 4
} %}
{# Reset the temporary storage #}
{% set temp_archivBlocks = [] %}
{% endif %}
{% include 'partials/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} %}
{% endif %}
{% endfor %}
{# After the loop, check if there are any remaining archivBlocks to render #}
{% if temp_archivBlocks is not empty %}
{% include 'partials/archivBlock.html.twig' with {
archives: temp_archivBlocks,
tabs_per_row: 4,
} %}
{% endif %}
</main>
<style>
h2 {
font-size: 70px;
}
</style>
{% endblock %}
", "pages/archiv.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/archiv.html.twig");
}
}