var/cache/review/twig/7e/7e05f56baae7cc2b82265a01f8a8fe97.php line 216

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. /* _menu/breadcrumbs.html.twig */
  14. class __TwigTemplate_f1b3166fd61c2908b8deabee04fa201a 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_menu/breadcrumbs.html.twig"));
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_menu/breadcrumbs.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_menu/breadcrumbs.html.twig"));
  35.         // line 1
  36.         $context["route"] = 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.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "attributes", [], "any"falsefalsefalse1), "get", ["_route"], "method"falsefalsefalse1);
  37.         // line 2
  38.         $context["city"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse2), "attributes", [], "any"falsetruefalse2), "get", ["city"], "method"truetruefalse2) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse2), "attributes", [], "any"falsetruefalse2), "get", ["city"], "method"falsefalsefalse2)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse2), "attributes", [], "any"falsetruefalse2), "get", ["city"], "method"falsefalsefalse2)) : (null));
  39.         // line 3
  40.         $context["locale"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse3), "locale", [], "any"truetruefalse3) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse3), "locale", [], "any"falsefalsefalse3)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse3), "locale", [], "any"falsefalsefalse3)) : ("ru"));
  41.         // line 4
  42.         $context["isMainCity"] = ((isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'4$this->source); })()) == $this->extensions['App\Twig\DefaultCityExtension']->defaultCity());
  43.         // line 6
  44.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'6$this->source); })()), "children", [], "any"falsefalsefalse6)) > 1)) {
  45.             // line 8
  46.             echo "    ";
  47.             $context["children"] = [];
  48.             // line 9
  49.             echo "    ";
  50.             $context['_parent'] = $context;
  51.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'9$this->source); })()), "children", [], "any"falsefalsefalse9));
  52.             foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
  53.                 // line 10
  54.                 echo "        ";
  55.                 $context["children"] = twig_array_merge((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'10$this->source); })()), [$context["breadcrumb_item"]]);
  56.                 // line 11
  57.                 echo "    ";
  58.             }
  59.             $_parent $context['_parent'];
  60.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
  61.             $context array_intersect_key($context$_parent) + $_parent;
  62.             // line 12
  63.             echo "
  64.     ";
  65.             // line 13
  66.             if (((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'13$this->source); })()) == "profile_preview.page")) {
  67.                 // line 14
  68.                 echo "        ";
  69.                 $context["profile"] = (((twig_get_attribute($this->env$this->source, ($context["options"] ?? null), "profile", [], "any"truetruefalse14) &&  !(null === twig_get_attribute($this->env$this->source, ($context["options"] ?? null), "profile", [], "any"falsefalsefalse14)))) ? (twig_get_attribute($this->env$this->source, ($context["options"] ?? null), "profile", [], "any"falsefalsefalse14)) : (null));
  70.                 // line 15
  71.                 echo "        ";
  72.                 $context["station"] = ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'15$this->source); })()), "stations", [], "any"falsefalsefalse15))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'15$this->source); })()), "stations", [], "any"falsefalsefalse15), 0, [], "array"falsefalsefalse15)) : (null));
  73.                 // line 16
  74.                 echo "
  75.         ";
  76.                 // line 18
  77.                 echo "        ";
  78.                 $context["main"] = (((isset($context["isMainCity"]) || array_key_exists("isMainCity"$context) ? $context["isMainCity"] : (function () { throw new RuntimeError('Variable "isMainCity" does not exist.'18$this->source); })())) ? ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["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.'18$this->source); })()), "uriIdentity", [], "any"falsefalsefalse18)])]]) : ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")], ["label" => ("Проститутки " $this->extensions['BigIdea\Bundle\GeographicalNamesInflectionBundle\Twig\GeographicalNamesInflectionTwigExtension']->geoNameInflection(twig_get_attribute($this->env$this->source,                 // line 21
  79. (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'21$this->source); })()), "name", [], "any"falsefalsefalse21), "genitive")), "uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["city" => twig_get_attribute($this->env$this->source,                 // line 22
  80. (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'22$this->source); })()), "uriIdentity", [], "any"falsefalsefalse22)])]]));
  81.                 // line 24
  82.                 echo "        ";
  83.                 if ((((isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'24$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'24$this->source); })()), "district", [], "any"falsefalsefalse24)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'24$this->source); })()), "district", [], "any"falsefalsefalse24), "county", [], "any"falsefalsefalse24))) {
  84.                     // line 25
  85.                     echo "            ";
  86.                     $context["main"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'25$this->source); })()), [["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'25$this->source); })()), "district", [], "any"falsefalsefalse25), "county", [], "any"falsefalsefalse25), "name", [], "any"falsefalsefalse25)), "uri" => $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.'25$this->source); })()), "uriIdentity", [], "any"falsefalsefalse25), "county" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'25$this->source); })()), "district", [], "any"falsefalsefalse25), "county", [], "any"falsefalsefalse25), "uriIdentity", [], "any"falsefalsefalse25)])]]);
  87.                     // line 26
  88.                     echo "        ";
  89.                 }
  90.                 // line 27
  91.                 echo "        ";
  92.                 if (((isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'27$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'27$this->source); })()), "district", [], "any"falsefalsefalse27))) {
  93.                     // line 28
  94.                     echo "            ";
  95.                     $context["main"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'28$this->source); })()), [["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'28$this->source); })()), "district", [], "any"falsefalsefalse28), "name", [], "any"falsefalsefalse28)), "uri" => $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.'28$this->source); })()), "uriIdentity", [], "any"falsefalsefalse28), "district" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'28$this->source); })()), "district", [], "any"falsefalsefalse28), "uriIdentity", [], "any"falsefalsefalse28)])]]);
  96.                     // line 29
  97.                     echo "        ";
  98.                 }
  99.                 // line 30
  100.                 echo "        ";
  101.                 if (((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'30$this->source); })()) && (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'30$this->source); })()))) {
  102.                     // line 31
  103.                     echo "            ";
  104.                     $context["main"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'31$this->source); })()), [["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'31$this->source); })()), "name", [], "any"falsefalsefalse31)), "uri" => $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.'31$this->source); })()), "uriIdentity", [], "any"falsefalsefalse31), "station" => twig_get_attribute($this->env$this->source, (isset($context["station"]) || array_key_exists("station"$context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.'31$this->source); })()), "uriIdentity", [], "any"falsefalsefalse31)])]]);
  105.                     // line 32
  106.                     echo "        ";
  107.                 }
  108.                 // line 33
  109.                 echo "        ";
  110.                 $context["children"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'33$this->source); })()), [twig_last($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'33$this->source); })()))]);
  111.                 // line 34
  112.                 echo "
  113.         <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  114.             ";
  115.                 // line 36
  116.                 $context['_parent'] = $context;
  117.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'36$this->source); })()));
  118.                 $context['loop'] = [
  119.                   'parent' => $context['_parent'],
  120.                   'index0' => 0,
  121.                   'index'  => 1,
  122.                   'first'  => true,
  123.                 ];
  124.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  125.                     $length count($context['_seq']);
  126.                     $context['loop']['revindex0'] = $length 1;
  127.                     $context['loop']['revindex'] = $length;
  128.                     $context['loop']['length'] = $length;
  129.                     $context['loop']['last'] = === $length;
  130.                 }
  131.                 foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
  132.                     // line 37
  133.                     echo "                <li class=\"";
  134.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse37)) {
  135.                         echo "last-crumb";
  136.                     }
  137.                     echo "\" property=\"itemListElement\" typeof=\"ListItem\">
  138.                     ";
  139.                     // line 38
  140.                     if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse38)) {
  141.                         // line 39
  142.                         echo "                        <a href=\"";
  143.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "uri", [], "any"falsefalsefalse39), "html"nulltrue);
  144.                         echo "\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
  145.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "label", [], "any"falsefalsefalse39), "html"nulltrue);
  146.                         echo "</span></a>
  147.                     ";
  148.                     } else {
  149.                         // line 41
  150.                         echo "                        <span property=\"name\">";
  151.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "label", [], "any"falsefalsefalse41), "html"nulltrue);
  152.                         echo ", ";
  153.                         echo twig_escape_filter($this->env$this->extensions['BigIdea\Bundle\MorphosTwigBundle\Twig\MorphosExtension']->pluralFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'41$this->source); })()), "personParameters", [], "any"falsefalsefalse41), "age", [], "any"falsefalsefalse41), "год"), "html"nulltrue);
  154.                         echo " ID ";
  155.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'41$this->source); })()), "id", [], "any"falsefalsefalse41), "html"nulltrue);
  156.                         echo "</span>
  157.                     ";
  158.                     }
  159.                     // line 43
  160.                     echo "                    <meta property=\"position\" content=\"";
  161.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse43), "html"nulltrue);
  162.                     echo "\">
  163.                 </li>
  164.             ";
  165.                     ++$context['loop']['index0'];
  166.                     ++$context['loop']['index'];
  167.                     $context['loop']['first'] = false;
  168.                     if (isset($context['loop']['length'])) {
  169.                         --$context['loop']['revindex0'];
  170.                         --$context['loop']['revindex'];
  171.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  172.                     }
  173.                 }
  174.                 $_parent $context['_parent'];
  175.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
  176.                 $context array_intersect_key($context$_parent) + $_parent;
  177.                 // line 46
  178.                 echo "        </ul>
  179.     ";
  180.             } else {
  181.                 // line 48
  182.                 $context["isProfileList"] = (twig_in_filter("profile_list.", (isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'48$this->source); })())) && twig_in_filter("_pagination", (isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'48$this->source); })())));
  183.                 // line 50
  184.                 echo "<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  185.             ";
  186.                 // line 52
  187.                 echo "            ";
  188.                 // line 53
  189.                 echo "            ";
  190.                 $context["main"] = (((isset($context["isMainCity"]) || array_key_exists("isMainCity"$context) ? $context["isMainCity"] : (function () { throw new RuntimeError('Variable "isMainCity" does not exist.'53$this->source); })())) ? ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["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.'53$this->source); })()), "uriIdentity", [], "any"falsefalsefalse53)])]]) : ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")], ["label" => 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.'53$this->source); })()), "name", [], "any"falsefalsefalse53), "uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["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.'53$this->source); })()), "uriIdentity", [], "any"falsefalsefalse53)])]]));
  191.                 // line 54
  192.                 echo "            ";
  193.                 if (twig_in_filter("profile_list.list_by_station", (isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'54$this->source); })()))) {
  194.                     // line 55
  195.                     echo "                ";
  196.                     $context["main"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'55$this->source); })()), [["label" => "Метро""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("station_list.page", ["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.'55$this->source); })()), "uriIdentity", [], "any"falsefalsefalse55)])]]);
  197.                     // line 56
  198.                     echo "            ";
  199.                 }
  200.                 // line 57
  201.                 echo "
  202.             ";
  203.                 // line 59
  204.                 if ((isset($context["isProfileList"]) || array_key_exists("isProfileList"$context) ? $context["isProfileList"] : (function () { throw new RuntimeError('Variable "isProfileList" does not exist.'59$this->source); })())) {
  205.                     // line 60
  206.                     $context["children"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'60$this->source); })()), [["label" => twig_get_attribute($this->env$this->sourcetwig_last($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'60$this->source); })())), "name", [], "any"falsefalsefalse60), "uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_replace_filter((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'60$this->source); })()), ["._pagination" => ""]), ["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.'60$this->source); })()), "uriIdentity", [], "any"falsefalsefalse60)])]]);
  207.                     // line 61
  208.                     echo "                ";
  209.                     $context["children"] = twig_array_merge((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'61$this->source); })()), [["label" => ("Страница " 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.'61$this->source); })()), "request", [], "any"falsefalsefalse61), "get", ["page"], "method"falsefalsefalse61))]]);
  210.                 } else {
  211.                     // line 63
  212.                     $context["children"] = twig_array_merge((isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'63$this->source); })()), [twig_last($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'63$this->source); })()))]);
  213.                     // line 64
  214.                     echo "            ";
  215.                 }
  216.                 // line 65
  217.                 echo "
  218.             ";
  219.                 // line 67
  220.                 $context['_parent'] = $context;
  221.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'67$this->source); })()));
  222.                 $context['loop'] = [
  223.                   'parent' => $context['_parent'],
  224.                   'index0' => 0,
  225.                   'index'  => 1,
  226.                   'first'  => true,
  227.                 ];
  228.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  229.                     $length count($context['_seq']);
  230.                     $context['loop']['revindex0'] = $length 1;
  231.                     $context['loop']['revindex'] = $length;
  232.                     $context['loop']['length'] = $length;
  233.                     $context['loop']['last'] = === $length;
  234.                 }
  235.                 foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
  236.                     // line 68
  237.                     echo "                <li class=\"";
  238.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse68)) {
  239.                         echo "last-crumb";
  240.                     }
  241.                     echo "\" property=\"itemListElement\" typeof=\"ListItem\">
  242.                     ";
  243.                     // line 69
  244.                     if (( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse69) && twig_get_attribute($this->env$this->source$context["breadcrumb_item"], "uri", [], "any"truetruefalse69))) {
  245.                         // line 70
  246.                         echo "                        <a href=\"";
  247.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "uri", [], "any"falsefalsefalse70), "html"nulltrue);
  248.                         echo "\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
  249.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "label", [], "any"falsefalsefalse70), "html"nulltrue);
  250.                         echo "</span></a>
  251.                     ";
  252.                     } else {
  253.                         // line 72
  254.                         echo "                        <span ";
  255.                         ((twig_get_attribute($this->env$this->source$context["breadcrumb_item"], "classname", [], "any"truetruefalse72)) ? (print (twig_escape_filter($this->env, ("class=" twig_get_attribute($this->env$this->source$context["breadcrumb_item"], "classname", [], "any"falsefalsefalse72)), "html"nulltrue))) : (print ("")));
  256.                         echo " property=\"name\">";
  257.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["breadcrumb_item"], "label", [], "any"falsefalsefalse72), "html"nulltrue);
  258.                         echo "</span>
  259.                     ";
  260.                     }
  261.                     // line 74
  262.                     echo "                    <meta property=\"position\" content=\"";
  263.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse74), "html"nulltrue);
  264.                     echo "\">
  265.                 </li>
  266.             ";
  267.                     ++$context['loop']['index0'];
  268.                     ++$context['loop']['index'];
  269.                     $context['loop']['first'] = false;
  270.                     if (isset($context['loop']['length'])) {
  271.                         --$context['loop']['revindex0'];
  272.                         --$context['loop']['revindex'];
  273.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  274.                     }
  275.                 }
  276.                 $_parent $context['_parent'];
  277.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
  278.                 $context array_intersect_key($context$_parent) + $_parent;
  279.                 // line 77
  280.                 echo "        </ul>
  281.     ";
  282.             }
  283.         } else {
  284.             // line 80
  285.             echo "
  286.     ";
  287.             // line 81
  288.             if (((((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'81$this->source); })()) == "profile_list.list_by_city") || ((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'81$this->source); })()) == "profile_list.list_by_city._pagination")) && (            // line 82
  289. (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'82$this->source); })()) != $this->extensions['App\Twig\DefaultCityExtension']->defaultCity()))) {
  290.                 // line 83
  291.                 echo "        ";
  292.                 // line 84
  293.                 echo "        ";
  294.                 $context["main"] = (((isset($context["isMainCity"]) || array_key_exists("isMainCity"$context) ? $context["isMainCity"] : (function () { throw new RuntimeError('Variable "isMainCity" does not exist.'84$this->source); })())) ? ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["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.'84$this->source); })()), "uriIdentity", [], "any"falsefalsefalse84)])]]) : ([["label" => "Главная""uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")], ["label" => 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.'84$this->source); })()), "name", [], "any"falsefalsefalse84), "uri" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_city", ["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.'84$this->source); })()), "uriIdentity", [], "any"falsefalsefalse84)])]]));
  295.                 // line 85
  296.                 echo "        ";
  297.                 $context["children"] = (isset($context["main"]) || array_key_exists("main"$context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.'85$this->source); })());
  298.                 // line 86
  299.                 echo "        <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  300.             <li property=\"itemListElement\" typeof=\"ListItem\">
  301.                 <a href=\"";
  302.                 // line 88
  303.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_first($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'88$this->source); })())), "uri", [], "any"falsefalsefalse88), "html"nulltrue);
  304.                 echo "\" class=\"std-hover-link\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
  305.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_first($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'88$this->source); })())), "label", [], "any"falsefalsefalse88), "html"nulltrue);
  306.                 echo "</span></a>
  307.                 <meta property=\"position\" content=\"0\">
  308.             </li>
  309.             <li property=\"itemListElement\" typeof=\"ListItem\">
  310.                 <span property=\"name\">";
  311.                 // line 92
  312.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_last($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'92$this->source); })())), "label", [], "any"falsefalsefalse92), "html"nulltrue);
  313.                 echo "</span>
  314.                 <meta property=\"position\" content=\"1\">
  315.             </li>
  316.         </ul>
  317.     ";
  318.             }
  319.         }
  320.         
  321.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  322.         
  323.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  324.         
  325.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  326.     }
  327.     /**
  328.      * @codeCoverageIgnore
  329.      */
  330.     public function getTemplateName()
  331.     {
  332.         return "_menu/breadcrumbs.html.twig";
  333.     }
  334.     /**
  335.      * @codeCoverageIgnore
  336.      */
  337.     public function isTraitable()
  338.     {
  339.         return false;
  340.     }
  341.     /**
  342.      * @codeCoverageIgnore
  343.      */
  344.     public function getDebugInfo()
  345.     {
  346.         return array (  323 => 92,  314 => 88,  310 => 86,  307 => 85,  304 => 84,  302 => 83,  300 => 82,  299 => 81,  296 => 80,  291 => 77,  273 => 74,  265 => 72,  257 => 70,  255 => 69,  248 => 68,  231 => 67,  227 => 65,  224 => 64,  222 => 63,  218 => 61,  216 => 60,  214 => 59,  211 => 57,  208 => 56,  205 => 55,  202 => 54,  199 => 53,  197 => 52,  194 => 50,  192 => 48,  188 => 46,  170 => 43,  160 => 41,  152 => 39,  150 => 38,  143 => 37,  126 => 36,  122 => 34,  119 => 33,  116 => 32,  113 => 31,  110 => 30,  107 => 29,  104 => 28,  101 => 27,  98 => 26,  95 => 25,  92 => 24,  90 => 22,  89 => 21,  87 => 18,  84 => 16,  81 => 15,  78 => 14,  76 => 13,  73 => 12,  67 => 11,  64 => 10,  59 => 9,  56 => 8,  54 => 6,  52 => 4,  50 => 3,  48 => 2,  46 => 1,);
  347.     }
  348.     public function getSourceContext()
  349.     {
  350.         return new Source("{%- set route = app.request.attributes.get('_route') -%}
  351. {%- set city = app.request.attributes.get('city') ?? null -%}
  352. {%- set locale = app.request.locale ?? 'ru' -%}
  353. {%- set isMainCity = city == default_city() -%}
  354. {%- if item.children|length > 1 -%}
  355.     {# Перегоняем в индексированный массив #}
  356.     {% set children = [] %}
  357.     {% for breadcrumb_item in item.children %}
  358.         {% set children = children|merge([breadcrumb_item]) %}
  359.     {% endfor %}
  360.     {% if route == 'profile_preview.page' %}
  361.         {% set profile = options.profile ?? null %}
  362.         {% set station = profile.stations|length ? profile.stations[0] : null %}
  363.         {#{% set main = city == default_city() ? [{label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] : [{label: 'Главная', uri: path('homepage')}, {label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] %}#}
  364.         {% set main = isMainCity ? [{label: 'Главная', uri: path('profile_list.list_by_city', {city: city.uriIdentity})}]
  365.                                  : [
  366.                                         {label: 'Главная', uri: path('homepage')},
  367.                                         {label: 'Проститутки ' ~ city.name|geo_name('genitive'), uri: path('profile_list.list_by_city',
  368.                                         {city: city.uriIdentity})}
  369.                                     ] %}
  370.         {% if station and station.district and station.district.county %}
  371.             {% set main = main|merge([{label: station.district.county.name|trans, uri: path('profile_list.list_by_county', {city: city.uriIdentity, county: station.district.county.uriIdentity})}]) %}
  372.         {% endif %}
  373.         {% if station and station.district %}
  374.             {% set main = main|merge([{label: station.district.name|trans, uri: path('profile_list.list_by_district', {city: city.uriIdentity, district: station.district.uriIdentity})}]) %}
  375.         {% endif %}
  376.         {% if profile and station %}
  377.             {% set main = main|merge([{label: station.name|trans , uri: path('profile_list.list_by_station', {city: city.uriIdentity, station: station.uriIdentity})}]) %}
  378.         {% endif %}
  379.         {% set children = main|merge([children|last]) %}
  380.         <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  381.             {% for breadcrumb_item in children %}
  382.                 <li class=\"{% if loop.last %}last-crumb{% endif %}\" property=\"itemListElement\" typeof=\"ListItem\">
  383.                     {% if not loop.last %}
  384.                         <a href=\"{{ breadcrumb_item.uri }}\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ breadcrumb_item.label }}</span></a>
  385.                     {% else %}
  386.                         <span property=\"name\">{{ breadcrumb_item.label }}, {{ profile.personParameters.age|plural('год') }} ID {{ profile.id }}</span>
  387.                     {% endif %}
  388.                     <meta property=\"position\" content=\"{{ loop.index }}\">
  389.                 </li>
  390.             {% endfor %}
  391.         </ul>
  392.     {% else %}
  393.         {%- set isProfileList = ('profile_list.' in route) and ('_pagination' in route) -%}
  394.         <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  395.             {# Делаем првый элемент \"Главная\", второй - город #}
  396.             {#{% set main = city == default_city() ? [{label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] : [{label: 'Главная', uri: path('homepage')}, {label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] %}#}
  397.             {% set main = isMainCity ? [{label: 'Главная', uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] : [{label: 'Главная', uri: path('homepage')}, {label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] %}
  398.             {% if 'profile_list.list_by_station' in route %}
  399.                 {% set main = main|merge([{label: 'Метро' , uri: path('station_list.page', {city: city.uriIdentity})}]) %}
  400.             {% endif %}
  401.             {# Только для листинга С ПАГИНАЦИЕЙ #}
  402.             {%- if isProfileList -%}
  403.                 {% set children = main|merge([{label: children|last.name, uri: path(route|replace({'._pagination': ''}), {city: city.uriIdentity})}]) %}
  404.                 {% set children = children|merge([{label: 'Страница ' ~ app.request.get('page')}]) %}
  405.             {%- else -%}
  406.                 {% set children = main|merge([children|last]) %}
  407.             {% endif %}
  408.             {% for breadcrumb_item in children %}
  409.                 <li class=\"{% if loop.last %}last-crumb{% endif %}\" property=\"itemListElement\" typeof=\"ListItem\">
  410.                     {% if not loop.last and breadcrumb_item.uri is defined %}
  411.                         <a href=\"{{ breadcrumb_item.uri }}\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ breadcrumb_item.label }}</span></a>
  412.                     {% else %}
  413.                         <span {{ breadcrumb_item.classname is defined ? 'class=' ~ breadcrumb_item.classname : '' }} property=\"name\">{{ breadcrumb_item.label }}</span>
  414.                     {% endif %}
  415.                     <meta property=\"position\" content=\"{{ loop.index }}\">
  416.                 </li>
  417.             {% endfor %}
  418.         </ul>
  419.     {% endif %}
  420. {% else %}
  421.     {% if (route == 'profile_list.list_by_city' or route == 'profile_list.list_by_city._pagination')
  422.             and city != default_city() %}
  423.         {#{% set main = city == default_city() ? [{label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] : [{label: 'Главная', uri: path('homepage')}, {label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] %}#}
  424.         {% set main = isMainCity ? [{label: 'Главная', uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] : [{label: 'Главная', uri: path('homepage')}, {label: city.name, uri: path('profile_list.list_by_city', {city: city.uriIdentity})}] %}
  425.         {% set children = main %}
  426.         <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
  427.             <li property=\"itemListElement\" typeof=\"ListItem\">
  428.                 <a href=\"{{ (children|first).uri }}\" class=\"std-hover-link\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ (children|first).label }}</span></a>
  429.                 <meta property=\"position\" content=\"0\">
  430.             </li>
  431.             <li property=\"itemListElement\" typeof=\"ListItem\">
  432.                 <span property=\"name\">{{ (children|last).label }}</span>
  433.                 <meta property=\"position\" content=\"1\">
  434.             </li>
  435.         </ul>
  436.     {% endif %}
  437. {% endif %}
  438. ""_menu/breadcrumbs.html.twig""/app/templates/_menu/breadcrumbs.html.twig");
  439.     }
  440. }