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