var/cache/review/twig/fe/fe6ae84e185bac133a8df8c62c15d6de.php line 70

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. /* Map/page.html.twig */
  14. class __TwigTemplate_a28a045d3be3f3299f645cdfe29370c8 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'stylesheet' => [$this'block_stylesheet'],
  26.             'name_page' => [$this'block_name_page'],
  27.             'bodyClasses' => [$this'block_bodyClasses'],
  28.             'mainContainer' => [$this'block_mainContainer'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "grid.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  41.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Map/page.html.twig"));
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Map/page.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Map/page.html.twig"));
  46.         $this->parent $this->loadTemplate("grid.html.twig""Map/page.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 3
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  60.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         // line 4
  66.         echo "    ";
  67.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaTitle(), "html"nulltrue);
  68.         echo "
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.         
  75.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  76.     }
  77.     // line 7
  78.     public function block_metaDescription($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  82.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  87.         // line 8
  88.         echo "    <meta name=\"description\" content=\"";
  89.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaDescription(), "html"nulltrue);
  90.         echo "\">
  91. ";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.         
  97.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  98.     }
  99.     // line 11
  100.     public function block_stylesheet($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  104.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  109.         // line 12
  110.         echo "    ";
  111.         $this->displayParentBlock("stylesheet"$context$blocks);
  112.         echo "
  113.     <link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
  114. ";
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.         
  120.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  121.     }
  122.     // line 16
  123.     public function block_name_page($context, array $blocks = [])
  124.     {
  125.         $macros $this->macros;
  126.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  127.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""name_page"));
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""name_page"));
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""name_page"));
  132.         echo "map";
  133.         
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135.         
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137.         
  138.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  139.     }
  140.     // line 17
  141.     public function block_bodyClasses($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  145.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClasses"));
  150.         echo "map-page";
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.         
  156.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  157.     }
  158.     // line 18
  159.     public function block_mainContainer($context, array $blocks = [])
  160.     {
  161.         $macros $this->macros;
  162.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  163.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  168.         // line 19
  169.         echo "    ";
  170.         if ((array_key_exists("city"$context) && twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse19), "latitude", [], "any"falsefalsefalse19))) {
  171.             // line 20
  172.             echo "        ";
  173.             $context["coordss"] = 1;
  174.             // line 21
  175.             echo "        ";
  176.             $context["lat"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse21), "latitude", [], "any"falsefalsefalse21);
  177.             // line 22
  178.             echo "        ";
  179.             $context["lon"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse22), "longitude", [], "any"falsefalsefalse22);
  180.             // line 23
  181.             echo "    ";
  182.         } else {
  183.             // line 24
  184.             echo "        ";
  185.             $context["coordss"] = 0;
  186.             // line 25
  187.             echo "        ";
  188.             $context["lat"] = "55.75";
  189.             // line 26
  190.             echo "        ";
  191.             $context["lon"] = "37.61";
  192.             // line 27
  193.             echo "    ";
  194.         }
  195.         // line 28
  196.         echo "
  197.     <h1 class=\"border-line\">";
  198.         // line 29
  199.         if (twig_test_empty($this->extensions['App\Twig\SeoExtension']->pageHeading())) {
  200.             echo "%Интим карта";
  201.         } else {
  202.             echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
  203.         }
  204.         echo "</h1>
  205.     <p class=\"text-desc mb-lg-4\">
  206.         На карте обозначено местоположение зарегистрированных анкет.<br>
  207.         Кликнув на маркер Вы узнаете краткую информацию о девушке.
  208.     </p>
  209.     <div class=\"map\">
  210.         <div class=\"filter-line d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
  211.             <button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
  212.                 <svg class=\"icon mr-1\">
  213.                     <use xlink:href=\"#icon-dropdown\"></use>
  214.                 </svg>
  215.                 Расширенный поиск
  216.             </button>
  217.             <div class=\"d-flex align-items-center collapse-reset ml-2\">
  218.                 <span class=\"d-none\" id=\"count-parameters\">Выбрано <em>0</em> параметров</span>
  219.                 <button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset=\"true\">Сброс</button>
  220.             </div>
  221.         </div>
  222.         <div class=\"collapse\" id=\"collapseFilter\">
  223.         </div>
  224.         <div class=\"map-wrap loading\" id=\"map-wrap\" style=\"width: 100%; height: 700px;\">
  225.         </div>
  226.     </div>
  227. \t";
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.         
  233.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  234.     }
  235.     // line 58
  236.     public function block_javascripts($context, array $blocks = [])
  237.     {
  238.         $macros $this->macros;
  239.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  240.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  245.         // line 59
  246.         echo "    ";
  247.         $this->displayParentBlock("javascripts"$context$blocks);
  248.         echo "
  249.     ";
  250.         // line 61
  251.         if ((array_key_exists("city"$context) && twig_get_attribute($this->env$this->sourcetwig_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.'61$this->source); })()), "mapCoordinate", [], "any"falsefalsefalse61), "latitude", [], "any"falsefalsefalse61))) {
  252.             // line 62
  253.             echo "\t\t";
  254.             $context["lat"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse62), "latitude", [], "any"falsefalsefalse62);
  255.             // line 63
  256.             echo "\t\t";
  257.             $context["lon"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse63), "longitude", [], "any"falsefalsefalse63);
  258.             // line 64
  259.             echo "\t";
  260.         } else {
  261.             // line 65
  262.             echo "\t\t";
  263.             $context["lat"] = "55.753215";
  264.             // line 66
  265.             echo "\t\t";
  266.             $context["lon"] = "37.622504";
  267.             // line 67
  268.             echo "\t";
  269.         }
  270.         // line 68
  271.         echo "
  272. \t<script src=\"";
  273.         // line 69
  274.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html"nulltrue);
  275.         echo "\" defer></script>
  276. \t<script src=\"";
  277.         // line 70
  278.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  279.         echo "\" defer></script>
  280. \t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
  281. \t<script>
  282.         window.mapConfig = {
  283. \t\t\tid:\"map-wrap\",
  284. \t\t\tmultiple_cities:\"";
  285.         // line 76
  286.         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.'76$this->source); })()), "html"nulltrue);
  287.         echo "\",
  288. \t\t\troutes_url: \"";
  289.         // line 77
  290.         echo ((((isset($context["multipleCities"]) || array_key_exists("multipleCities"$context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.'77$this->source); })()) == 0)) ? ("/js/fos_js_routes.json") : ("/js/fos_js_routes_city_prefixed.json"));
  291.         echo "\",
  292. \t\t\tcity_uri_identity:\"";
  293.         // line 78
  294.         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.'78$this->source); })()), "html"nulltrue);
  295.         echo "\",
  296. \t\t\tcity_latitude:\"";
  297.         // line 79
  298.         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.'79$this->source); })()), "html"nulltrue);
  299.         echo "\",
  300. \t\t\tcity_longitude:\"";
  301.         // line 80
  302.         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.'80$this->source); })()), "html"nulltrue);
  303.         echo "\",
  304. \t\t\tlocale:\"";
  305.         // line 81
  306.         echo twig_escape_filter($this->envtwig_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.'81$this->source); })()), "request", [], "any"falsefalsefalse81), "locale", [], "any"falsefalsefalse81), "html"nulltrue);
  307.         echo "\",
  308. \t\t\tpath:\"";
  309.         // line 82
  310.         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.'82$this->source); })())]), "html"nulltrue);
  311.         echo "\",
  312. \t\t\tdetail: \"";
  313.         // line 83
  314.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.detail", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity"$context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.'83$this->source); })())]), "html"nulltrue);
  315.         echo "\",
  316. \t\t\tavatar_path : \"";
  317.         // line 85
  318.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""profile_media_avatar""200x280""jpg"), "html"nulltrue);
  319.         echo "\",
  320. \t\t\tphoto_path : \"";
  321.         // line 86
  322.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""profile_media""200x280""jpg"), "html"nulltrue);
  323.         echo "\",
  324. \t\t\tthumb_path : \"";
  325.         // line 87
  326.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""saloon_media_thumb""200x280""jpg"), "html"nulltrue);
  327.         echo "\",
  328. \t\t\tprocess_profile_shows_url  : \"";
  329.         // line 88
  330.         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.'88$this->source); })())) ? (["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity"$context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.'88$this->source); })())]) : ([]))), "html"nulltrue);
  331.         echo "\"
  332. \t\t};
  333. \t\twindow.isMapInitialized = false;
  334. \t\twindow.isYMapLoaded = false;
  335. \t\tfunction initMap() {
  336. \t\t\twindow.ymaps = ym;
  337. \t\t\twindow.isMapInitialized = true;
  338. \t\t\twindow.isYMapLoaded = true;
  339. \t\t}
  340. \t\twindow.profileShowed = function ({id}) {
  341. \t\t\tif (!id) return;
  342. \t\t\tfetch('";
  343.         // line 101
  344.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_shows");
  345.         echo "', {
  346. \t\t\t\tmethod: \"POST\",
  347. \t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
  348. \t\t\t});
  349. \t\t}
  350.         window.stations = {";
  351.         // line 108
  352.         $context['_parent'] = $context;
  353.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\StationsExtension']->stations());
  354.         $context['loop'] = [
  355.           'parent' => $context['_parent'],
  356.           'index0' => 0,
  357.           'index'  => 1,
  358.           'first'  => true,
  359.         ];
  360.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  361.             $length count($context['_seq']);
  362.             $context['loop']['revindex0'] = $length 1;
  363.             $context['loop']['revindex'] = $length;
  364.             $context['loop']['length'] = $length;
  365.             $context['loop']['last'] = === $length;
  366.         }
  367.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  368.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["station"], "id", [], "any"falsefalsefalse108), "html"nulltrue);
  369.             echo ":{icon:`";
  370.             $this->loadTemplate("components/metro/icon_generate.partial.twig""Map/page.html.twig"108)->display(twig_array_merge($context, ["data" => $this->extensions['App\Twig\StationsExtension']->stationLines($context["station"])]));
  371.             echo "`,name:`";
  372.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse108), "html"nulltrue);
  373.             echo "`},";
  374.             ++$context['loop']['index0'];
  375.             ++$context['loop']['index'];
  376.             $context['loop']['first'] = false;
  377.             if (isset($context['loop']['length'])) {
  378.                 --$context['loop']['revindex0'];
  379.                 --$context['loop']['revindex'];
  380.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  381.             }
  382.         }
  383.         $_parent $context['_parent'];
  384.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  385.         $context array_intersect_key($context$_parent) + $_parent;
  386.         // line 109
  387.         echo "};
  388.         document.addEventListener('DOMContentLoaded', function () {
  389. \t\t\tfunction loadForm() {
  390. \t\t\t\tfetch('";
  391.         // line 113
  392.         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.'113$this->source); })())]), "html"nulltrue);
  393.         echo "', {
  394. \t\t\t\t\tmode: \"cors\",
  395. \t\t\t\t\timportance: \"low\",
  396. \t\t\t\t\tmethod: \"POST\",
  397. \t\t\t\t\theaders: {
  398. \t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
  399. \t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
  400. \t\t\t\t\t},
  401. \t\t\t\t}).then(response => {
  402. \t\t\t\t\tif (response.status < 300) {
  403. \t\t\t\t\t\treturn response.text();
  404. \t\t\t\t\t} else {
  405. \t\t\t\t\t\tconsole.warn(\"🤔\");
  406. \t\t\t\t\t\treturn null;
  407. \t\t\t\t\t}
  408. \t\t\t\t}).then(response => {
  409. \t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
  410. \t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
  411. \t\t\t\t\tfilterLoader()
  412. \t\t\t\t});
  413. \t\t\t}
  414. \t\t\tloadForm();
  415. \t\t\tfunction filterLoader() {
  416. \t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\",\"scale\":10}`;
  417. \t\t\t\tfetch(\"";
  418.         // line 139
  419.         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.'139$this->source); })())]), "html"nulltrue);
  420.         echo "\", {
  421. \t\t\t\t\tmethod: \"POST\",
  422. \t\t\t\t\theaders: {
  423. \t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  424. \t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
  425. \t\t\t\t\t},
  426. \t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
  427. \t\t\t\t})
  428. \t\t\t\t\t.then(response => response.json())
  429. \t\t\t\t\t.then(data => {
  430. \t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
  431. \t\t\t\t\t\t\tif (window.isYMapLoaded) {
  432. \t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
  433. \t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
  434. \t\t\t\t\t\t\t}
  435. \t\t\t\t\t\t}, 200)
  436. \t\t\t\t\t})
  437. \t\t\t\t\t.catch(error => console.error(error));
  438. \t\t\t}
  439. \t\t})
  440. \t</script>
  441.     ";
  442.         // line 163
  443.         echo "    ";
  444.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("scripts/map-page-2026"null"basicConfig");
  445.         echo "
  446. ";
  447.         
  448.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  449.         
  450.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  451.         
  452.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  453.     }
  454.     /**
  455.      * @codeCoverageIgnore
  456.      */
  457.     public function getTemplateName()
  458.     {
  459.         return "Map/page.html.twig";
  460.     }
  461.     /**
  462.      * @codeCoverageIgnore
  463.      */
  464.     public function isTraitable()
  465.     {
  466.         return false;
  467.     }
  468.     /**
  469.      * @codeCoverageIgnore
  470.      */
  471.     public function getDebugInfo()
  472.     {
  473.         return array (  514 => 163,  488 => 139,  459 => 113,  453 => 109,  418 => 108,  409 => 101,  393 => 88,  389 => 87,  385 => 86,  381 => 85,  376 => 83,  372 => 82,  368 => 81,  364 => 80,  360 => 79,  356 => 78,  352 => 77,  348 => 76,  339 => 70,  335 => 69,  332 => 68,  329 => 67,  326 => 66,  323 => 65,  320 => 64,  317 => 63,  314 => 62,  312 => 61,  306 => 59,  293 => 58,  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,);
  474.     }
  475.     public function getSourceContext()
  476.     {
  477.         return new Source("{% extends 'grid.html.twig' %}
  478. {% block title %}
  479.     {{ seo_title() }}
  480. {% endblock %}
  481. {% block metaDescription %}
  482.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  483. {% endblock %}
  484. {% block stylesheet %}
  485.     {{ parent() }}
  486.     <link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
  487. {% endblock %}
  488. {% block name_page %}map{% endblock %}
  489. {% block bodyClasses %}map-page{% endblock %}
  490. {% block mainContainer %}
  491.     {% if city is defined and city.mapCoordinate.latitude %}
  492.         {% set coordss = 1 %}
  493.         {% set lat = city.mapCoordinate.latitude %}
  494.         {% set lon = city.mapCoordinate.longitude %}
  495.     {% else %}
  496.         {% set coordss = 0 %}
  497.         {% set lat = '55.75' %}
  498.         {% set lon = '37.61' %}
  499.     {% endif %}
  500.     <h1 class=\"border-line\">{% if seo_heading() is empty %}%Интим карта{% else %}{{ seo_heading() }}{% endif %}</h1>
  501.     <p class=\"text-desc mb-lg-4\">
  502.         На карте обозначено местоположение зарегистрированных анкет.<br>
  503.         Кликнув на маркер Вы узнаете краткую информацию о девушке.
  504.     </p>
  505.     <div class=\"map\">
  506.         <div class=\"filter-line d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
  507.             <button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
  508.                 <svg class=\"icon mr-1\">
  509.                     <use xlink:href=\"#icon-dropdown\"></use>
  510.                 </svg>
  511.                 Расширенный поиск
  512.             </button>
  513.             <div class=\"d-flex align-items-center collapse-reset ml-2\">
  514.                 <span class=\"d-none\" id=\"count-parameters\">Выбрано <em>0</em> параметров</span>
  515.                 <button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset=\"true\">Сброс</button>
  516.             </div>
  517.         </div>
  518.         <div class=\"collapse\" id=\"collapseFilter\">
  519.         </div>
  520.         <div class=\"map-wrap loading\" id=\"map-wrap\" style=\"width: 100%; height: 700px;\">
  521.         </div>
  522.     </div>
  523. \t{# {{ include('components/seo.partial.twig', {type: 'top'}) }}
  524. \t{{ include('components/seo.partial.twig', {type: 'bottom'}) }} #}
  525. {% endblock %}
  526. {% block javascripts %}
  527.     {{ parent() }}
  528.     {% if city is defined and city.mapCoordinate.latitude %}
  529. \t\t{% set lat = city.mapCoordinate.latitude %}
  530. \t\t{% set lon = city.mapCoordinate.longitude %}
  531. \t{% else %}
  532. \t\t{% set lat = '55.753215' %}
  533. \t\t{% set lon = '37.622504' %}
  534. \t{% endif %}
  535. \t<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\" defer></script>
  536. \t<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\" defer></script>
  537. \t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
  538. \t<script>
  539.         window.mapConfig = {
  540. \t\t\tid:\"map-wrap\",
  541. \t\t\tmultiple_cities:\"{{ multipleCities }}\",
  542. \t\t\troutes_url: \"{{ multipleCities == 0 ? '/js/fos_js_routes.json' : '/js/fos_js_routes_city_prefixed.json' }}\",
  543. \t\t\tcity_uri_identity:\"{{ cityUriIdentity }}\",
  544. \t\t\tcity_latitude:\"{{ lat }}\",
  545. \t\t\tcity_longitude:\"{{ lon }}\",
  546. \t\t\tlocale:\"{{ app.request.locale }}\",
  547. \t\t\tpath:\"{{ path('map.filter', {city:cityUriIdentity}) }}\",
  548. \t\t\tdetail: \"{{ path('map.detail', {city:cityUriIdentity}) }}\",
  549. \t\t\tavatar_path : \"{{ responsive_asset('replace_path', 'profile_media_avatar', \"200x280\", \"jpg\") }}\",
  550. \t\t\tphoto_path : \"{{ responsive_asset('replace_path', 'profile_media', \"200x280\", \"jpg\") }}\",
  551. \t\t\tthumb_path : \"{{ responsive_asset('replace_path', 'saloon_media_thumb', \"200x280\", \"jpg\") }}\",
  552. \t\t\tprocess_profile_shows_url  : \"{{ path('map.increment_profile_shows', multipleCities ? {city:cityUriIdentity} : {}) }}\"
  553. \t\t};
  554. \t\twindow.isMapInitialized = false;
  555. \t\twindow.isYMapLoaded = false;
  556. \t\tfunction initMap() {
  557. \t\t\twindow.ymaps = ym;
  558. \t\t\twindow.isMapInitialized = true;
  559. \t\t\twindow.isYMapLoaded = true;
  560. \t\t}
  561. \t\twindow.profileShowed = function ({id}) {
  562. \t\t\tif (!id) return;
  563. \t\t\tfetch('{{ path('profile_ctr.increase_shows') }}', {
  564. \t\t\t\tmethod: \"POST\",
  565. \t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
  566. \t\t\t});
  567. \t\t}
  568.         window.stations = {
  569. \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 -%}
  570. \t\t};
  571.         document.addEventListener('DOMContentLoaded', function () {
  572. \t\t\tfunction loadForm() {
  573. \t\t\t\tfetch('{{ path('map.form', {city: cityUriIdentity}) }}', {
  574. \t\t\t\t\tmode: \"cors\",
  575. \t\t\t\t\timportance: \"low\",
  576. \t\t\t\t\tmethod: \"POST\",
  577. \t\t\t\t\theaders: {
  578. \t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
  579. \t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
  580. \t\t\t\t\t},
  581. \t\t\t\t}).then(response => {
  582. \t\t\t\t\tif (response.status < 300) {
  583. \t\t\t\t\t\treturn response.text();
  584. \t\t\t\t\t} else {
  585. \t\t\t\t\t\tconsole.warn(\"🤔\");
  586. \t\t\t\t\t\treturn null;
  587. \t\t\t\t\t}
  588. \t\t\t\t}).then(response => {
  589. \t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
  590. \t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
  591. \t\t\t\t\tfilterLoader()
  592. \t\t\t\t});
  593. \t\t\t}
  594. \t\t\tloadForm();
  595. \t\t\tfunction filterLoader() {
  596. \t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\",\"scale\":10}`;
  597. \t\t\t\tfetch(\"{{ path('map.filter', {city:cityUriIdentity}) }}\", {
  598. \t\t\t\t\tmethod: \"POST\",
  599. \t\t\t\t\theaders: {
  600. \t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  601. \t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
  602. \t\t\t\t\t},
  603. \t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
  604. \t\t\t\t})
  605. \t\t\t\t\t.then(response => response.json())
  606. \t\t\t\t\t.then(data => {
  607. \t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
  608. \t\t\t\t\t\t\tif (window.isYMapLoaded) {
  609. \t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
  610. \t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
  611. \t\t\t\t\t\t\t}
  612. \t\t\t\t\t\t}, 200)
  613. \t\t\t\t\t})
  614. \t\t\t\t\t.catch(error => console.error(error));
  615. \t\t\t}
  616. \t\t})
  617. \t</script>
  618.     {# {{ encore_entry_script_tags('scripts/map-page', null, 'basicConfig') }} #}
  619.     {{ encore_entry_script_tags('scripts/map-page-2026', null, 'basicConfig') }}
  620. {% endblock %}
  621. ""Map/page.html.twig""/app/templates/Map/page.html.twig");
  622.     }
  623. }