var/cache/review/twig/dd/dd0c2b12d1d19170da27152facfaa151.php line 100

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. /* SaloonList/list.html.twig */
  14. class __TwigTemplate_67cc492e3f0b76b14b064a7f1fceebb1 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.             'metaSpecial' => [$this'block_metaSpecial'],
  24.             'mainContainer' => [$this'block_mainContainer'],
  25.             'mainList' => [$this'block_mainList'],
  26.             'showMore' => [$this'block_showMore'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "ProfileList/grid.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  39.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  44.         // line 3
  45.         $context["linkLangSupport"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3) == "en")) ? ("/en") : (""));
  46.         // line 1
  47.         $this->parent $this->loadTemplate("ProfileList/grid.html.twig""SaloonList/list.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 5
  57.     public function block_metaSpecial($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  61.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaSpecial"));
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaSpecial"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaSpecial"));
  66.         // line 6
  67.         if (((isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'6$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'6$this->source); })()), "currentPage", [], "any"falsefalsefalse6) >= 2))) {
  68.             // line 7
  69.             echo "<meta name=\"yandex\" content=\"noindex, nofollow\" />";
  70.         }
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  77.     }
  78.     // line 11
  79.     public function block_mainContainer($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  83.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  88.         // line 12
  89.         $context["isIndexPage"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "pathInfo", [], "any"falsefalsefalse12) == "/");
  90.         // line 13
  91.         $context["firstPage"] = (twig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'13$this->source); })()), "currentPage", [], "any"falsefalsefalse13) == 1);
  92.         // line 15
  93.         $context["isShowTopSeo"] = true;
  94.         // line 16
  95.         $context["isShowBottomSeo"] = true;
  96.         // line 18
  97.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("breadcrumbs", ["template" => "__design/v2023/_menu/breadcrumbs.html.twig"]);
  98.         // line 20
  99.         echo "<div class=\"heading d-flex\">
  100. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
  101.         // line 21
  102.         (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? (print ($this->extensions['App\Twig\SeoExtension']->pageHeading())) : (print (twig_escape_filter($this->env, ("Интим салоны в " $this->extensions['BigIdea\Bundle\GeographicalNamesInflectionBundle\Twig\GeographicalNamesInflectionTwigExtension']->geoNameInflection(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); })()), "name", [], "any"falsefalsefalse21), "предложный")), "html"nulltrue))));
  103.         echo "</h1>
  104. \t\t<span class=\"heading-count clr-main-text fw-700\" data-count-profiles>";
  105.         // line 22
  106.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'22$this->source); })()), "totalCount", [], "any"falsefalsefalse22), "html"nulltrue);
  107.         echo "</span>
  108. \t</div>";
  109.         // line 25
  110.         $this->displayBlock('mainList'$context$blocks);
  111.         // line 32
  112.         if (((isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'32$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'32$this->source); })()), "totalCount", [], "any"falsefalsefalse32) > (twig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'32$this->source); })()), "currentPage", [], "any"falsefalsefalse32) * twig_get_attribute($this->env$this->source, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'32$this->source); })()), "currentLimit", [], "any"falsefalsefalse32))))) {
  113.             // line 33
  114.             $this->displayBlock('showMore'$context$blocks);
  115.         }
  116.         // line 38
  117.         echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["saloons"]) || array_key_exists("saloons"$context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.'38$this->source); })()));
  118.         // line 44
  119.         echo twig_include($this->env$context"__design/v2023/components/seo-article.html.twig", ["type" => "top""noindex" => true]);
  120.         // line 45
  121.         echo twig_include($this->env$context"__design/v2023/components/seo-article.html.twig", ["type" => "bottom""noindex" => true]);
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.         
  127.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  128.     }
  129.     // line 25
  130.     public function block_mainList($context, array $blocks = [])
  131.     {
  132.         $macros $this->macros;
  133.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  134.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainList"));
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainList"));
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainList"));
  139.         // line 26
  140.         echo "<ul class=\"profile-list profile-list--saloon d-grid mb-4\" id=\"profile-list\">";
  141.         // line 27
  142.         $this->loadTemplate("SaloonList/list.saloons.html.twig""SaloonList/list.html.twig"27)->display($context);
  143.         // line 28
  144.         echo "</ul>";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.         
  150.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  151.     }
  152.     // line 33
  153.     public function block_showMore($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  157.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""showMore"));
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""showMore"));
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""showMore"));
  162.         // line 34
  163.         $this->loadTemplate("SaloonList/_show_more.saloons.html.twig""SaloonList/list.html.twig"34)->display($context);
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.         
  169.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  170.     }
  171.     // line 48
  172.     public function block_javascripts($context, array $blocks = [])
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  176.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  181.         // line 49
  182.         echo "\t";
  183.         $this->displayParentBlock("javascripts"$context$blocks);
  184.         echo "
  185. \t<script>
  186.         window._lD = {
  187.             setLastViewedListing: '";
  188.         // line 52
  189.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'52$this->source); })()), "request", [], "any"falsefalsefalse52), "attributes", [], "any"falsefalsefalse52), "get", ["_route"], "method"falsefalsefalse52), "html"nulltrue);
  190.         echo "',
  191.             cityUrl: \"";
  192.         // line 53
  193.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'53$this->source); })()), "uriIdentity", [], "any"falsefalsefalse53), "html"nulltrue);
  194.         echo "\",
  195.         };
  196. \t</script>";
  197.         
  198.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  199.         
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  201.         
  202.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  203.     }
  204.     /**
  205.      * @codeCoverageIgnore
  206.      */
  207.     public function getTemplateName()
  208.     {
  209.         return "SaloonList/list.html.twig";
  210.     }
  211.     /**
  212.      * @codeCoverageIgnore
  213.      */
  214.     public function isTraitable()
  215.     {
  216.         return false;
  217.     }
  218.     /**
  219.      * @codeCoverageIgnore
  220.      */
  221.     public function getDebugInfo()
  222.     {
  223.         return array (  238 => 53,  234 => 52,  227 => 49,  214 => 48,  201 => 34,  188 => 33,  175 => 28,  173 => 27,  171 => 26,  158 => 25,  145 => 45,  143 => 44,  141 => 38,  138 => 33,  136 => 32,  134 => 25,  130 => 22,  126 => 21,  123 => 20,  121 => 18,  119 => 16,  117 => 15,  115 => 13,  113 => 12,  100 => 11,  86 => 7,  84 => 6,  71 => 5,  57 => 1,  55 => 3,  39 => 1,);
  224.     }
  225.     public function getSourceContext()
  226.     {
  227.         return new Source("{% extends 'ProfileList/grid.html.twig' %}
  228. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  229. {%- block metaSpecial -%}
  230. \t{%- if saloons and saloons.currentPage >= 2 -%}
  231. \t\t<meta name=\"yandex\" content=\"noindex, nofollow\" />
  232. \t{%- endif -%}
  233. {%- endblock -%}
  234. {%- block mainContainer -%}
  235. \t{%- set isIndexPage = app.request.pathInfo == '/' -%}
  236. \t{%- set firstPage = saloons.currentPage == 1 -%}
  237. \t{%- set isShowTopSeo = true -%}
  238. \t{%- set isShowBottomSeo = true -%}
  239. \t{{- knp_menu_render('breadcrumbs', {'template': '__design/v2023/_menu/breadcrumbs.html.twig'}) -}}
  240. \t<div class=\"heading d-flex\">
  241. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Интим салоны в ' ~ city.name|geo_name('предложный') }}</h1>
  242. \t\t<span class=\"heading-count clr-main-text fw-700\" data-count-profiles>{{ saloons.totalCount }}</span>
  243. \t</div>
  244. \t{%- block mainList -%}
  245. \t\t<ul class=\"profile-list profile-list--saloon d-grid mb-4\" id=\"profile-list\">
  246.         \t{%- include 'SaloonList/list.saloons.html.twig' -%}
  247. \t\t</ul>
  248. \t{%- endblock -%}
  249. \t{# {% include 'ShowMore/_show_more.saloons.html.twig' %} #}
  250. \t{%- if saloons and saloons.totalCount > saloons.currentPage * saloons.currentLimit -%}
  251. \t\t{%- block showMore -%}
  252. \t\t\t{%- include 'SaloonList/_show_more.saloons.html.twig' -%}
  253. \t\t{%- endblock showMore -%}
  254. \t{%- endif -%}
  255. \t{{- porpaginas_render(saloons) -}}
  256. \t{# <div class=\"new-questionare\">
  257. \t\t{{ include('components/last_girl_list.html.twig') }}
  258. \t</div> #}
  259. \t{{- include('__design/v2023/components/seo-article.html.twig', { 'type': 'top', \"noindex\": true }) -}}
  260. \t{{ include ('__design/v2023/components/seo-article.html.twig', { 'type': 'bottom', \"noindex\": true }) -}}
  261. {%- endblock -%}
  262. {% block javascripts %}
  263. \t{{parent()}}
  264. \t<script>
  265.         window._lD = {
  266.             setLastViewedListing: '{{ app.request.attributes.get('_route') }}',
  267.             cityUrl: \"{{city.uriIdentity}}\",
  268.         };
  269. \t</script>
  270. {%- endblock -%}""SaloonList/list.html.twig""/app/templates/SaloonList/list.html.twig");
  271.     }
  272. }