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

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.     ";
  228.         // line 54
  229.         echo "\t";
  230.         echo twig_include($this->env$context"components/seo.partial.twig", ["type" => "top"]);
  231.         echo "
  232. \t";
  233.         // line 55
  234.         echo twig_include($this->env$context"components/seo.partial.twig", ["type" => "bottom"]);
  235.         echo "
  236. ";
  237.         
  238.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  239.         
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  241.         
  242.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  243.     }
  244.     // line 59
  245.     public function block_javascripts($context, array $blocks = [])
  246.     {
  247.         $macros $this->macros;
  248.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  249.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  250.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  252.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  254.         // line 60
  255.         echo "    ";
  256.         $this->displayParentBlock("javascripts"$context$blocks);
  257.         echo "
  258.     ";
  259.         // line 62
  260.         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.'62$this->source); })()), "mapCoordinate", [], "any"falsefalsefalse62), "latitude", [], "any"falsefalsefalse62))) {
  261.             // line 63
  262.             echo "\t\t";
  263.             $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.'63$this->source); })()), "mapCoordinate", [], "any"falsefalsefalse63), "latitude", [], "any"falsefalsefalse63);
  264.             // line 64
  265.             echo "\t\t";
  266.             $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.'64$this->source); })()), "mapCoordinate", [], "any"falsefalsefalse64), "longitude", [], "any"falsefalsefalse64);
  267.             // line 65
  268.             echo "\t";
  269.         } else {
  270.             // line 66
  271.             echo "\t\t";
  272.             $context["lat"] = "55.753215";
  273.             // line 67
  274.             echo "\t\t";
  275.             $context["lon"] = "37.622504";
  276.             // line 68
  277.             echo "\t";
  278.         }
  279.         // line 69
  280.         echo "
  281. \t<script src=\"";
  282.         // line 70
  283.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html"nulltrue);
  284.         echo "\" defer></script>
  285. \t<script src=\"";
  286.         // line 71
  287.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  288.         echo "\" defer></script>
  289. \t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
  290. \t<script>
  291.         window.mapConfig = {
  292. \t\t\tid:\"map-wrap\",
  293. \t\t\tmultiple_cities:\"";
  294.         // line 77
  295.         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"nulltrue);
  296.         echo "\",
  297. \t\t\troutes_url: \"";
  298.         // line 78
  299.         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"));
  300.         echo "\",
  301. \t\t\tcity_uri_identity:\"";
  302.         // line 79
  303.         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"nulltrue);
  304.         echo "\",
  305. \t\t\tcity_latitude:\"";
  306.         // line 80
  307.         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"nulltrue);
  308.         echo "\",
  309. \t\t\tcity_longitude:\"";
  310.         // line 81
  311.         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"nulltrue);
  312.         echo "\",
  313. \t\t\tlocale:\"";
  314.         // line 82
  315.         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.'82$this->source); })()), "request", [], "any"falsefalsefalse82), "locale", [], "any"falsefalsefalse82), "html"nulltrue);
  316.         echo "\",
  317. \t\t\tpath:\"";
  318.         // line 83
  319.         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"nulltrue);
  320.         echo "\",
  321. \t\t\tdetail: \"";
  322.         // line 84
  323.         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.'84$this->source); })())]), "html"nulltrue);
  324.         echo "\",
  325. \t\t\tavatar_path : \"";
  326.         // line 86
  327.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""profile_media_avatar""200x280""jpg"), "html"nulltrue);
  328.         echo "\",
  329. \t\t\tphoto_path : \"";
  330.         // line 87
  331.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""profile_media""200x280""jpg"), "html"nulltrue);
  332.         echo "\",
  333. \t\t\tthumb_path : \"";
  334.         // line 88
  335.         echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path""saloon_media_thumb""200x280""jpg"), "html"nulltrue);
  336.         echo "\",
  337. \t\t\tprocess_profile_shows_url  : \"";
  338.         // line 89
  339.         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.'89$this->source); })())) ? (["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity"$context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.'89$this->source); })())]) : ([]))), "html"nulltrue);
  340.         echo "\"
  341. \t\t};
  342. \t\twindow.isMapInitialized = false;
  343. \t\twindow.isYMapLoaded = false;
  344. \t\tfunction initMap() {
  345. \t\t\twindow.ymaps = ym;
  346. \t\t\twindow.isMapInitialized = true;
  347. \t\t\twindow.isYMapLoaded = true;
  348. \t\t}
  349. \t\twindow.profileShowed = function ({id}) {
  350. \t\t\tif (!id) return;
  351. \t\t\tfetch('";
  352.         // line 102
  353.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_shows");
  354.         echo "', {
  355. \t\t\t\tmethod: \"POST\",
  356. \t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
  357. \t\t\t});
  358. \t\t}
  359.         window.stations = {";
  360.         // line 109
  361.         $context['_parent'] = $context;
  362.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\StationsExtension']->stations());
  363.         $context['loop'] = [
  364.           'parent' => $context['_parent'],
  365.           'index0' => 0,
  366.           'index'  => 1,
  367.           'first'  => true,
  368.         ];
  369.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  370.             $length count($context['_seq']);
  371.             $context['loop']['revindex0'] = $length 1;
  372.             $context['loop']['revindex'] = $length;
  373.             $context['loop']['length'] = $length;
  374.             $context['loop']['last'] = === $length;
  375.         }
  376.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  377.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["station"], "id", [], "any"falsefalsefalse109), "html"nulltrue);
  378.             echo ":{icon:`";
  379.             $this->loadTemplate("components/metro/icon_generate.partial.twig""Map/page.html.twig"109)->display(twig_array_merge($context, ["data" => $this->extensions['App\Twig\StationsExtension']->stationLines($context["station"])]));
  380.             echo "`,name:`";
  381.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse109), "html"nulltrue);
  382.             echo "`},";
  383.             ++$context['loop']['index0'];
  384.             ++$context['loop']['index'];
  385.             $context['loop']['first'] = false;
  386.             if (isset($context['loop']['length'])) {
  387.                 --$context['loop']['revindex0'];
  388.                 --$context['loop']['revindex'];
  389.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  390.             }
  391.         }
  392.         $_parent $context['_parent'];
  393.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  394.         $context array_intersect_key($context$_parent) + $_parent;
  395.         // line 110
  396.         echo "};
  397.         document.addEventListener('DOMContentLoaded', function () {
  398. \t\t\tfunction loadForm() {
  399. \t\t\t\tfetch('";
  400.         // line 114
  401.         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.'114$this->source); })())]), "html"nulltrue);
  402.         echo "', {
  403. \t\t\t\t\tmode: \"cors\",
  404. \t\t\t\t\timportance: \"low\",
  405. \t\t\t\t\tmethod: \"POST\",
  406. \t\t\t\t\theaders: {
  407. \t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
  408. \t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
  409. \t\t\t\t\t},
  410. \t\t\t\t}).then(response => {
  411. \t\t\t\t\tif (response.status < 300) {
  412. \t\t\t\t\t\treturn response.text();
  413. \t\t\t\t\t} else {
  414. \t\t\t\t\t\tconsole.warn(\"🤔\");
  415. \t\t\t\t\t\treturn null;
  416. \t\t\t\t\t}
  417. \t\t\t\t}).then(response => {
  418. \t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
  419. \t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
  420. \t\t\t\t\tfilterLoader()
  421. \t\t\t\t});
  422. \t\t\t}
  423. \t\t\tloadForm();
  424. \t\t\tfunction filterLoader() {
  425. \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}`;
  426. \t\t\t\tfetch(\"";
  427.         // line 140
  428.         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.'140$this->source); })())]), "html"nulltrue);
  429.         echo "\", {
  430. \t\t\t\t\tmethod: \"POST\",
  431. \t\t\t\t\theaders: {
  432. \t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  433. \t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
  434. \t\t\t\t\t},
  435. \t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
  436. \t\t\t\t})
  437. \t\t\t\t\t.then(response => response.json())
  438. \t\t\t\t\t.then(data => {
  439. \t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
  440. \t\t\t\t\t\t\tif (window.isYMapLoaded) {
  441. \t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
  442. \t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
  443. \t\t\t\t\t\t\t}
  444. \t\t\t\t\t\t}, 200)
  445. \t\t\t\t\t})
  446. \t\t\t\t\t.catch(error => console.error(error));
  447. \t\t\t}
  448. \t\t})
  449. \t</script>
  450.     ";
  451.         // line 164
  452.         echo "    ";
  453.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("scripts/map-page-2026"null"basicConfig");
  454.         echo "
  455. ";
  456.         
  457.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  458.         
  459.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  460.         
  461.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  462.     }
  463.     /**
  464.      * @codeCoverageIgnore
  465.      */
  466.     public function getTemplateName()
  467.     {
  468.         return "Map/page.html.twig";
  469.     }
  470.     /**
  471.      * @codeCoverageIgnore
  472.      */
  473.     public function isTraitable()
  474.     {
  475.         return false;
  476.     }
  477.     /**
  478.      * @codeCoverageIgnore
  479.      */
  480.     public function getDebugInfo()
  481.     {
  482.         return array (  523 => 164,  497 => 140,  468 => 114,  462 => 110,  427 => 109,  418 => 102,  402 => 89,  398 => 88,  394 => 87,  390 => 86,  385 => 84,  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,);
  483.     }
  484.     public function getSourceContext()
  485.     {
  486.         return new Source("{% extends 'grid.html.twig' %}
  487. {% block title %}
  488.     {{ seo_title() }}
  489. {% endblock %}
  490. {% block metaDescription %}
  491.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  492. {% endblock %}
  493. {% block stylesheet %}
  494.     {{ parent() }}
  495.     <link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
  496. {% endblock %}
  497. {% block name_page %}map{% endblock %}
  498. {% block bodyClasses %}map-page{% endblock %}
  499. {% block mainContainer %}
  500.     {% if city is defined and city.mapCoordinate.latitude %}
  501.         {% set coordss = 1 %}
  502.         {% set lat = city.mapCoordinate.latitude %}
  503.         {% set lon = city.mapCoordinate.longitude %}
  504.     {% else %}
  505.         {% set coordss = 0 %}
  506.         {% set lat = '55.75' %}
  507.         {% set lon = '37.61' %}
  508.     {% endif %}
  509.     <h1 class=\"border-line\">{% if seo_heading() is empty %}%Интим карта{% else %}{{ seo_heading() }}{% endif %}</h1>
  510.     <p class=\"text-desc mb-lg-4\">
  511.         На карте обозначено местоположение зарегистрированных анкет.<br>
  512.         Кликнув на маркер Вы узнаете краткую информацию о девушке.
  513.     </p>
  514.     <div class=\"map\">
  515.         <div class=\"filter-line d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
  516.             <button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
  517.                 <svg class=\"icon mr-1\">
  518.                     <use xlink:href=\"#icon-dropdown\"></use>
  519.                 </svg>
  520.                 Расширенный поиск
  521.             </button>
  522.             <div class=\"d-flex align-items-center collapse-reset ml-2\">
  523.                 <span class=\"d-none\" id=\"count-parameters\">Выбрано <em>0</em> параметров</span>
  524.                 <button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset=\"true\">Сброс</button>
  525.             </div>
  526.         </div>
  527.         <div class=\"collapse\" id=\"collapseFilter\">
  528.         </div>
  529.         <div class=\"map-wrap loading\" id=\"map-wrap\" style=\"width: 100%; height: 700px;\">
  530.         </div>
  531.     </div>
  532.     {# {{ include('components/big_footer.html.twig', { 'type': 'main' }) }} #}
  533. \t{{ include('components/seo.partial.twig', {type: 'top'}) }}
  534. \t{{ include('components/seo.partial.twig', {type: 'bottom'}) }}
  535. {% endblock %}
  536. {% block javascripts %}
  537.     {{ parent() }}
  538.     {% if city is defined and city.mapCoordinate.latitude %}
  539. \t\t{% set lat = city.mapCoordinate.latitude %}
  540. \t\t{% set lon = city.mapCoordinate.longitude %}
  541. \t{% else %}
  542. \t\t{% set lat = '55.753215' %}
  543. \t\t{% set lon = '37.622504' %}
  544. \t{% endif %}
  545. \t<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\" defer></script>
  546. \t<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\" defer></script>
  547. \t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
  548. \t<script>
  549.         window.mapConfig = {
  550. \t\t\tid:\"map-wrap\",
  551. \t\t\tmultiple_cities:\"{{ multipleCities }}\",
  552. \t\t\troutes_url: \"{{ multipleCities == 0 ? '/js/fos_js_routes.json' : '/js/fos_js_routes_city_prefixed.json' }}\",
  553. \t\t\tcity_uri_identity:\"{{ cityUriIdentity }}\",
  554. \t\t\tcity_latitude:\"{{ lat }}\",
  555. \t\t\tcity_longitude:\"{{ lon }}\",
  556. \t\t\tlocale:\"{{ app.request.locale }}\",
  557. \t\t\tpath:\"{{ path('map.filter', {city:cityUriIdentity}) }}\",
  558. \t\t\tdetail: \"{{ path('map.detail', {city:cityUriIdentity}) }}\",
  559. \t\t\tavatar_path : \"{{ responsive_asset('replace_path', 'profile_media_avatar', \"200x280\", \"jpg\") }}\",
  560. \t\t\tphoto_path : \"{{ responsive_asset('replace_path', 'profile_media', \"200x280\", \"jpg\") }}\",
  561. \t\t\tthumb_path : \"{{ responsive_asset('replace_path', 'saloon_media_thumb', \"200x280\", \"jpg\") }}\",
  562. \t\t\tprocess_profile_shows_url  : \"{{ path('map.increment_profile_shows', multipleCities ? {city:cityUriIdentity} : {}) }}\"
  563. \t\t};
  564. \t\twindow.isMapInitialized = false;
  565. \t\twindow.isYMapLoaded = false;
  566. \t\tfunction initMap() {
  567. \t\t\twindow.ymaps = ym;
  568. \t\t\twindow.isMapInitialized = true;
  569. \t\t\twindow.isYMapLoaded = true;
  570. \t\t}
  571. \t\twindow.profileShowed = function ({id}) {
  572. \t\t\tif (!id) return;
  573. \t\t\tfetch('{{ path('profile_ctr.increase_shows') }}', {
  574. \t\t\t\tmethod: \"POST\",
  575. \t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
  576. \t\t\t});
  577. \t\t}
  578.         window.stations = {
  579. \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 -%}
  580. \t\t};
  581.         document.addEventListener('DOMContentLoaded', function () {
  582. \t\t\tfunction loadForm() {
  583. \t\t\t\tfetch('{{ path('map.form', {city: cityUriIdentity}) }}', {
  584. \t\t\t\t\tmode: \"cors\",
  585. \t\t\t\t\timportance: \"low\",
  586. \t\t\t\t\tmethod: \"POST\",
  587. \t\t\t\t\theaders: {
  588. \t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
  589. \t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
  590. \t\t\t\t\t},
  591. \t\t\t\t}).then(response => {
  592. \t\t\t\t\tif (response.status < 300) {
  593. \t\t\t\t\t\treturn response.text();
  594. \t\t\t\t\t} else {
  595. \t\t\t\t\t\tconsole.warn(\"🤔\");
  596. \t\t\t\t\t\treturn null;
  597. \t\t\t\t\t}
  598. \t\t\t\t}).then(response => {
  599. \t\t\t\t\tdocument.getElementById('collapseFilter').innerHTML = response;
  600. \t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
  601. \t\t\t\t\tfilterLoader()
  602. \t\t\t\t});
  603. \t\t\t}
  604. \t\t\tloadForm();
  605. \t\t\tfunction filterLoader() {
  606. \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}`;
  607. \t\t\t\tfetch(\"{{ path('map.filter', {city:cityUriIdentity}) }}\", {
  608. \t\t\t\t\tmethod: \"POST\",
  609. \t\t\t\t\theaders: {
  610. \t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  611. \t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
  612. \t\t\t\t\t},
  613. \t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
  614. \t\t\t\t})
  615. \t\t\t\t\t.then(response => response.json())
  616. \t\t\t\t\t.then(data => {
  617. \t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
  618. \t\t\t\t\t\t\tif (window.isYMapLoaded) {
  619. \t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
  620. \t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
  621. \t\t\t\t\t\t\t}
  622. \t\t\t\t\t\t}, 200)
  623. \t\t\t\t\t})
  624. \t\t\t\t\t.catch(error => console.error(error));
  625. \t\t\t}
  626. \t\t})
  627. \t</script>
  628.     {# {{ encore_entry_script_tags('scripts/map-page', null, 'basicConfig') }} #}
  629.     {{ encore_entry_script_tags('scripts/map-page-2026', null, 'basicConfig') }}
  630. {% endblock %}
  631. ""Map/page.html.twig""/app/templates/Map/page.html.twig");
  632.     }
  633. }