<?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;
/* Map/page.html.twig */
class __TwigTemplate_a28a045d3be3f3299f645cdfe29370c8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'stylesheet' => [$this, 'block_stylesheet'],
'name_page' => [$this, 'block_name_page'],
'bodyClasses' => [$this, 'block_bodyClasses'],
'mainContainer' => [$this, 'block_mainContainer'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$this->parent = $this->loadTemplate("grid.html.twig", "Map/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 7
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 8
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 11
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 12
echo " ";
$this->displayParentBlock("stylesheet", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 16
public function block_name_page($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
echo "map";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 17
public function block_bodyClasses($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
echo "map-page";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 18
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 19
echo " ";
if ((array_key_exists("city", $context) && twig_get_attribute($this->env, $this->source, 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.', 19, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 19), "latitude", [], "any", false, false, false, 19))) {
// line 20
echo " ";
$context["coordss"] = 1;
// line 21
echo " ";
$context["lat"] = twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 21), "latitude", [], "any", false, false, false, 21);
// line 22
echo " ";
$context["lon"] = twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 22), "longitude", [], "any", false, false, false, 22);
// line 23
echo " ";
} else {
// line 24
echo " ";
$context["coordss"] = 0;
// line 25
echo " ";
$context["lat"] = "55.75";
// line 26
echo " ";
$context["lon"] = "37.61";
// line 27
echo " ";
}
// line 28
echo "
<h1 class=\"border-line\">";
// line 29
if (twig_test_empty($this->extensions['App\Twig\SeoExtension']->pageHeading())) {
echo "%Интим карта";
} else {
echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
}
echo "</h1>
<p class=\"text-desc mb-lg-4\">
На карте обозначено местоположение зарегистрированных анкет.<br>
Кликнув на маркер Вы узнаете краткую информацию о девушке.
</p>
<div class=\"map\">
<div class=\"filter-line d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
<button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
<svg class=\"icon mr-1\">
<use xlink:href=\"#icon-dropdown\"></use>
</svg>
Расширенный поиск
</button>
<div class=\"d-flex align-items-center collapse-reset ml-2\">
<span class=\"d-none\" id=\"count-parameters\">Выбрано <em>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset=\"true\">Сброс</button>
</div>
</div>
<div class=\"collapse\" id=\"collapseFilter\">
</div>
<div class=\"map-wrap loading\" id=\"map-wrap\" style=\"width: 100%; height: 700px;\">
</div>
</div>
";
// line 54
echo "\t";
echo twig_include($this->env, $context, "components/seo.partial.twig", ["type" => "top"]);
echo "
\t";
// line 55
echo twig_include($this->env, $context, "components/seo.partial.twig", ["type" => "bottom"]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 59
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 60
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 62
if ((array_key_exists("city", $context) && twig_get_attribute($this->env, $this->source, 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.', 62, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 62), "latitude", [], "any", false, false, false, 62))) {
// line 63
echo "\t\t";
$context["lat"] = twig_get_attribute($this->env, $this->source, 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.', 63, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 63), "latitude", [], "any", false, false, false, 63);
// line 64
echo "\t\t";
$context["lon"] = twig_get_attribute($this->env, $this->source, 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.', 64, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 64), "longitude", [], "any", false, false, false, 64);
// line 65
echo "\t";
} else {
// line 66
echo "\t\t";
$context["lat"] = "55.753215";
// line 67
echo "\t\t";
$context["lon"] = "37.622504";
// line 68
echo "\t";
}
// line 69
echo "
\t<script src=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\" defer></script>
\t<script src=\"";
// line 71
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\" defer></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
const mapConfig = {
\t\t\tid:\"map-wrap\",
\t\t\tmultiple_cities:\"";
// line 77
echo twig_escape_filter($this->env, (isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 77, $this->source); })()), "html", null, true);
echo "\",
\t\t\troutes_url: \"";
// line 78
echo ((((isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 78, $this->source); })()) == 0)) ? ("/js/fos_js_routes.json") : ("/js/fos_js_routes_city_prefixed.json"));
echo "\",
\t\t\tcity_uri_identity:\"";
// line 79
echo twig_escape_filter($this->env, (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 79, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_latitude:\"";
// line 80
echo twig_escape_filter($this->env, (isset($context["lat"]) || array_key_exists("lat", $context) ? $context["lat"] : (function () { throw new RuntimeError('Variable "lat" does not exist.', 80, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_longitude:\"";
// line 81
echo twig_escape_filter($this->env, (isset($context["lon"]) || array_key_exists("lon", $context) ? $context["lon"] : (function () { throw new RuntimeError('Variable "lon" does not exist.', 81, $this->source); })()), "html", null, true);
echo "\",
\t\t\tlocale:\"";
// line 82
echo twig_escape_filter($this->env, 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.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "locale", [], "any", false, false, false, 82), "html", null, true);
echo "\",
\t\t\tpath:\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.filter", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 83, $this->source); })())]), "html", null, true);
echo "\",
\t\t\ticon_profile:\"";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile.svg"), "html", null, true);
echo "\",
\t\t\ticon_profile_active:\"";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_profile_hover:\"";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon:\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon_active:\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon_hover:\"";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur:\"";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur_active:\"";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur_hover:\"";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_small:\"";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-small.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_medium:\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-medium.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_big:\"";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-big.svg"), "html", null, true);
echo "\",
\t\t\tavatar_path : \"";
// line 101
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "profile_media_avatar", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tphoto_path : \"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "profile_media", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tthumb_path : \"";
// line 103
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "saloon_media_thumb", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tprocess_profile_shows_url : \"";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.increment_profile_shows", (((isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 104, $this->source); })())) ? (["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 104, $this->source); })())]) : ([]))), "html", null, true);
echo "\"
\t\t};
\t\tvar isMapInitialized = false;
\t\tvar yaMapLoaded = false;
\t\tfunction initMap() {
\t\t\t//console.log('initMap');
\t\t\twindow.ymap = new ym.Map(document.getElementById('map-wrap'), {
\t\t\t\tcenter: [\"";
// line 112
echo twig_escape_filter($this->env, (isset($context["lat"]) || array_key_exists("lat", $context) ? $context["lat"] : (function () { throw new RuntimeError('Variable "lat" does not exist.', 112, $this->source); })()), "html", null, true);
echo "\", \"";
echo twig_escape_filter($this->env, (isset($context["lon"]) || array_key_exists("lon", $context) ? $context["lon"] : (function () { throw new RuntimeError('Variable "lon" does not exist.', 112, $this->source); })()), "html", null, true);
echo "\"],
\t\t\t\tzoom: 8,
\t\t\t\tcontrols: ['zoomControl', 'typeSelector', 'fullscreenControl']
\t\t\t});
\t\t\tyaMapLoaded = true;
\t\t\t//if (!isMapInitialized) {
\t\t\t//\tconsole.log('new mapPage initMap');
\t\t\t//\tisMapInitialized = true;
\t\t\t//\tnew MapPage(mapConfig);
\t\t\t//}
\t\t}
\t\twindow.profileShowed = function ({id}) {
\t\t\tif (!id) return;
\t\t\tfetch('";
// line 127
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_shows");
echo "', {
\t\t\t\tmethod: \"POST\",
\t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
\t\t\t});
\t\t}
window.stations = {";
// line 134
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\StationsExtension']->stations());
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["station"], "id", [], "any", false, false, false, 134), "html", null, true);
echo ":{icon:`";
$this->loadTemplate("components/metro/icon_generate.partial.twig", "Map/page.html.twig", 134)->display(twig_array_merge($context, ["data" => $this->extensions['App\Twig\StationsExtension']->stationLines($context["station"])]));
echo "`,name:`";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["station"], "name", [], "any", false, false, false, 134), "html", null, true);
echo "`},";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 135
echo "};
document.addEventListener('DOMContentLoaded', function () {
\t\t\tfunction loadForm() {
\t\t\t\tfetch('";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.form", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 139, $this->source); })())]), "html", null, true);
echo "', {
\t\t\t\t\tmode: \"cors\",
\t\t\t\t\timportance: \"low\",
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
\t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
\t\t\t\t\t},
\t\t\t\t}).then(response => {
\t\t\t\t\tif (response.status < 300) {
\t\t\t\t\t\treturn response.text();
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.warn(\"🤔\");
\t\t\t\t\t\treturn null;
\t\t\t\t\t}
\t\t\t\t}).then(response => {
\t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
\t\t\t\t\tfilterLoader()
\t\t\t\t});
\t\t\t}
\t\t\tloadForm();
\t\t\tfunction filterLoader() {
\t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\"}`;
\t\t\t\tfetch(\"";
// line 164
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.filter", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 164, $this->source); })())]), "html", null, true);
echo "\", {
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
\t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
\t\t\t\t\t},
\t\t\t\t\tbody: new URLSearchParams({ form: stringifyData }).toString(),
\t\t\t\t})
\t\t\t\t\t.then(response => response.json())
\t\t\t\t\t.then(data => {
\t\t\t\t\t\t//console.log('map-data-loaded')
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (yaMapLoaded) {
\t\t\t\t\t\t\t\tnew MapPage(mapConfig);
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData } }));
\t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}, 200)
\t\t\t\t\t})
\t\t\t\t\t.catch(error => console.error(error));
\t\t\t\t//if (!isMapInitialized) {
\t\t\t\t//\tconsole.log('new mapPage filterLoader');
\t\t\t\t//\tisMapInitialized = true;
\t\t\t\t//\tnew MapPage(mapConfig);
\t\t\t\t//}
\t\t\t}
\t\t})
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Map/page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 559 => 164, 531 => 139, 525 => 135, 490 => 134, 481 => 127, 461 => 112, 450 => 104, 446 => 103, 442 => 102, 438 => 101, 433 => 99, 429 => 98, 425 => 97, 420 => 95, 416 => 94, 412 => 93, 407 => 91, 403 => 90, 399 => 89, 394 => 87, 390 => 86, 386 => 85, 381 => 83, 377 => 82, 373 => 81, 369 => 80, 365 => 79, 361 => 78, 357 => 77, 348 => 71, 344 => 70, 341 => 69, 338 => 68, 335 => 67, 332 => 66, 329 => 65, 326 => 64, 323 => 63, 321 => 62, 315 => 60, 302 => 59, 287 => 55, 282 => 54, 251 => 29, 248 => 28, 245 => 27, 242 => 26, 239 => 25, 236 => 24, 233 => 23, 230 => 22, 227 => 21, 224 => 20, 221 => 19, 208 => 18, 183 => 17, 158 => 16, 141 => 12, 128 => 11, 112 => 8, 99 => 7, 83 => 4, 70 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% block title %}
{{ seo_title() }}
{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block stylesheet %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
{% endblock %}
{% block name_page %}map{% endblock %}
{% block bodyClasses %}map-page{% endblock %}
{% block mainContainer %}
{% if city is defined and city.mapCoordinate.latitude %}
{% set coordss = 1 %}
{% set lat = city.mapCoordinate.latitude %}
{% set lon = city.mapCoordinate.longitude %}
{% else %}
{% set coordss = 0 %}
{% set lat = '55.75' %}
{% set lon = '37.61' %}
{% endif %}
<h1 class=\"border-line\">{% if seo_heading() is empty %}%Интим карта{% else %}{{ seo_heading() }}{% endif %}</h1>
<p class=\"text-desc mb-lg-4\">
На карте обозначено местоположение зарегистрированных анкет.<br>
Кликнув на маркер Вы узнаете краткую информацию о девушке.
</p>
<div class=\"map\">
<div class=\"filter-line d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
<button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
<svg class=\"icon mr-1\">
<use xlink:href=\"#icon-dropdown\"></use>
</svg>
Расширенный поиск
</button>
<div class=\"d-flex align-items-center collapse-reset ml-2\">
<span class=\"d-none\" id=\"count-parameters\">Выбрано <em>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset=\"true\">Сброс</button>
</div>
</div>
<div class=\"collapse\" id=\"collapseFilter\">
</div>
<div class=\"map-wrap loading\" id=\"map-wrap\" style=\"width: 100%; height: 700px;\">
</div>
</div>
{# {{ include('components/big_footer.html.twig', { 'type': 'main' }) }} #}
\t{{ include('components/seo.partial.twig', {type: 'top'}) }}
\t{{ include('components/seo.partial.twig', {type: 'bottom'}) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% if city is defined and city.mapCoordinate.latitude %}
\t\t{% set lat = city.mapCoordinate.latitude %}
\t\t{% set lon = city.mapCoordinate.longitude %}
\t{% else %}
\t\t{% set lat = '55.753215' %}
\t\t{% set lon = '37.622504' %}
\t{% endif %}
\t<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\" defer></script>
\t<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\" defer></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
const mapConfig = {
\t\t\tid:\"map-wrap\",
\t\t\tmultiple_cities:\"{{ multipleCities }}\",
\t\t\troutes_url: \"{{ multipleCities == 0 ? '/js/fos_js_routes.json' : '/js/fos_js_routes_city_prefixed.json' }}\",
\t\t\tcity_uri_identity:\"{{ cityUriIdentity }}\",
\t\t\tcity_latitude:\"{{ lat }}\",
\t\t\tcity_longitude:\"{{ lon }}\",
\t\t\tlocale:\"{{ app.request.locale }}\",
\t\t\tpath:\"{{ path('map.filter', {city:cityUriIdentity}) }}\",
\t\t\ticon_profile:\"{{ asset('assets/images/map/profile.svg') }}\",
\t\t\ticon_profile_active:\"{{ asset('assets/images/map/profile-active.svg') }}\",
\t\t\ticon_profile_hover:\"{{ asset('assets/images/map/profile-hover.svg') }}\",
\t\t\ticon_saloon:\"{{ asset('assets/images/map/saloon.svg') }}\",
\t\t\ticon_saloon_active:\"{{ asset('assets/images/map/saloon-active.svg') }}\",
\t\t\ticon_saloon_hover:\"{{ asset('assets/images/map/saloon-hover.svg') }}\",
\t\t\ticon_masseur:\"{{ asset('assets/images/map/masseur.svg') }}\",
\t\t\ticon_masseur_active:\"{{ asset('assets/images/map/masseur-active.svg') }}\",
\t\t\ticon_masseur_hover:\"{{ asset('assets/images/map/masseur-hover.svg') }}\",
\t\t\ticon_cluster_small:\"{{ asset('assets/images/map/cluster-small.svg') }}\",
\t\t\ticon_cluster_medium:\"{{ asset('assets/images/map/cluster-medium.svg') }}\",
\t\t\ticon_cluster_big:\"{{ asset('assets/images/map/cluster-big.svg') }}\",
\t\t\tavatar_path : \"{{ responsive_asset('replace_path', 'profile_media_avatar', \"200x280\", \"jpg\") }}\",
\t\t\tphoto_path : \"{{ responsive_asset('replace_path', 'profile_media', \"200x280\", \"jpg\") }}\",
\t\t\tthumb_path : \"{{ responsive_asset('replace_path', 'saloon_media_thumb', \"200x280\", \"jpg\") }}\",
\t\t\tprocess_profile_shows_url : \"{{ path('map.increment_profile_shows', multipleCities ? {city:cityUriIdentity} : {}) }}\"
\t\t};
\t\tvar isMapInitialized = false;
\t\tvar yaMapLoaded = false;
\t\tfunction initMap() {
\t\t\t//console.log('initMap');
\t\t\twindow.ymap = new ym.Map(document.getElementById('map-wrap'), {
\t\t\t\tcenter: [\"{{ lat }}\", \"{{ lon }}\"],
\t\t\t\tzoom: 8,
\t\t\t\tcontrols: ['zoomControl', 'typeSelector', 'fullscreenControl']
\t\t\t});
\t\t\tyaMapLoaded = true;
\t\t\t//if (!isMapInitialized) {
\t\t\t//\tconsole.log('new mapPage initMap');
\t\t\t//\tisMapInitialized = true;
\t\t\t//\tnew MapPage(mapConfig);
\t\t\t//}
\t\t}
\t\twindow.profileShowed = function ({id}) {
\t\t\tif (!id) return;
\t\t\tfetch('{{ path('profile_ctr.increase_shows') }}', {
\t\t\t\tmethod: \"POST\",
\t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
\t\t\t});
\t\t}
window.stations = {
\t\t\t{%- for station in stations() -%}{{- station.id -}}:{icon:`{%- include 'components/metro/icon_generate.partial.twig' with {data: station|station_lines} -%}`,name:`{{- station.name -}}`},{%- endfor -%}
\t\t};
document.addEventListener('DOMContentLoaded', function () {
\t\t\tfunction loadForm() {
\t\t\t\tfetch('{{ path('map.form', {city: cityUriIdentity}) }}', {
\t\t\t\t\tmode: \"cors\",
\t\t\t\t\timportance: \"low\",
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
\t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
\t\t\t\t\t},
\t\t\t\t}).then(response => {
\t\t\t\t\tif (response.status < 300) {
\t\t\t\t\t\treturn response.text();
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.warn(\"🤔\");
\t\t\t\t\t\treturn null;
\t\t\t\t\t}
\t\t\t\t}).then(response => {
\t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
\t\t\t\t\tfilterLoader()
\t\t\t\t});
\t\t\t}
\t\t\tloadForm();
\t\t\tfunction filterLoader() {
\t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\"}`;
\t\t\t\tfetch(\"{{ path('map.filter', {city:cityUriIdentity}) }}\", {
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
\t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
\t\t\t\t\t},
\t\t\t\t\tbody: new URLSearchParams({ form: stringifyData }).toString(),
\t\t\t\t})
\t\t\t\t\t.then(response => response.json())
\t\t\t\t\t.then(data => {
\t\t\t\t\t\t//console.log('map-data-loaded')
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (yaMapLoaded) {
\t\t\t\t\t\t\t\tnew MapPage(mapConfig);
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData } }));
\t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}, 200)
\t\t\t\t\t})
\t\t\t\t\t.catch(error => console.error(error));
\t\t\t\t//if (!isMapInitialized) {
\t\t\t\t//\tconsole.log('new mapPage filterLoader');
\t\t\t\t//\tisMapInitialized = true;
\t\t\t\t//\tnew MapPage(mapConfig);
\t\t\t\t//}
\t\t\t}
\t\t})
\t</script>
{% endblock %}", "Map/page.html.twig", "/app/templates/Map/page.html.twig");
}
}