var/cache/website/dev/twig/b0/b01bb4f71fe52a392a67f73193a9630c.php line 43

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. /* pages/archiv.html.twig */
  16. class __TwigTemplate_739e6f6fb87f685ef30da9a729ce86a0 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. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 2
  34. return "base_archive.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/archiv.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/archiv.html.twig"));
  43. $this->parent = $this->load("base_archive.html.twig", 2);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 3
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 4
  60. yield " <main id=\"main\" class=\"main-shifted-right-archiv\" style=\"margin-top: 0\">
  61. ";
  62. // line 10
  63. yield " ";
  64. $context["temp_archivBlocks"] = [];
  65. // line 11
  66. yield "
  67. ";
  68. // line 12
  69. $context['_parent'] = $context;
  70. $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));
  71. $context['loop'] = [
  72. 'parent' => $context['_parent'],
  73. 'index0' => 0,
  74. 'index' => 1,
  75. 'first' => true,
  76. ];
  77. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  78. $length = count($context['_seq']);
  79. $context['loop']['revindex0'] = $length - 1;
  80. $context['loop']['revindex'] = $length;
  81. $context['loop']['length'] = $length;
  82. $context['loop']['last'] = 1 === $length;
  83. }
  84. foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  85. // line 13
  86. yield " ";
  87. if ((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 13) == "archivBlock")) {
  88. // line 14
  89. yield " ";
  90. $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"]]);
  91. // line 15
  92. yield " ";
  93. } else {
  94. // line 16
  95. yield " ";
  96. // line 17
  97. yield " ";
  98. 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)) {
  99. // line 18
  100. yield " ";
  101. yield from $this->load("partials/archivBlock.html.twig", 18)->unwrap()->yield(CoreExtension::merge($context, ["archives" => // line 19
  102. (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]));
  103. // line 22
  104. yield " ";
  105. // line 23
  106. yield " ";
  107. $context["temp_archivBlocks"] = [];
  108. // line 24
  109. yield " ";
  110. }
  111. // line 25
  112. yield "
  113. ";
  114. // line 26
  115. 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
  116. $context["block"], "view" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 28
  117. (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)]));
  118. // line 30
  119. yield " ";
  120. }
  121. // line 31
  122. yield " ";
  123. ++$context['loop']['index0'];
  124. ++$context['loop']['index'];
  125. $context['loop']['first'] = false;
  126. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  127. --$context['loop']['revindex0'];
  128. --$context['loop']['revindex'];
  129. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  130. }
  131. }
  132. $_parent = $context['_parent'];
  133. unset($context['_seq'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  134. $context = array_intersect_key($context, $_parent) + $_parent;
  135. // line 32
  136. yield "
  137. ";
  138. // line 34
  139. yield " ";
  140. 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)) {
  141. // line 35
  142. yield " ";
  143. yield from $this->load("partials/archivBlock.html.twig", 35)->unwrap()->yield(CoreExtension::merge($context, ["archives" => // line 36
  144. (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]));
  145. // line 39
  146. yield " ";
  147. }
  148. // line 40
  149. yield " </main>
  150. <style>
  151. h2 {
  152. font-size: 70px;
  153. }
  154. </style>
  155. ";
  156. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  158. yield from [];
  159. }
  160. /**
  161. * @codeCoverageIgnore
  162. */
  163. public function getTemplateName(): string
  164. {
  165. return "pages/archiv.html.twig";
  166. }
  167. /**
  168. * @codeCoverageIgnore
  169. */
  170. public function isTraitable(): bool
  171. {
  172. return false;
  173. }
  174. /**
  175. * @codeCoverageIgnore
  176. */
  177. public function getDebugInfo(): array
  178. {
  179. 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,);
  180. }
  181. public function getSourceContext(): Source
  182. {
  183. return new Source("
  184. {% extends \"base_archive.html.twig\" %}
  185. {% block content %}
  186. <main id=\"main\" class=\"main-shifted-right-archiv\" style=\"margin-top: 0\">
  187. {# <div class=\"container\">
  188. <div class=\"title\" style=\"width: 80%\">
  189. <h1 style=\"font-family: Teko Medium, sans-serif; font-size: 70px; letter-spacing: 1.3px\"> {{ content.title}} </h1>
  190. </div>
  191. </div>#}
  192. {% set temp_archivBlocks = [] %}
  193. {% for block in content.blocks %}
  194. {% if block.type == \"archivBlock\" %}
  195. {% set temp_archivBlocks = temp_archivBlocks|merge([block]) %}
  196. {% else %}
  197. {# Check if there are any archivBlocks stored in the temporary storage #}
  198. {% if temp_archivBlocks is not empty %}
  199. {% include 'partials/archivBlock.html.twig' with {
  200. archives: temp_archivBlocks,
  201. tabs_per_row: 4
  202. } %}
  203. {# Reset the temporary storage #}
  204. {% set temp_archivBlocks = [] %}
  205. {% endif %}
  206. {% include 'partials/' ~ block.type ~ '.html.twig' with {
  207. content: block,
  208. view: view.blocks[loop.index0],
  209. } %}
  210. {% endif %}
  211. {% endfor %}
  212. {# After the loop, check if there are any remaining archivBlocks to render #}
  213. {% if temp_archivBlocks is not empty %}
  214. {% include 'partials/archivBlock.html.twig' with {
  215. archives: temp_archivBlocks,
  216. tabs_per_row: 4,
  217. } %}
  218. {% endif %}
  219. </main>
  220. <style>
  221. h2 {
  222. font-size: 70px;
  223. }
  224. </style>
  225. {% endblock %}
  226. ", "pages/archiv.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/archiv.html.twig");
  227. }
  228. }