var/cache/review/twig/73/73b010644c829078c4173c544bc04c99.php line 42

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. /* DistrictList/list.html.twig */
  14. class __TwigTemplate_fcce3a5daf672543daddd497c6f8447f 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.             'bodyClasses' => [$this'block_bodyClasses'],
  24.             'specialPageClass' => [$this'block_specialPageClass'],
  25.             'title' => [$this'block_title'],
  26.             'metaDescription' => [$this'block_metaDescription'],
  27.             'mainContainer' => [$this'block_mainContainer'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "grid.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  39.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""DistrictList/list.html.twig"));
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""DistrictList/list.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""DistrictList/list.html.twig"));
  44.         // line 3
  45.         $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") : (""));
  46.         // line 8
  47.         $context["city"] = twig_get_attribute($this->env$this->sourcetwig_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.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "attributes", [], "any"falsefalsefalse8), "get", ["city"], "method"falsefalsefalse8);
  48.         // line 1
  49.         $this->parent $this->loadTemplate("grid.html.twig""DistrictList/list.html.twig"1);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  53.         
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.     }
  58.     // line 5
  59.     public function block_bodyClasses($context, array $blocks = [])
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  63.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.         
  73.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  74.     }
  75.     // line 6
  76.     public function block_specialPageClass($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  80.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""specialPageClass"));
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""specialPageClass"));
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""specialPageClass"));
  85.         echo " full-width-page";
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.         
  91.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  92.     }
  93.     // line 10
  94.     public function block_title($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  98.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  103.         // line 11
  104.         echo "\t";
  105.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaTitle(), "html"nulltrue);
  106.         echo "
  107. ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.         
  113.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  114.     }
  115.     // line 13
  116.     public function block_metaDescription($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  120.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  125.         // line 14
  126.         echo "\t<meta name=\"description\" content=\"";
  127.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaDescription(), "html"nulltrue);
  128.         echo "\">
  129. ";
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.         
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134.         
  135.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  136.     }
  137.     // line 17
  138.     public function block_mainContainer($context, array $blocks = [])
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  142.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  147.         // line 18
  148.         echo "\t<h1 role=\"heading\" class=\"border-line\">";
  149.         echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
  150.         echo "</h1>
  151. \t<div class=\"city-block\">
  152. \t\t";
  153.         // line 21
  154.         if ((twig_length_filter($this->envtwig_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.'21$this->source); })()), "counties", [], "any"falsefalsefalse21)) > 0)) {
  155.             // line 22
  156.             echo "\t\t\t";
  157.             $context["sorted_stations"] = twig_sort_filter($this->envtwig_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.'22$this->source); })()), "counties", [], "any"falsefalsefalse22), 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.'22$this->source); })()), "name", [], "any"falsefalsefalse22)) <=> 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.'22$this->source); })()), "name", [], "any"falsefalsefalse22))); });
  158.             // line 23
  159.             echo "\t\t\t";
  160.             $context['_parent'] = $context;
  161.             $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.'23$this->source); })()));
  162.             $context['loop'] = [
  163.               'parent' => $context['_parent'],
  164.               'index0' => 0,
  165.               'index'  => 1,
  166.               'first'  => true,
  167.             ];
  168.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  169.                 $length count($context['_seq']);
  170.                 $context['loop']['revindex0'] = $length 1;
  171.                 $context['loop']['revindex'] = $length;
  172.                 $context['loop']['length'] = $length;
  173.                 $context['loop']['last'] = === $length;
  174.             }
  175.             foreach ($context['_seq'] as $context["_key"] => $context["county"]) {
  176.                 // line 24
  177.                 echo "\t\t\t\t";
  178.                 if (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse24) == ((twig_get_attribute($this->env$this->source$context["loop"], "length", [], "any"falsefalsefalse24) / 2) + 1)) || (twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse24) == 1))) {
  179.                     // line 25
  180.                     echo "\t\t\t\t\t<div class=\"column\">
  181. \t\t\t\t";
  182.                 }
  183.                 // line 27
  184.                 echo "
  185. \t\t\t\t<div class=\"title\">
  186. \t\t\t\t\t<a href=\"";
  187.                 // line 29
  188.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_county", ["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.'29$this->source); })()), "uriIdentity", [], "any"falsefalsefalse29), "county" => twig_get_attribute($this->env$this->source$context["county"], "uriIdentity", [], "any"falsefalsefalse29)]), "html"nulltrue);
  189.                 echo "\">";
  190.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["county"], "name", [], "any"falsefalsefalse29)), "html"nulltrue);
  191.                 echo "</a>
  192. \t\t\t\t</div>
  193. \t\t\t\t<ul>
  194. \t\t\t\t\t";
  195.                 // line 32
  196.                 $context['_parent'] = $context;
  197.                 $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_get_attribute($this->env$this->source$context["county"], "districts", [], "any"falsefalsefalse32), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'32$this->source); })()), "name", [], "any"falsefalsefalse32))) <=> twig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'32$this->source); })()), "name", [], "any"falsefalsefalse32)))); }));
  198.                 foreach ($context['_seq'] as $context["_key"] => $context["district"]) {
  199.                     // line 33
  200.                     echo "\t\t\t\t\t\t<li>
  201. \t\t\t\t\t\t\t<a href=\"";
  202.                     // line 34
  203.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_district", ["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.'34$this->source); })()), "uriIdentity", [], "any"falsefalsefalse34), "district" => twig_get_attribute($this->env$this->source$context["district"], "uriIdentity", [], "any"falsefalsefalse34)]), "html"nulltrue);
  204.                     echo "\">";
  205.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["district"], "name", [], "any"falsefalsefalse34)), "html"nulltrue);
  206.                     echo "</a><br>
  207. \t\t\t\t\t\t</li>
  208. \t\t\t\t\t";
  209.                 }
  210.                 $_parent $context['_parent'];
  211.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['district'], $context['_parent'], $context['loop']);
  212.                 $context array_intersect_key($context$_parent) + $_parent;
  213.                 // line 37
  214.                 echo "\t\t\t\t</ul>
  215. \t\t\t\t";
  216.                 // line 39
  217.                 if (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse39) == (twig_get_attribute($this->env$this->source$context["loop"], "length", [], "any"falsefalsefalse39) / 2)) || (twig_get_attribute($this->env$this->source$context["loop"], "revindex", [], "any"falsefalsefalse39) == 1))) {
  218.                     // line 40
  219.                     echo "\t\t\t\t\t</div>
  220. \t\t\t\t";
  221.                 }
  222.                 // line 42
  223.                 echo "\t\t\t";
  224.                 ++$context['loop']['index0'];
  225.                 ++$context['loop']['index'];
  226.                 $context['loop']['first'] = false;
  227.                 if (isset($context['loop']['length'])) {
  228.                     --$context['loop']['revindex0'];
  229.                     --$context['loop']['revindex'];
  230.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  231.                 }
  232.             }
  233.             $_parent $context['_parent'];
  234.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['county'], $context['_parent'], $context['loop']);
  235.             $context array_intersect_key($context$_parent) + $_parent;
  236.             // line 43
  237.             echo "\t\t";
  238.         } else {
  239.             // line 44
  240.             echo "\t\t\t<ul class=\"list-unstyled\">
  241. \t\t\t\t";
  242.             // line 45
  243.             $context['_parent'] = $context;
  244.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_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.'45$this->source); })()), "districts", [], "any"falsefalsefalse45), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'45$this->source); })()), "name", [], "any"falsefalsefalse45))) <=> twig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'45$this->source); })()), "name", [], "any"falsefalsefalse45)))); }));
  245.             foreach ($context['_seq'] as $context["_key"] => $context["district"]) {
  246.                 // line 46
  247.                 echo "\t\t\t\t\t";
  248.                 $context["profilesCount"] = (((twig_get_attribute($this->env$this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env$this->source$context["district"], "id", [], "any"falsefalsefalse46), [], "array"truetruefalse46) &&  !(null === twig_get_attribute($this->env$this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env$this->source$context["district"], "id", [], "any"falsefalsefalse46), [], "array"falsefalsefalse46)))) ? (twig_get_attribute($this->env$this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env$this->source$context["district"], "id", [], "any"falsefalsefalse46), [], "array"falsefalsefalse46)) : (0));
  249.                 // line 47
  250.                 echo "\t\t\t\t\t<li><a href=\"";
  251.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_district", ["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.'47$this->source); })()), "uriIdentity", [], "any"falsefalsefalse47), "district" => twig_get_attribute($this->env$this->source$context["district"], "uriIdentity", [], "any"falsefalsefalse47)]), "html"nulltrue);
  252.                 echo "\"><span class=\"link\">";
  253.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["district"], "name", [], "any"falsefalsefalse47), "html"nulltrue);
  254.                 echo "</span> <span class=\"count\">";
  255.                 echo twig_escape_filter($this->env, (isset($context["profilesCount"]) || array_key_exists("profilesCount"$context) ? $context["profilesCount"] : (function () { throw new RuntimeError('Variable "profilesCount" does not exist.'47$this->source); })()), "html"nulltrue);
  256.                 echo "</span></a></li>
  257. \t\t\t\t";
  258.             }
  259.             $_parent $context['_parent'];
  260.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['district'], $context['_parent'], $context['loop']);
  261.             $context array_intersect_key($context$_parent) + $_parent;
  262.             // line 49
  263.             echo "\t\t\t</ul>
  264. \t\t";
  265.         }
  266.         // line 51
  267.         echo "\t</div>
  268. \t";
  269.         // line 54
  270.         echo "\t";
  271.         echo twig_include($this->env$context"components/seo.partial.twig", ["type" => "top"]);
  272.         echo "
  273. \t";
  274.         // line 55
  275.         echo twig_include($this->env$context"components/seo.partial.twig", ["type" => "bottom"]);
  276.         echo "
  277. ";
  278.         
  279.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  280.         
  281.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  282.         
  283.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  284.     }
  285.     /**
  286.      * @codeCoverageIgnore
  287.      */
  288.     public function getTemplateName()
  289.     {
  290.         return "DistrictList/list.html.twig";
  291.     }
  292.     /**
  293.      * @codeCoverageIgnore
  294.      */
  295.     public function isTraitable()
  296.     {
  297.         return false;
  298.     }
  299.     /**
  300.      * @codeCoverageIgnore
  301.      */
  302.     public function getDebugInfo()
  303.     {
  304.         return array (  323 => 55,  318 => 54,  314 => 51,  310 => 49,  297 => 47,  294 => 46,  290 => 45,  287 => 44,  284 => 43,  270 => 42,  266 => 40,  264 => 39,  260 => 37,  249 => 34,  246 => 33,  242 => 32,  234 => 29,  230 => 27,  226 => 25,  223 => 24,  205 => 23,  202 => 22,  200 => 21,  193 => 18,  180 => 17,  164 => 14,  151 => 13,  135 => 11,  122 => 10,  97 => 6,  73 => 5,  59 => 1,  57 => 8,  55 => 3,  39 => 1,);
  305.     }
  306.     public function getSourceContext()
  307.     {
  308.         return new Source("{% extends 'grid.html.twig' %}
  309. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  310. {% block bodyClasses %}{% endblock %}
  311. {% block specialPageClass %} full-width-page{% endblock %}
  312. {% set city = app.request.attributes.get('city') %}
  313. {% block title %}
  314. \t{{ seo_title() }}
  315. {% endblock %}
  316. {% block metaDescription %}
  317. \t<meta name=\"description\" content=\"{{ seo_description() }}\">
  318. {% endblock %}
  319. {% block mainContainer %}
  320. \t<h1 role=\"heading\" class=\"border-line\">{{ seo_heading() }}</h1>
  321. \t<div class=\"city-block\">
  322. \t\t{% if city.counties|length > 0 %}
  323. \t\t\t{% set sorted_stations = city.counties|sort((a, b) => a.name|upper <=> b.name|upper) %}
  324. \t\t\t{% for county in sorted_stations %}
  325. \t\t\t\t{% if loop.index == (loop.length/2+1) or loop.index == 1 %}
  326. \t\t\t\t\t<div class=\"column\">
  327. \t\t\t\t{% endif %}
  328. \t\t\t\t<div class=\"title\">
  329. \t\t\t\t\t<a href=\"{{ path('profile_list.list_by_county', {'city': city.uriIdentity, 'county': county.uriIdentity}) }}\">{{ county.name|trans }}</a>
  330. \t\t\t\t</div>
  331. \t\t\t\t<ul>
  332. \t\t\t\t\t{% for district in county.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
  333. \t\t\t\t\t\t<li>
  334. \t\t\t\t\t\t\t<a href=\"{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}\">{{ district.name|trans }}</a><br>
  335. \t\t\t\t\t\t</li>
  336. \t\t\t\t\t{% endfor %}
  337. \t\t\t\t</ul>
  338. \t\t\t\t{% if loop.index == (loop.length/2) or loop.revindex == 1 %}
  339. \t\t\t\t\t</div>
  340. \t\t\t\t{% endif %}
  341. \t\t\t{% endfor %}
  342. \t\t{% else %}
  343. \t\t\t<ul class=\"list-unstyled\">
  344. \t\t\t\t{% for district in city.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
  345. \t\t\t\t\t{% set profilesCount = count_by_districts[district.id] ?? 0 %}
  346. \t\t\t\t\t<li><a href=\"{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}\"><span class=\"link\">{{ district.name }}</span> <span class=\"count\">{{ profilesCount }}</span></a></li>
  347. \t\t\t\t{% endfor %}
  348. \t\t\t</ul>
  349. \t\t{% endif %}
  350. \t</div>
  351. \t{# {{ include('components/big_footer.html.twig', { 'type': 'main' }) }} #}
  352. \t{{ include('components/seo.partial.twig', {type: 'top'}) }}
  353. \t{{ include('components/seo.partial.twig', {type: 'bottom'}) }}
  354. {% endblock %}
  355. ""DistrictList/list.html.twig""/app/templates/DistrictList/list.html.twig");
  356.     }
  357. }