var/cache/dev/twig/d8/d8283d2a0de432c477719319ea78b982.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/sitemap.html.twig */
  16. class __TwigTemplate_9f39faf940198fa76643b083f8ef71ce 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/sitemap.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/sitemap.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("nav.sitemap");
  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 " <h1 class=\"is-Page-H1\">";
  66. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.sitemap"), "html", null, true);
  67. yield "</h1>
  68. <ul>
  69. <li><a href=\"";
  70. // line 9
  71. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  72. yield "\" title=\"";
  73. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.home"), "html", null, true);
  74. yield "\">";
  75. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.home"), "html", null, true);
  76. yield "</a></li>
  77. ";
  78. // line 10
  79. $context['_parent'] = $context;
  80. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["menuPages"]) || array_key_exists("menuPages", $context) ? $context["menuPages"] : (function () { throw new RuntimeError('Variable "menuPages" does not exist.', 10, $this->source); })()));
  81. foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  82. // line 11
  83. yield " <li><a href=\"";
  84. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["page"], "id", [], "any", false, false, false, 11)]), "html", null, true);
  85. yield "\" title=\"";
  86. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page"], "linkLabel", [], "any", false, false, false, 11), "html", null, true);
  87. yield "\">";
  88. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page"], "linkLabel", [], "any", false, false, false, 11), "html", null, true);
  89. yield "</a></li>
  90. ";
  91. }
  92. $_parent = $context['_parent'];
  93. unset($context['_seq'], $context['_key'], $context['page'], $context['_parent']);
  94. $context = array_intersect_key($context, $_parent) + $_parent;
  95. // line 13
  96. yield " <li><a href=\"";
  97. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap.localities");
  98. yield "\" title=\"";
  99. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.localities"), "html", null, true);
  100. yield "\">";
  101. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.localities"), "html", null, true);
  102. yield "</a></li>
  103. <li><a href=\"";
  104. // line 14
  105. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap.stopareas");
  106. yield "\" title=\"";
  107. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
  108. yield "\">";
  109. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
  110. yield "</a></li>
  111. ";
  112. // line 15
  113. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["subNetworks"]) || array_key_exists("subNetworks", $context) ? $context["subNetworks"] : (function () { throw new RuntimeError('Variable "subNetworks" does not exist.', 15, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  114. // line 16
  115. yield " <li>
  116. <a href=\"#\" title=\"";
  117. // line 17
  118. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.transport_networks"), "html", null, true);
  119. yield "\">";
  120. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.transport_networks"), "html", null, true);
  121. yield "</a><ul>
  122. ";
  123. // line 18
  124. $context['_parent'] = $context;
  125. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["subNetworks"]) || array_key_exists("subNetworks", $context) ? $context["subNetworks"] : (function () { throw new RuntimeError('Variable "subNetworks" does not exist.', 18, $this->source); })()));
  126. foreach ($context['_seq'] as $context["_key"] => $context["network"]) {
  127. // line 19
  128. yield " <li><a href=\"";
  129. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap.subnetwork", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["network"], "id", [], "any", false, false, false, 19), "issubnet" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subNetworksName"]) || array_key_exists("subNetworksName", $context) ? $context["subNetworksName"] : (function () { throw new RuntimeError('Variable "subNetworksName" does not exist.', 19, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["network"], "id", [], "any", false, false, false, 19), [], "array", false, false, false, 19), "name", [], "any", false, false, false, 19)]), "html", null, true);
  130. yield "\" title=\"";
  131. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["network"], "name", [], "any", false, false, false, 19), "html", null, true);
  132. yield "\">";
  133. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["network"], "name", [], "any", false, false, false, 19), "html", null, true);
  134. yield "</a></li>
  135. ";
  136. }
  137. $_parent = $context['_parent'];
  138. unset($context['_seq'], $context['_key'], $context['network'], $context['_parent']);
  139. $context = array_intersect_key($context, $_parent) + $_parent;
  140. // line 21
  141. yield " </ul>
  142. </li>
  143. ";
  144. }
  145. // line 24
  146. yield " ";
  147. $context['_parent'] = $context;
  148. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["footerPages"]) || array_key_exists("footerPages", $context) ? $context["footerPages"] : (function () { throw new RuntimeError('Variable "footerPages" does not exist.', 24, $this->source); })()));
  149. foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  150. // line 25
  151. yield " <li><a href=\"";
  152. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["page"], "id", [], "any", false, false, false, 25)]), "html", null, true);
  153. yield "\" title=\"";
  154. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page"], "linkLabel", [], "any", false, false, false, 25), "html", null, true);
  155. yield "\">";
  156. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page"], "linkLabel", [], "any", false, false, false, 25), "html", null, true);
  157. yield "</a></li>
  158. ";
  159. }
  160. $_parent = $context['_parent'];
  161. unset($context['_seq'], $context['_key'], $context['page'], $context['_parent']);
  162. $context = array_intersect_key($context, $_parent) + $_parent;
  163. // line 27
  164. yield " </ul>
  165. ";
  166. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  167. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168. yield from [];
  169. }
  170. /**
  171. * @codeCoverageIgnore
  172. */
  173. public function getTemplateName(): string
  174. {
  175. return "pages/sitemap/sitemap.html.twig";
  176. }
  177. /**
  178. * @codeCoverageIgnore
  179. */
  180. public function isTraitable(): bool
  181. {
  182. return false;
  183. }
  184. /**
  185. * @codeCoverageIgnore
  186. */
  187. public function getDebugInfo(): array
  188. {
  189. return array ( 180 => 27, 167 => 25, 162 => 24, 157 => 21, 144 => 19, 140 => 18, 134 => 17, 131 => 16, 129 => 15, 121 => 14, 112 => 13, 99 => 11, 95 => 10, 87 => 9, 81 => 7, 68 => 6, 57 => 1, 55 => 4, 53 => 3, 40 => 1,);
  190. }
  191. public function getSourceContext(): Source
  192. {
  193. return new Source("{% extends 'layouts/common/default.html.twig' %}
  194. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
  195. {% set page_title = 'nav.sitemap' | trans %}
  196. {% block content %}
  197. <h1 class=\"is-Page-H1\">{{ 'nav.sitemap' | trans }}</h1>
  198. <ul>
  199. <li><a href=\"{{ path('homepage') }}\" title=\"{{ 'nav.home' | trans }}\">{{ 'nav.home' | trans }}</a></li>
  200. {% for page in menuPages %}
  201. <li><a href=\"{{ path('page', {'id': page.id}) }}\" title=\"{{ page.linkLabel }}\">{{ page.linkLabel }}</a></li>
  202. {% endfor %}
  203. <li><a href=\"{{ path('sitemap.localities') }}\" title=\"{{ 'sitemap.localities' | trans }}\">{{ 'sitemap.localities' | trans }}</a></li>
  204. <li><a href=\"{{ path('sitemap.stopareas') }}\" title=\"{{ 'sitemap.stopareas' | trans }}\">{{ 'sitemap.stopareas' | trans }}</a></li>
  205. {% if subNetworks is not empty %}
  206. <li>
  207. <a href=\"#\" title=\"{{ 'sitemap.transport_networks' | trans }}\">{{ 'sitemap.transport_networks' | trans }}</a><ul>
  208. {% for network in subNetworks %}
  209. <li><a href=\"{{ path('sitemap.subnetwork', {'id': network.id, 'issubnet': subNetworksName[network.id].name}) }}\" title=\"{{ network.name }}\">{{ network.name }}</a></li>
  210. {% endfor %}
  211. </ul>
  212. </li>
  213. {% endif %}
  214. {% for page in footerPages %}
  215. <li><a href=\"{{ path('page', {'id': page.id}) }}\" title=\"{{ page.linkLabel }}\">{{ page.linkLabel }}</a></li>
  216. {% endfor %}
  217. </ul>
  218. {% endblock %}
  219. ", "pages/sitemap/sitemap.html.twig", "/var/www/html/templates/pages/sitemap/sitemap.html.twig");
  220. }
  221. }