var/cache/review/twig/a4/a45abe25b784b2c3d8c27f8df5bd9603.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* StationList/list.html.twig */
  14. class __TwigTemplate_a6ba5a7dba9cc572324b1fea92437c47 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'mainContainer' => [$this'block_mainContainer'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "grid.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""StationList/list.html.twig"));
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""StationList/list.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""StationList/list.html.twig"));
  42.         // line 3
  43.         $context["linkLangSupport"] = (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse3), "locale", [], "any"falsefalsefalse3) == "en")) ? ("/en") : (""));
  44.         // line 1
  45.         $this->parent $this->loadTemplate("grid.html.twig""StationList/list.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 5
  55.     public function block_title($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  59.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         echo "Проститутки по метро в Москве";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         
  70.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  71.     }
  72.     // line 6
  73.     public function block_metaDescription($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  77.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  82.         echo "<meta name=\"description\" content=\"Выбор проституток Москвы по станциям метро позволяет не терять время на поездки.\">";
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.         
  88.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  89.     }
  90.     // line 8
  91.     public function block_mainContainer($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  95.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  100.         // line 9
  101.         echo "\t";
  102.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("breadcrumbs", ["template" => "__design/v2023/_menu/breadcrumbs.html.twig"]);
  103.         echo "
  104. \t<div class=\"heading d-flex\">
  105. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
  106.         // line 12
  107.         echo (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? ($this->extensions['App\Twig\SeoExtension']->pageHeading()) : ("Проститутки и индивидуалки по станциям метро"));
  108.         echo "</h1>
  109. \t</div>
  110. \t<div class=\"catalog-metro-container white-block mb-4\">
  111. \t\t";
  112.         // line 16
  113.         $context["firstLetter"] = null;
  114.         // line 17
  115.         echo "\t\t";
  116.         $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->envtwig_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"falsefalsefalse17)) <=> twig_upper_filter($this->envtwig_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"falsefalsefalse17))); });
  117.         // line 18
  118.         echo "\t\t";
  119.         $context['_parent'] = $context;
  120.         $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); })()));
  121.         $context['loop'] = [
  122.           'parent' => $context['_parent'],
  123.           'index0' => 0,
  124.           'index'  => 1,
  125.           'first'  => true,
  126.         ];
  127.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  128.             $length count($context['_seq']);
  129.             $context['loop']['revindex0'] = $length 1;
  130.             $context['loop']['revindex'] = $length;
  131.             $context['loop']['length'] = $length;
  132.             $context['loop']['last'] = === $length;
  133.         }
  134.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  135.             // line 19
  136.             echo "\t\t\t";
  137.             $context["firstChar"] = twig_upper_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse19), 01));
  138.             // line 20
  139.             echo "\t\t\t";
  140.             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); })()))) {
  141.                 // line 21
  142.                 echo "\t\t\t\t";
  143.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse21) != 1)) {
  144.                     echo "</div>";
  145.                 }
  146.                 // line 22
  147.                 echo "\t\t\t\t";
  148.                 $context["firstLetter"] = (isset($context["firstChar"]) || array_key_exists("firstChar"$context) ? $context["firstChar"] : (function () { throw new RuntimeError('Variable "firstChar" does not exist.'22$this->source); })());
  149.                 // line 23
  150.                 echo "\t\t\t\t<div class=\"catalog catalog-metro mb-4\">
  151. \t\t\t\t\t<div class=\"first-letter mb-2 fw-700 d-flex-c\">
  152. \t\t\t\t\t\t";
  153.                 // line 25
  154.                 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"nulltrue);
  155.                 echo "
  156. \t\t\t\t\t</div>
  157. \t\t\t";
  158.             }
  159.             // line 28
  160.             echo "
  161. \t\t\t<div class=\"catalog-item\">
  162. \t\t\t\t<a class=\"metro-link d-flex-c\" href=\"";
  163.             // line 30
  164.             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"falsefalsefalse30), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse30)]), "html"nulltrue);
  165.             echo "\">
  166. \t\t\t\t\t";
  167.             // line 31
  168.             $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"falsefalsefalse31))]));
  169.             // line 32
  170.             echo "\t\t\t\t\t<span class=\"metro-name mr-1\">";
  171.             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"falsefalsefalse32)), "html"nulltrue);
  172.             echo "</span>
  173. \t\t\t\t\t<span class=\"metro-count d-flex-c clr-main-text fw-600\">";
  174.             // line 33
  175.             ((twig_get_attribute($this->env$this->source, ($context["count_by_stations"] ?? null), twig_get_attribute($this->env$this->source$context["station"], "id", [], "any"falsefalsefalse33), [], "array"truetruefalse33)) ? (print (twig_escape_filter($this->envtwig_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"falsefalsefalse33), [], "array"falsefalsefalse33), "html"nulltrue))) : (print ("0")));
  176.             echo "</span>
  177. \t\t\t\t</a>
  178. \t\t\t</div>
  179. \t\t";
  180.             ++$context['loop']['index0'];
  181.             ++$context['loop']['index'];
  182.             $context['loop']['first'] = false;
  183.             if (isset($context['loop']['length'])) {
  184.                 --$context['loop']['revindex0'];
  185.                 --$context['loop']['revindex'];
  186.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  187.             }
  188.         }
  189.         $_parent $context['_parent'];
  190.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  191.         $context array_intersect_key($context$_parent) + $_parent;
  192.         // line 37
  193.         echo "\t</div>
  194. \t";
  195.         // line 42
  196.         echo "
  197. \t";
  198.         
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  200.         
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  202.         
  203.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  204.     }
  205.     /**
  206.      * @codeCoverageIgnore
  207.      */
  208.     public function getTemplateName()
  209.     {
  210.         return "StationList/list.html.twig";
  211.     }
  212.     /**
  213.      * @codeCoverageIgnore
  214.      */
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     /**
  220.      * @codeCoverageIgnore
  221.      */
  222.     public function getDebugInfo()
  223.     {
  224.         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,);
  225.     }
  226.     public function getSourceContext()
  227.     {
  228.         return new Source("{% extends 'grid.html.twig' %}
  229. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  230. {% block title %}Проститутки по метро в Москве{% endblock %}
  231. {% block metaDescription %}<meta name=\"description\" content=\"Выбор проституток Москвы по станциям метро позволяет не терять время на поездки.\">{% endblock %}
  232. {% block mainContainer %}
  233. \t{{ knp_menu_render('breadcrumbs', {'template': '__design/v2023/_menu/breadcrumbs.html.twig'}) }}
  234. \t<div class=\"heading d-flex\">
  235. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Проститутки и индивидуалки по станциям метро' }}</h1>
  236. \t</div>
  237. \t<div class=\"catalog-metro-container white-block mb-4\">
  238. \t\t{% set firstLetter = null %}
  239. \t\t{% set sorted_stations = stations|sort((a, b) => a.name|upper <=> b.name|upper) %}
  240. \t\t{% for station in sorted_stations %}
  241. \t\t\t{% set firstChar = station.name|slice(0, 1)|upper %}
  242. \t\t\t{% if firstLetter != firstChar %}
  243. \t\t\t\t{% if loop.index != 1 %}</div>{% endif %}
  244. \t\t\t\t{% set firstLetter = firstChar %}
  245. \t\t\t\t<div class=\"catalog catalog-metro mb-4\">
  246. \t\t\t\t\t<div class=\"first-letter mb-2 fw-700 d-flex-c\">
  247. \t\t\t\t\t\t{{ firstLetter }}
  248. \t\t\t\t\t</div>
  249. \t\t\t{% endif %}
  250. \t\t\t<div class=\"catalog-item\">
  251. \t\t\t\t<a class=\"metro-link d-flex-c\" href=\"{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}\">
  252. \t\t\t\t\t{% include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} %}
  253. \t\t\t\t\t<span class=\"metro-name mr-1\">{{ station.name|trans }}</span>
  254. \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>
  255. \t\t\t\t</a>
  256. \t\t\t</div>
  257. \t\t{% endfor %}
  258. \t</div>
  259. \t{# <div class=\"new-questionare\">
  260. \t\t{{ include('components/last_girl_list.html.twig') }}
  261. \t</div> #}
  262. \t{# {{ include('components/seo_text.html.twig', { 'type': 'bottom', \"noindex\": true }) }} #}
  263. {% endblock %}""StationList/list.html.twig""/app/templates/StationList/list.html.twig");
  264.     }
  265. }