<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* _menu/breadcrumbs.html.twig */
class __TwigTemplate_f1b3166fd61c2908b8deabee04fa201a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_menu/breadcrumbs.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_menu/breadcrumbs.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_menu/breadcrumbs.html.twig"));
// line 1
$context["route"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "attributes", [], "any", false, false, false, 1), "get", ["_route"], "method", false, false, false, 1);
// line 2
$context["city"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 2), "attributes", [], "any", false, true, false, 2), "get", ["city"], "method", true, true, false, 2) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 2), "attributes", [], "any", false, true, false, 2), "get", ["city"], "method", false, false, false, 2)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 2), "attributes", [], "any", false, true, false, 2), "get", ["city"], "method", false, false, false, 2)) : (null));
// line 3
$context["locale"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 3), "locale", [], "any", true, true, false, 3) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 3), "locale", [], "any", false, false, false, 3)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 3), "locale", [], "any", false, false, false, 3)) : ("ru"));
// line 4
$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());
// line 6
if ((twig_length_filter($this->env, 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.', 6, $this->source); })()), "children", [], "any", false, false, false, 6)) > 1)) {
// line 8
echo " ";
$context["children"] = [];
// line 9
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 9));
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
// line 10
echo " ";
$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"]]);
// line 11
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 12
echo "
";
// line 13
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")) {
// line 14
echo " ";
$context["profile"] = (((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "profile", [], "any", true, true, false, 14) && !(null === twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "profile", [], "any", false, false, false, 14)))) ? (twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "profile", [], "any", false, false, false, 14)) : (null));
// line 15
echo " ";
$context["station"] = ((twig_length_filter($this->env, twig_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", false, false, false, 15))) ? (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 15), 0, [], "array", false, false, false, 15)) : (null));
// line 16
echo "
";
// line 18
echo " ";
$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", false, false, false, 18)])]]) : ([["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
(isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 21, $this->source); })()), "name", [], "any", false, false, false, 21), "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
(isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 22, $this->source); })()), "uriIdentity", [], "any", false, false, false, 22)])]]));
// line 24
echo " ";
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", false, false, false, 24)) && twig_get_attribute($this->env, $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", false, false, false, 24), "county", [], "any", false, false, false, 24))) {
// line 25
echo " ";
$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->source, twig_get_attribute($this->env, $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.', 25, $this->source); })()), "district", [], "any", false, false, false, 25), "county", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25)), "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", false, false, false, 25), "county" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 25, $this->source); })()), "district", [], "any", false, false, false, 25), "county", [], "any", false, false, false, 25), "uriIdentity", [], "any", false, false, false, 25)])]]);
// line 26
echo " ";
}
// line 27
echo " ";
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", false, false, false, 27))) {
// line 28
echo " ";
$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->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.', 28, $this->source); })()), "district", [], "any", false, false, false, 28), "name", [], "any", false, false, false, 28)), "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", false, false, false, 28), "district" => twig_get_attribute($this->env, $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.', 28, $this->source); })()), "district", [], "any", false, false, false, 28), "uriIdentity", [], "any", false, false, false, 28)])]]);
// line 29
echo " ";
}
// line 30
echo " ";
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); })()))) {
// line 31
echo " ";
$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", false, false, false, 31)), "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", false, false, false, 31), "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", false, false, false, 31)])]]);
// line 32
echo " ";
}
// line 33
echo " ";
$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); })()))]);
// line 34
echo "
<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
";
// line 36
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
// line 37
echo " <li class=\"";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 37)) {
echo "last-crumb";
}
echo "\" property=\"itemListElement\" typeof=\"ListItem\">
";
// line 38
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 38)) {
// line 39
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "uri", [], "any", false, false, false, 39), "html", null, true);
echo "\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "label", [], "any", false, false, false, 39), "html", null, true);
echo "</span></a>
";
} else {
// line 41
echo " <span property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "label", [], "any", false, false, false, 41), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, $this->extensions['BigIdea\Bundle\MorphosTwigBundle\Twig\MorphosExtension']->pluralFilter(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 41), "age", [], "any", false, false, false, 41), "год"), "html", null, true);
echo " ID ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 41), "html", null, true);
echo "</span>
";
}
// line 43
echo " <meta property=\"position\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 43), "html", null, true);
echo "\">
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </ul>
";
} else {
// line 48
$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); })())));
// line 50
echo "<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
";
// line 52
echo " ";
// line 53
echo " ";
$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", false, false, false, 53)])]]) : ([["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", false, false, false, 53), "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", false, false, false, 53)])]]));
// line 54
echo " ";
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); })()))) {
// line 55
echo " ";
$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", false, false, false, 55)])]]);
// line 56
echo " ";
}
// line 57
echo "
";
// line 59
if ((isset($context["isProfileList"]) || array_key_exists("isProfileList", $context) ? $context["isProfileList"] : (function () { throw new RuntimeError('Variable "isProfileList" does not exist.', 59, $this->source); })())) {
// line 60
$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->source, twig_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", false, false, false, 60), "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", false, false, false, 60)])]]);
// line 61
echo " ";
$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->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 61, $this->source); })()), "request", [], "any", false, false, false, 61), "get", ["page"], "method", false, false, false, 61))]]);
} else {
// line 63
$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); })()))]);
// line 64
echo " ";
}
// line 65
echo "
";
// line 67
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb_item"]) {
// line 68
echo " <li class=\"";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 68)) {
echo "last-crumb";
}
echo "\" property=\"itemListElement\" typeof=\"ListItem\">
";
// line 69
if (( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 69) && twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "uri", [], "any", true, true, false, 69))) {
// line 70
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "uri", [], "any", false, false, false, 70), "html", null, true);
echo "\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "label", [], "any", false, false, false, 70), "html", null, true);
echo "</span></a>
";
} else {
// line 72
echo " <span ";
((twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "classname", [], "any", true, true, false, 72)) ? (print (twig_escape_filter($this->env, ("class=" . twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "classname", [], "any", false, false, false, 72)), "html", null, true))) : (print ("")));
echo " property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_item"], "label", [], "any", false, false, false, 72), "html", null, true);
echo "</span>
";
}
// line 74
echo " <meta property=\"position\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 74), "html", null, true);
echo "\">
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb_item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
echo " </ul>
";
}
} else {
// line 80
echo "
";
// line 81
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
(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()))) {
// line 83
echo " ";
// line 84
echo " ";
$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", false, false, false, 84)])]]) : ([["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", false, false, false, 84), "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", false, false, false, 84)])]]));
// line 85
echo " ";
$context["children"] = (isset($context["main"]) || array_key_exists("main", $context) ? $context["main"] : (function () { throw new RuntimeError('Variable "main" does not exist.', 85, $this->source); })());
// line 86
echo " <ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
<li property=\"itemListElement\" typeof=\"ListItem\">
<a href=\"";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 88), "html", null, true);
echo "\" class=\"std-hover-link\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 88), "html", null, true);
echo "</span></a>
<meta property=\"position\" content=\"0\">
</li>
<li property=\"itemListElement\" typeof=\"ListItem\">
<span property=\"name\">";
// line 92
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 92, $this->source); })())), "label", [], "any", false, false, false, 92), "html", null, true);
echo "</span>
<meta property=\"position\" content=\"1\">
</li>
</ul>
";
}
}
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "_menu/breadcrumbs.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{%- set route = app.request.attributes.get('_route') -%}
{%- set city = app.request.attributes.get('city') ?? null -%}
{%- set locale = app.request.locale ?? 'ru' -%}
{%- set isMainCity = city == default_city() -%}
{%- if item.children|length > 1 -%}
{# Перегоняем в индексированный массив #}
{% set children = [] %}
{% for breadcrumb_item in item.children %}
{% set children = children|merge([breadcrumb_item]) %}
{% endfor %}
{% if route == 'profile_preview.page' %}
{% set profile = options.profile ?? null %}
{% set station = profile.stations|length ? profile.stations[0] : null %}
{#{% 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})}] %}#}
{% set main = isMainCity ? [{label: 'Главная', uri: path('profile_list.list_by_city', {city: city.uriIdentity})}]
: [
{label: 'Главная', uri: path('homepage')},
{label: 'Проститутки ' ~ city.name|geo_name('genitive'), uri: path('profile_list.list_by_city',
{city: city.uriIdentity})}
] %}
{% if station and station.district and station.district.county %}
{% 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})}]) %}
{% endif %}
{% if station and station.district %}
{% set main = main|merge([{label: station.district.name|trans, uri: path('profile_list.list_by_district', {city: city.uriIdentity, district: station.district.uriIdentity})}]) %}
{% endif %}
{% if profile and station %}
{% set main = main|merge([{label: station.name|trans , uri: path('profile_list.list_by_station', {city: city.uriIdentity, station: station.uriIdentity})}]) %}
{% endif %}
{% set children = main|merge([children|last]) %}
<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
{% for breadcrumb_item in children %}
<li class=\"{% if loop.last %}last-crumb{% endif %}\" property=\"itemListElement\" typeof=\"ListItem\">
{% if not loop.last %}
<a href=\"{{ breadcrumb_item.uri }}\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ breadcrumb_item.label }}</span></a>
{% else %}
<span property=\"name\">{{ breadcrumb_item.label }}, {{ profile.personParameters.age|plural('год') }} ID {{ profile.id }}</span>
{% endif %}
<meta property=\"position\" content=\"{{ loop.index }}\">
</li>
{% endfor %}
</ul>
{% else %}
{%- set isProfileList = ('profile_list.' in route) and ('_pagination' in route) -%}
<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
{# Делаем првый элемент \"Главная\", второй - город #}
{#{% 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})}] %}#}
{% 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})}] %}
{% if 'profile_list.list_by_station' in route %}
{% set main = main|merge([{label: 'Метро' , uri: path('station_list.page', {city: city.uriIdentity})}]) %}
{% endif %}
{# Только для листинга С ПАГИНАЦИЕЙ #}
{%- if isProfileList -%}
{% set children = main|merge([{label: children|last.name, uri: path(route|replace({'._pagination': ''}), {city: city.uriIdentity})}]) %}
{% set children = children|merge([{label: 'Страница ' ~ app.request.get('page')}]) %}
{%- else -%}
{% set children = main|merge([children|last]) %}
{% endif %}
{% for breadcrumb_item in children %}
<li class=\"{% if loop.last %}last-crumb{% endif %}\" property=\"itemListElement\" typeof=\"ListItem\">
{% if not loop.last and breadcrumb_item.uri is defined %}
<a href=\"{{ breadcrumb_item.uri }}\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ breadcrumb_item.label }}</span></a>
{% else %}
<span {{ breadcrumb_item.classname is defined ? 'class=' ~ breadcrumb_item.classname : '' }} property=\"name\">{{ breadcrumb_item.label }}</span>
{% endif %}
<meta property=\"position\" content=\"{{ loop.index }}\">
</li>
{% endfor %}
</ul>
{% endif %}
{% else %}
{% if (route == 'profile_list.list_by_city' or route == 'profile_list.list_by_city._pagination')
and city != default_city() %}
{#{% 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})}] %}#}
{% 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})}] %}
{% set children = main %}
<ul class=\"breadcrumbs\" vocab=\"http://schema.org/\" typeof=\"BreadcrumbList\">
<li property=\"itemListElement\" typeof=\"ListItem\">
<a href=\"{{ (children|first).uri }}\" class=\"std-hover-link\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ (children|first).label }}</span></a>
<meta property=\"position\" content=\"0\">
</li>
<li property=\"itemListElement\" typeof=\"ListItem\">
<span property=\"name\">{{ (children|last).label }}</span>
<meta property=\"position\" content=\"1\">
</li>
</ul>
{% endif %}
{% endif %}
", "_menu/breadcrumbs.html.twig", "/app/templates/_menu/breadcrumbs.html.twig");
}
}