<?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/sitemap/sitemap.html.twig */
class __TwigTemplate_9f39faf940198fa76643b083f8ef71ce 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 1
return "layouts/common/default.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/sitemap/sitemap.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/sitemap/sitemap.html.twig"));
// line 3
$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"]));
// line 4
$context["page_title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.sitemap");
// line 1
$this->parent = $this->load("layouts/common/default.html.twig", 1);
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 6
/**
* @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 7
yield " <h1 class=\"is-Page-H1\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.sitemap"), "html", null, true);
yield "</h1>
<ul>
<li><a href=\"";
// line 9
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.home"), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.home"), "html", null, true);
yield "</a></li>
";
// line 10
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 11
yield " <li><a href=\"";
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);
yield "\" title=\"";
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);
yield "\">";
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);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['page'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
yield " <li><a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap.localities");
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.localities"), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.localities"), "html", null, true);
yield "</a></li>
<li><a href=\"";
// line 14
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap.stopareas");
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
yield "</a></li>
";
// line 15
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)) {
// line 16
yield " <li>
<a href=\"#\" title=\"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.transport_networks"), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.transport_networks"), "html", null, true);
yield "</a><ul>
";
// line 18
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["network"]) {
// line 19
yield " <li><a href=\"";
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);
yield "\" title=\"";
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);
yield "\">";
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);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['network'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
yield " </ul>
</li>
";
}
// line 24
yield " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 25
yield " <li><a href=\"";
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);
yield "\" title=\"";
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);
yield "\">";
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);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['page'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
yield " </ul>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/sitemap/sitemap.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layouts/common/default.html.twig' %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
{% set page_title = 'nav.sitemap' | trans %}
{% block content %}
<h1 class=\"is-Page-H1\">{{ 'nav.sitemap' | trans }}</h1>
<ul>
<li><a href=\"{{ path('homepage') }}\" title=\"{{ 'nav.home' | trans }}\">{{ 'nav.home' | trans }}</a></li>
{% for page in menuPages %}
<li><a href=\"{{ path('page', {'id': page.id}) }}\" title=\"{{ page.linkLabel }}\">{{ page.linkLabel }}</a></li>
{% endfor %}
<li><a href=\"{{ path('sitemap.localities') }}\" title=\"{{ 'sitemap.localities' | trans }}\">{{ 'sitemap.localities' | trans }}</a></li>
<li><a href=\"{{ path('sitemap.stopareas') }}\" title=\"{{ 'sitemap.stopareas' | trans }}\">{{ 'sitemap.stopareas' | trans }}</a></li>
{% if subNetworks is not empty %}
<li>
<a href=\"#\" title=\"{{ 'sitemap.transport_networks' | trans }}\">{{ 'sitemap.transport_networks' | trans }}</a><ul>
{% for network in subNetworks %}
<li><a href=\"{{ path('sitemap.subnetwork', {'id': network.id, 'issubnet': subNetworksName[network.id].name}) }}\" title=\"{{ network.name }}\">{{ network.name }}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% for page in footerPages %}
<li><a href=\"{{ path('page', {'id': page.id}) }}\" title=\"{{ page.linkLabel }}\">{{ page.linkLabel }}</a></li>
{% endfor %}
</ul>
{% endblock %}
", "pages/sitemap/sitemap.html.twig", "/var/www/html/templates/pages/sitemap/sitemap.html.twig");
}
}