<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* StationList/list.html.twig */
class __TwigTemplate_a6ba5a7dba9cc572324b1fea92437c47 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "StationList/list.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "StationList/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "StationList/list.html.twig"));
// line 3
$context["linkLangSupport"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3) == "en")) ? ("/en") : (""));
// line 1
$this->parent = $this->loadTemplate("grid.html.twig", "StationList/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Проститутки по метро в Москве";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 6
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
echo "<meta name=\"description\" content=\"Выбор проституток Москвы по станциям метро позволяет не терять время на поездки.\">";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 8
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 9
echo "\t";
echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("breadcrumbs", ["template" => "__design/v2023/_menu/breadcrumbs.html.twig"]);
echo "
\t<div class=\"heading d-flex\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
// line 12
echo (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? ($this->extensions['App\Twig\SeoExtension']->pageHeading()) : ("Проститутки и индивидуалки по станциям метро"));
echo "</h1>
\t</div>
\t<div class=\"catalog-metro-container white-block mb-4\">
\t\t";
// line 16
$context["firstLetter"] = null;
// line 17
echo "\t\t";
$context["sorted_stations"] = twig_sort_filter($this->env, (isset($context["stations"]) || array_key_exists("stations", $context) ? $context["stations"] : (function () { throw new RuntimeError('Variable "stations" does not exist.', 17, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 17, $this->source); })()), "name", [], "any", false, false, false, 17)) <=> twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 17, $this->source); })()), "name", [], "any", false, false, false, 17))); });
// line 18
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sorted_stations"]) || array_key_exists("sorted_stations", $context) ? $context["sorted_stations"] : (function () { throw new RuntimeError('Variable "sorted_stations" does not exist.', 18, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 19
echo "\t\t\t";
$context["firstChar"] = twig_upper_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["station"], "name", [], "any", false, false, false, 19), 0, 1));
// line 20
echo "\t\t\t";
if (((isset($context["firstLetter"]) || array_key_exists("firstLetter", $context) ? $context["firstLetter"] : (function () { throw new RuntimeError('Variable "firstLetter" does not exist.', 20, $this->source); })()) != (isset($context["firstChar"]) || array_key_exists("firstChar", $context) ? $context["firstChar"] : (function () { throw new RuntimeError('Variable "firstChar" does not exist.', 20, $this->source); })()))) {
// line 21
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 21) != 1)) {
echo "</div>";
}
// line 22
echo "\t\t\t\t";
$context["firstLetter"] = (isset($context["firstChar"]) || array_key_exists("firstChar", $context) ? $context["firstChar"] : (function () { throw new RuntimeError('Variable "firstChar" does not exist.', 22, $this->source); })());
// line 23
echo "\t\t\t\t<div class=\"catalog catalog-metro mb-4\">
\t\t\t\t\t<div class=\"first-letter mb-2 fw-700 d-flex-c\">
\t\t\t\t\t\t";
// line 25
echo twig_escape_filter($this->env, (isset($context["firstLetter"]) || array_key_exists("firstLetter", $context) ? $context["firstLetter"] : (function () { throw new RuntimeError('Variable "firstLetter" does not exist.', 25, $this->source); })()), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t";
}
// line 28
echo "
\t\t\t<div class=\"catalog-item\">
\t\t\t\t<a class=\"metro-link d-flex-c\" href=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_station", ["city" => twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 30, $this->source); })()), "uriIdentity", [], "any", false, false, false, 30), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 30)]), "html", null, true);
echo "\">
\t\t\t\t\t";
// line 31
$this->loadTemplate("components/metro/icon_generate.partial.twig", "StationList/list.html.twig", 31)->display(twig_array_merge($context, ["data" => $this->extensions['App\Twig\StationsExtension']->stationLines(twig_get_attribute($this->env, $this->source, $context["station"], "id", [], "any", false, false, false, 31))]));
// line 32
echo "\t\t\t\t\t<span class=\"metro-name mr-1\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["station"], "name", [], "any", false, false, false, 32)), "html", null, true);
echo "</span>
\t\t\t\t\t<span class=\"metro-count d-flex-c clr-main-text fw-600\">";
// line 33
((twig_get_attribute($this->env, $this->source, ($context["count_by_stations"] ?? null), twig_get_attribute($this->env, $this->source, $context["station"], "id", [], "any", false, false, false, 33), [], "array", true, true, false, 33)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["count_by_stations"]) || array_key_exists("count_by_stations", $context) ? $context["count_by_stations"] : (function () { throw new RuntimeError('Variable "count_by_stations" does not exist.', 33, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["station"], "id", [], "any", false, false, false, 33), [], "array", false, false, false, 33), "html", null, true))) : (print ("0")));
echo "</span>
\t\t\t\t</a>
\t\t\t</div>
\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo "\t</div>
\t";
// line 42
echo "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "StationList/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 230 => 42, 226 => 37, 208 => 33, 203 => 32, 201 => 31, 197 => 30, 193 => 28, 187 => 25, 183 => 23, 180 => 22, 175 => 21, 172 => 20, 169 => 19, 151 => 18, 148 => 17, 146 => 16, 139 => 12, 132 => 9, 119 => 8, 94 => 6, 69 => 5, 55 => 1, 53 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
{% block title %}Проститутки по метро в Москве{% endblock %}
{% block metaDescription %}<meta name=\"description\" content=\"Выбор проституток Москвы по станциям метро позволяет не терять время на поездки.\">{% endblock %}
{% block mainContainer %}
\t{{ knp_menu_render('breadcrumbs', {'template': '__design/v2023/_menu/breadcrumbs.html.twig'}) }}
\t<div class=\"heading d-flex\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Проститутки и индивидуалки по станциям метро' }}</h1>
\t</div>
\t<div class=\"catalog-metro-container white-block mb-4\">
\t\t{% set firstLetter = null %}
\t\t{% set sorted_stations = stations|sort((a, b) => a.name|upper <=> b.name|upper) %}
\t\t{% for station in sorted_stations %}
\t\t\t{% set firstChar = station.name|slice(0, 1)|upper %}
\t\t\t{% if firstLetter != firstChar %}
\t\t\t\t{% if loop.index != 1 %}</div>{% endif %}
\t\t\t\t{% set firstLetter = firstChar %}
\t\t\t\t<div class=\"catalog catalog-metro mb-4\">
\t\t\t\t\t<div class=\"first-letter mb-2 fw-700 d-flex-c\">
\t\t\t\t\t\t{{ firstLetter }}
\t\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t<div class=\"catalog-item\">
\t\t\t\t<a class=\"metro-link d-flex-c\" href=\"{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}\">
\t\t\t\t\t{% include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} %}
\t\t\t\t\t<span class=\"metro-name mr-1\">{{ station.name|trans }}</span>
\t\t\t\t\t<span class=\"metro-count d-flex-c clr-main-text fw-600\">{{ count_by_stations[station.id] is defined ? count_by_stations[station.id] : '0' }}</span>
\t\t\t\t</a>
\t\t\t</div>
\t\t{% endfor %}
\t</div>
\t{# <div class=\"new-questionare\">
\t\t{{ include('components/last_girl_list.html.twig') }}
\t</div> #}
\t{# {{ include('components/seo_text.html.twig', { 'type': 'bottom', \"noindex\": true }) }} #}
{% endblock %}", "StationList/list.html.twig", "/app/templates/StationList/list.html.twig");
}
}