<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* SaloonList/list.html.twig */
class __TwigTemplate_67cc492e3f0b76b14b064a7f1fceebb1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaSpecial' => [$this, 'block_metaSpecial'],
'mainContainer' => [$this, 'block_mainContainer'],
'mainList' => [$this, 'block_mainList'],
'showMore' => [$this, 'block_showMore'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "ProfileList/grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SaloonList/list.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SaloonList/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SaloonList/list.html.twig"));
// line 3
$context["linkLangSupport"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3) == "en")) ? ("/en") : (""));
// line 1
$this->parent = $this->loadTemplate("ProfileList/grid.html.twig", "SaloonList/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_metaSpecial($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaSpecial"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaSpecial"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaSpecial"));
// line 6
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", false, false, false, 6) >= 2))) {
// line 7
echo "<meta name=\"yandex\" content=\"noindex, nofollow\" />";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 11
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 12
$context["isIndexPage"] = (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "pathInfo", [], "any", false, false, false, 12) == "/");
// line 13
$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", false, false, false, 13) == 1);
// line 15
$context["isShowTopSeo"] = true;
// line 16
$context["isShowBottomSeo"] = true;
// line 18
echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("breadcrumbs", ["template" => "__design/v2023/_menu/breadcrumbs.html.twig"]);
// line 20
echo "<div class=\"heading d-flex\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
// line 21
(($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", false, false, false, 21), "предложный")), "html", null, true))));
echo "</h1>
\t\t<span class=\"heading-count clr-main-text fw-700\" data-count-profiles>";
// line 22
echo twig_escape_filter($this->env, 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.', 22, $this->source); })()), "totalCount", [], "any", false, false, false, 22), "html", null, true);
echo "</span>
\t</div>";
// line 25
$this->displayBlock('mainList', $context, $blocks);
// line 32
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", false, false, false, 32) > (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", false, false, false, 32) * 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", false, false, false, 32))))) {
// line 33
$this->displayBlock('showMore', $context, $blocks);
}
// line 38
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); })()));
// line 44
echo twig_include($this->env, $context, "__design/v2023/components/seo-article.html.twig", ["type" => "top", "noindex" => true]);
// line 45
echo twig_include($this->env, $context, "__design/v2023/components/seo-article.html.twig", ["type" => "bottom", "noindex" => true]);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 25
public function block_mainList($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainList"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainList"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainList"));
// line 26
echo "<ul class=\"profile-list profile-list--saloon d-grid mb-4\" id=\"profile-list\">";
// line 27
$this->loadTemplate("SaloonList/list.saloons.html.twig", "SaloonList/list.html.twig", 27)->display($context);
// line 28
echo "</ul>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 33
public function block_showMore($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "showMore"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "showMore"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "showMore"));
// line 34
$this->loadTemplate("SaloonList/_show_more.saloons.html.twig", "SaloonList/list.html.twig", 34)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 48
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 49
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t<script>
window._lD = {
setLastViewedListing: '";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "attributes", [], "any", false, false, false, 52), "get", ["_route"], "method", false, false, false, 52), "html", null, true);
echo "',
cityUrl: \"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 53, $this->source); })()), "uriIdentity", [], "any", false, false, false, 53), "html", null, true);
echo "\",
};
\t</script>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "SaloonList/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'ProfileList/grid.html.twig' %}
{% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
{%- block metaSpecial -%}
\t{%- if saloons and saloons.currentPage >= 2 -%}
\t\t<meta name=\"yandex\" content=\"noindex, nofollow\" />
\t{%- endif -%}
{%- endblock -%}
{%- block mainContainer -%}
\t{%- set isIndexPage = app.request.pathInfo == '/' -%}
\t{%- set firstPage = saloons.currentPage == 1 -%}
\t{%- set isShowTopSeo = true -%}
\t{%- set isShowBottomSeo = true -%}
\t{{- knp_menu_render('breadcrumbs', {'template': '__design/v2023/_menu/breadcrumbs.html.twig'}) -}}
\t<div class=\"heading d-flex\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Интим салоны в ' ~ city.name|geo_name('предложный') }}</h1>
\t\t<span class=\"heading-count clr-main-text fw-700\" data-count-profiles>{{ saloons.totalCount }}</span>
\t</div>
\t{%- block mainList -%}
\t\t<ul class=\"profile-list profile-list--saloon d-grid mb-4\" id=\"profile-list\">
\t{%- include 'SaloonList/list.saloons.html.twig' -%}
\t\t</ul>
\t{%- endblock -%}
\t{# {% include 'ShowMore/_show_more.saloons.html.twig' %} #}
\t{%- if saloons and saloons.totalCount > saloons.currentPage * saloons.currentLimit -%}
\t\t{%- block showMore -%}
\t\t\t{%- include 'SaloonList/_show_more.saloons.html.twig' -%}
\t\t{%- endblock showMore -%}
\t{%- endif -%}
\t{{- porpaginas_render(saloons) -}}
\t{# <div class=\"new-questionare\">
\t\t{{ include('components/last_girl_list.html.twig') }}
\t</div> #}
\t{{- include('__design/v2023/components/seo-article.html.twig', { 'type': 'top', \"noindex\": true }) -}}
\t{{ include ('__design/v2023/components/seo-article.html.twig', { 'type': 'bottom', \"noindex\": true }) -}}
{%- endblock -%}
{% block javascripts %}
\t{{parent()}}
\t<script>
window._lD = {
setLastViewedListing: '{{ app.request.attributes.get('_route') }}',
cityUrl: \"{{city.uriIdentity}}\",
};
\t</script>
{%- endblock -%}", "SaloonList/list.html.twig", "/app/templates/SaloonList/list.html.twig");
}
}