<?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/stopareas.html.twig */
class __TwigTemplate_2d8b836e3c65ca8546dcf9effc48d489 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/stopareas.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/stopareas.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 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 "<a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap");
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.back"), "html", null, true);
yield "</a>
<h1 class=\"is-Page-H1\">";
// line 8
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stopareas"), "html", null, true);
yield "</h1>
<p>
";
// line 10
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.quick_navigation"), "html", null, true);
yield "
";
// line 11
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["letter"] => $context["stopAreas"]) {
// line 12
yield " <a href=\"#letter-";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['letter'], $context['stopAreas'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
yield "</p>
";
// line 16
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["letter"] => $context["stopAreas"]) {
// line 17
yield "<h2 class=\"is-Page-H2\" id=\"letter-";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "</h2>
<ul>
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["stopAreas"]);
foreach ($context['_seq'] as $context["_key"] => $context["stopArea"]) {
// line 20
yield " <li>
<a href=\"";
// line 21
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);
yield "\"
title=\"";
// line 22
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);
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.stoparea_schedules"), "html", null, true);
yield " ";
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);
yield " - ";
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);
yield "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['stopArea'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
yield "</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['letter'], $context['stopAreas'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/sitemap/stopareas.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27layouts/common/default.html.twig\x27 %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: \x27sim\x27, section: \x27sim\x27 } %}
{#{% set page_title = \x27sitemap.stopareas\x27 | trans %}#}
{% block content %}
<a href=\"{{ path(\x27sitemap\x27) }}\">{{ \x27nav.back\x27 | trans }}</a>
<h1 class=\"is-Page-H1\">{{ \x27sitemap.stopareas\x27 | trans }}</h1>
<p>
{{ \x27sitemap.quick_navigation\x27 |trans }}
{% for letter, stopAreas in letters %}
<a href=\"#letter-{{ letter }}\">{{ letter }}</a>
{% endfor %}
</p>
{% for letter, stopAreas in letters %}
<h2 class=\"is-Page-H2\" id=\"letter-{{ letter }}\">{{ letter }}</h2>
<ul>
{% for stopArea in stopAreas %}
<li>
<a href=\"{{ path(\x27stoparea.schedule.list\x27, {\x27islocv\x27: citiesName[stopArea.id].city, \x27issav\x27: stopAreasName[stopArea.id].name, \x27issaid\x27: stopArea.id}) }}\"
title=\"{{ stopArea.name }}\">{{ \x27sitemap.stoparea_schedules\x27 | trans }} {{ stopArea.name }} - {{ stopArea.city }}
</a>
</li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}
", "pages/sitemap/stopareas.html.twig", "/var/www/html/templates/pages/sitemap/stopareas.html.twig");
}
}