var/cache/dev/twig/40/401285fd60756d2b83018c1df299ead8.php line 56

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/sitemap/stopareas.html.twig */
  16. class __TwigTemplate_2d8b836e3c65ca8546dcf9effc48d489 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 1
  34. return "layouts/common/default.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/sitemap/stopareas.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/sitemap/stopareas.html.twig"));
  43. // line 3
  44. $context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 3, $this->source); })())) : (["group" => "sim", "section" => "sim"]));
  45. // line 1
  46. $this->parent = $this->load("layouts/common/default.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 6
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_content(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  62. // line 7
  63. yield "<a href=\"";
  64. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap");
  65. yield "\">";
  66. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.back"), "html", null, true);
  67. yield "</a>
  68. <h1 class=\"is-Page-H1\">";
  69. // line 8
  70. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
  71. yield "</h1>
  72. <p>
  73. ";
  74. // line 10
  75. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.quick_navigation"), "html", null, true);
  76. yield "
  77. ";
  78. // line 11
  79. $context['_parent'] = $context;
  80. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["letters"]) || array_key_exists("letters", $context) ? $context["letters"] : (function () { throw new RuntimeError('Variable "letters" does not exist.', 11, $this->source); })()));
  81. foreach ($context['_seq'] as $context["letter"] => $context["stopAreas"]) {
  82. // line 12
  83. yield " <a href=\"#letter-";
  84. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
  85. yield "\">";
  86. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
  87. yield "</a>
  88. ";
  89. }
  90. $_parent = $context['_parent'];
  91. unset($context['_seq'], $context['letter'], $context['stopAreas'], $context['_parent']);
  92. $context = array_intersect_key($context, $_parent) + $_parent;
  93. // line 14
  94. yield "</p>
  95. ";
  96. // line 16
  97. $context['_parent'] = $context;
  98. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["letters"]) || array_key_exists("letters", $context) ? $context["letters"] : (function () { throw new RuntimeError('Variable "letters" does not exist.', 16, $this->source); })()));
  99. foreach ($context['_seq'] as $context["letter"] => $context["stopAreas"]) {
  100. // line 17
  101. yield "<h2 class=\"is-Page-H2\" id=\"letter-";
  102. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
  103. yield "\">";
  104. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
  105. yield "</h2>
  106. <ul>
  107. ";
  108. // line 19
  109. $context['_parent'] = $context;
  110. $context['_seq'] = CoreExtension::ensureTraversable($context["stopAreas"]);
  111. foreach ($context['_seq'] as $context["_key"] => $context["stopArea"]) {
  112. // line 20
  113. yield " <li>
  114. <a href=\"";
  115. // line 21
  116. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("stoparea.schedule.list", ["islocv" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["citiesName"]) || array_key_exists("citiesName", $context) ? $context["citiesName"] : (function () { throw new RuntimeError('Variable "citiesName" does not exist.', 21, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "id", [], "any", false, false, false, 21), [], "array", false, false, false, 21), "city", [], "any", false, false, false, 21), "issav" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopAreasName"]) || array_key_exists("stopAreasName", $context) ? $context["stopAreasName"] : (function () { throw new RuntimeError('Variable "stopAreasName" does not exist.', 21, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "id", [], "any", false, false, false, 21), [], "array", false, false, false, 21), "name", [], "any", false, false, false, 21), "issaid" => CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "id", [], "any", false, false, false, 21)]), "html", null, true);
  117. yield "\"
  118. title=\"";
  119. // line 22
  120. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "name", [], "any", false, false, false, 22), "html", null, true);
  121. yield "\">";
  122. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stoparea_schedules"), "html", null, true);
  123. yield " ";
  124. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "name", [], "any", false, false, false, 22), "html", null, true);
  125. yield " - ";
  126. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["stopArea"], "city", [], "any", false, false, false, 22), "html", null, true);
  127. yield "
  128. </a>
  129. </li>
  130. ";
  131. }
  132. $_parent = $context['_parent'];
  133. unset($context['_seq'], $context['_key'], $context['stopArea'], $context['_parent']);
  134. $context = array_intersect_key($context, $_parent) + $_parent;
  135. // line 26
  136. yield "</ul>
  137. ";
  138. }
  139. $_parent = $context['_parent'];
  140. unset($context['_seq'], $context['letter'], $context['stopAreas'], $context['_parent']);
  141. $context = array_intersect_key($context, $_parent) + $_parent;
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144. yield from [];
  145. }
  146. /**
  147. * @codeCoverageIgnore
  148. */
  149. public function getTemplateName(): string
  150. {
  151. return "pages/sitemap/stopareas.html.twig";
  152. }
  153. /**
  154. * @codeCoverageIgnore
  155. */
  156. public function isTraitable(): bool
  157. {
  158. return false;
  159. }
  160. /**
  161. * @codeCoverageIgnore
  162. */
  163. public function getDebugInfo(): array
  164. {
  165. return array ( 153 => 26, 137 => 22, 133 => 21, 130 => 20, 126 => 19, 118 => 17, 114 => 16, 110 => 14, 99 => 12, 95 => 11, 91 => 10, 86 => 8, 79 => 7, 66 => 6, 55 => 1, 53 => 3, 40 => 1,);
  166. }
  167. public function getSourceContext(): Source
  168. {
  169. return new Source("{% extends \x27layouts/common/default.html.twig\x27 %}
  170. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: \x27sim\x27, section: \x27sim\x27 } %}
  171. {#{% set page_title = \x27sitemap.stopareas\x27 | trans %}#}
  172. {% block content %}
  173. <a href=\"{{ path(\x27sitemap\x27) }}\">{{ \x27nav.back\x27 | trans }}</a>
  174. <h1 class=\"is-Page-H1\">{{ \x27sitemap.stopareas\x27 | trans }}</h1>
  175. <p>
  176. {{ \x27sitemap.quick_navigation\x27 |trans }}
  177. {% for letter, stopAreas in letters %}
  178. <a href=\"#letter-{{ letter }}\">{{ letter }}</a>
  179. {% endfor %}
  180. </p>
  181. {% for letter, stopAreas in letters %}
  182. <h2 class=\"is-Page-H2\" id=\"letter-{{ letter }}\">{{ letter }}</h2>
  183. <ul>
  184. {% for stopArea in stopAreas %}
  185. <li>
  186. <a href=\"{{ path(\x27stoparea.schedule.list\x27, {\x27islocv\x27: citiesName[stopArea.id].city, \x27issav\x27: stopAreasName[stopArea.id].name, \x27issaid\x27: stopArea.id}) }}\"
  187. title=\"{{ stopArea.name }}\">{{ \x27sitemap.stoparea_schedules\x27 | trans }} {{ stopArea.name }} - {{ stopArea.city }}
  188. </a>
  189. </li>
  190. {% endfor %}
  191. </ul>
  192. {% endfor %}
  193. {% endblock %}
  194. ", "pages/sitemap/stopareas.html.twig", "/var/www/html/templates/pages/sitemap/stopareas.html.twig");
  195. }
  196. }