<?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/localities.html.twig */
class __TwigTemplate_bc190f5daf77b1ed831f503a73a62372 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/localities.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/localities.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("sitemap.localities");
// 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 $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap");
yield "\">";
yield $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 $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.localities"), "html", null, true);
yield "</h1>
<p>
";
// line 10
yield $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["localities"]) {
// line 12
yield " <a href=\"#letter-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['letter'], $context['localities'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
yield "</p>
";
// line 15
$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.', 15, $this->source); })()));
foreach ($context['_seq'] as $context["letter"] => $context["localities"]) {
// line 16
yield "<h2 class=\"is-Page-H2\" id=\"letter-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["letter"], "html", null, true);
yield "</h2>
<ul>
";
// line 18
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["localities"]);
foreach ($context['_seq'] as $context["_key"] => $context["locality"]) {
// line 19
yield " <li>
<a href=\"";
// line 20
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);
yield "\"
title=\"";
// line 21
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);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.locality_lines"), "html", null, true);
yield " ";
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);
yield "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locality'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
yield "</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['letter'], $context['localities'], $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/localities.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
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 = 'sitemap.localities' | trans %}
{% block content %}
<a href=\"{{ path('sitemap') }}\">{{ 'nav.back' | trans }}</a>
<h1 class=\"is-Page-H1\">{{ 'sitemap.localities' | trans }}</h1>
<p>
{{ 'sitemap.quick_navigation' |trans }}
{% for letter, localities in letters %}
<a href=\"#letter-{{ letter }}\">{{ letter }}</a>
{% endfor %}
</p>
{% for letter, localities in letters %}
<h2 class=\"is-Page-H2\" id=\"letter-{{ letter }}\">{{ letter }}</h2>
<ul>
{% for locality in localities %}
<li>
<a href=\"{{ path('line.locality.list', {'islocv': localitiesName[locality.id].name, 'islocid': locality.id}) }}\"
title=\"{{ locality.name }}\">{{ 'sitemap.locality_lines' | trans }} {{ locality.name }}
</a>
</li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}
", "pages/sitemap/localities.html.twig", "/var/www/html/templates/pages/sitemap/localities.html.twig");
}
}