{% extends 'grid.html.twig' %}
{% macro _get_min(price1, price2, currency) %}
{% set price1 = price1 is defined and price1 > 0 ? price1 : 999999999 %}
{% set price2 = price2 is defined and price2 > 0 ? price2 : 999999999 %}
{% if price1 == 999999999 and price2 == 999999999 %}
-
{% elseif price1 == 999999999 %}
{{price2}} {{ currency }}
{% elseif price2 == 999999999 %}
{{price1}} {{ currency }}
{% else %}
{{ min([price1,price2]) }} {{ currency }}
{% endif %}
{% endmacro %}
{%- macro _check_out_price(price1, price2, price3) -%}
{%- set maxPrice = 999999999 %}
{%- set price1 = price1 is defined and price1 > 0 ? price1 : maxPrice -%}
{%- set price2 = price2 is defined and price2 > 0 ? price2 : maxPrice -%}
{%- set price3 = price3 is defined and price3 > 0 ? price3 : maxPrice -%}
{%- if price1 != maxPrice or price2 != maxPrice or price3 != maxPrice -%}
1
{%- else -%}
0
{%- endif -%}
{%- endmacro -%}
{% block title %}{{ seo_title() }}{% endblock %}
{% block metaDescription %}
<meta name="description" content="{{ seo_description() }}">
{% endblock %}
{% block name_page %}girls-list{% endblock %}
{% block current_menu_map %} current{% endblock %}
{% block canonical %}
{# Обрезаем каноникал #}
{% set activeUri = app.request.requestUri %}
{% if
city.equals(default_city()) and
app.request.attributes.get('_route_params')|length == 2 and
'page' in activeUri and
'list_approved' not in app.request.attributes.get('_route') and
'list_new' not in app.request.attributes.get('_route') and
'list_with_comments' not in app.request.attributes.get('_route') and
'list_with_video' not in app.request.attributes.get('_route') and
'list_with_selfie' not in app.request.attributes.get('_route') and
'list_price_high' not in app.request.attributes.get('_route') and
'list_price_low' not in app.request.attributes.get('_route')
%}
{# Если город стандартный и без категорий - выводим `/`
Если _route_params|lenght = 3 и _route_params.page not indefind - работаем
Если отключен язык то _route_params|lenght = 2
#}
{% set canonicalUrl = '/' %}
{% else %}
{# Если город другой или есть категория - выводим `/{city}/{cat}/`#}
{% if 'page' in activeUri %}
{% set page = 'page' ~ app.request.attributes.get('page') %}
{% set urlAfterCheckPage = activeUri|slice(0, (activeUri|length - page|length - 1)) %}
{% else %}
{% set urlAfterCheckPage = activeUri %}
{% endif %}
{% set canonicalUrl = urlAfterCheckPage ? urlAfterCheckPage : '/' %}
{% endif %}
<link rel="canonical" href="{{ canonicalUrl }}">
{% endblock %}
{% block stylesheet %}
{{ parent() }}
{{ encore_entry_link_tags("scripts/filters", null, 'basicConfig') }}
{% endblock %}
{% block mainContainer %}
{{ knp_menu_render('breadcrumbs', {'template': '_menu/breadcrumbs.html.twig'}) }}
<header class="list_heading" role="heading">
<h1 class="border-line list_heading__title" role="heading">{{ seo_heading() ? seo_heading() : 'Проститутки города Питера' }}</h1>
<span class="list_heading__count">{{ profiles.totalCount }}</span>
</header>
{#
фича Пустые категории
{% if source is defined and source %}
<div class="empty-category level d-flex overflow-hidden mb-4">
<div class="empty-category__icon d-flex align-items-center justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 34 30"><path fill="#FF3F40" fill-rule="evenodd" d="M.5 29.25L17 .75l16.5 28.5H.5zm27.8-3L17 6.73 5.7 26.25h22.6zm-12.8-4.5v3h3v-3h-3zm0-9h3v6h-3v-6z" clip-rule="evenodd"/></svg>
</div>
<div class="flex-fill px-3 px-sm-4 py-3">
<p class="m-0">
{% if source == 'county' %}К сожалению, все девушки из округа
<a href="{{ category_url }}">{{ county.name }}</a>
сейчас отдыхают, посмотрите проституток из других округов города
{{ city.name|trans }}.
{% endif %}
{% if source == 'district' %}К сожалению, все девушки из района
<a href="{{ category_url }}">{{ district.name }}</a>
сейчас отдыхают, посмотрите проституток из других районов города
{{ city.name|trans }}.
{% endif %}
{% if source == 'station' %}К сожалению, все девушки работающие вблизи метро
<a href="{{ category_url }}">{{ station.name }}</a>
сейчас отдыхают, посмотрите проституток у других станций метро в этом районе города
{{ city.name|trans }}.
{% endif %}
{% if source == 'approved' or source == 'with_comments' or source == 'with_video' or source == 'elite' or source == 'with_selfie' %}
{% if source == 'approved' %}
{% set source_name = '<a href="' ~ path('profile_list.list_approved', {city:city.uriIdentity}) ~ '">Проверенные анкеты</a>' %}
{% elseif source == 'with_comments' %}
{% set source_name = '<a href="' ~ path('profile_list.list_with_comments', {city:city.uriIdentity}) ~ '">Анкеты с отзывами</a>' %}
{% elseif source == 'with_video' %}
{% set source_name = '<a href="' ~ path('profile_list.list_with_video', {city:city.uriIdentity}) ~ '">Анкеты с видео</a>' %}
{% elseif source == 'with_selfie' %}
{% set source_name = '<a href="' ~ path('profile_list.list_with_selfie', {city:city.uriIdentity}) ~ '">Анкеты с селфи</a>' %}
{% elseif source == 'elite' %}
{% set source_name = '<a href="' ~ path('profile_list.list_for_elite_girls', {city:city.uriIdentity}) ~ '" style="pointer-events:none">Элитные проститутки</a>' %}
{% else %}
{% set source_name = '' %}
{% endif %}
{% if source_default == 'approved' %}К сожалению, все
<a href="{{ category_url }}">проверенные девушки</a>
сейчас отдыхают, посмотрите раздел
{{ source_name|raw }}
{% endif %}
{% if source_default == 'with_comments' %}К сожалению, все
<a href="{{ category_url }}">девушки, у которых есть отзывы</a>
сейчас отдыхают, посмотрите раздел
{{ source_name|raw }}
{% endif %}
{% if source_default == 'with_video' %}К сожалению, все
<a href="{{ category_url }}">девушки, у которых есть видео</a>
сейчас отдыхают, посмотрите раздел
{{ source_name|raw }}
{% endif %}
{% if source_default == 'with_selfie' %}
К сожалению, все <a href="{{ category_url }}">девушки, у которых есть селфи</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}
{% endif %}
{% endif %}
{% if source == 'by_params' %}К сожалению, раздел пуст. Посмотрите другие анкеты, которые мы подобрали для Вас.
{% endif %}
{% if source == 'service' %}К сожалению, все девушки, которые практикуют услугу
<a href="{{ category_url }}">{{ service.name }}</a>
сейчас отдыхают. Но мы подобрали для Вас девушек которые не против оказать Вам похожие услуги, взгляните!
{% endif %}
{% if source == 'city' %}К сожалению, данный раздел пуст. Взгляните на другие анкеты, которые мы нашли для Вас в городе
{{ city.name|trans }}.
{% endif %}
{% if source == 'country' %}К сожалению, данный раздел пуст. Взгляните на анкеты которые мы подобрали для Вас.
{% endif %}
{% if source == 'massage_service' %}К сожалению, все девушки для которых массаж — это призвание сейчас отдыхают. Посмотрите проституток, которые также готовы сделать Вам массаж.
{% endif %}
</p>
</div>
</div>
{% endif %}#}
<div aria-hidden="true" class="no-display" style="display: none;">
<svg xmlns="http://www.w3.org/2000/svg">
<symbol id="close" viewBox="0 0 25 24">
<path fill="#B5B5B5" d="m17.19 6-4.52 4.51L8.16 6 6.67 7.49l4.51 4.5-4.5 4.52L8.15 18l4.51-4.51L17.2 18l1.48-1.49L14.16 12l4.51-4.51L17.2 6Z"/>
</symbol>
<symbol id="expand" viewBox="0 0 20 20">
<path fill="#B5B5B5" d="M15 8.41 13.59 7 10 10.58 6.41 7 5 8.41l5 5 5-5Z"/>
</symbol>
<symbol id="range-off" viewBox="0 0 25 24">
<rect width="24" height="4" x=".34" y="10" fill="#A3A3A3" rx="2"/>
<circle cx="4.34" cy="12" r="3" fill="#fff" stroke="#A3A3A3" stroke-width="2"/>
<circle cx="20.34" cy="12" r="3" fill="#fff" stroke="#A3A3A3" stroke-width="2"/>
</symbol>
<symbol id="range-on" viewBox="0 0 25 24">
<rect width="24" height="4" x=".34" y="10" fill="#A3A3A3" rx="2"/>
<rect width="12" height="4" x="6.34" y="10" fill="#f7901d" rx="2"/>
<circle cx="6.34" cy="12" r="3" fill="#fff" stroke="#f7901d" stroke-width="2"/>
<circle cx="18.34" cy="12" r="3" fill="#fff" stroke="#f7901d" stroke-width="2"/>
</symbol>
<symbol id="filter" viewBox="0 0 24 24">
<path d="M6.96 6h10l-5 6.3-5-6.3Zm-2.75-.39L9.96 13v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6l5.74-7.39A1 1 0 0 0 18.91 4H5.01a1 1 0 0 0-.8 1.61Z" />
</symbol>
<symbol id="filter-arrow" viewBox="0 0 24 24">
<path d="M5.7924 16.6699L4 14.8999L12 6.99992L20 14.8999L18.2076 16.6699L12 10.5399L5.7924 16.6699Z" fill="#B5B5B5"/>
<symbol>
</svg>
</div>
<div id="filter-form-root">
<button class="filter_hide_button rounding" type="button" id="filter_hide_button">
<svg class="filter_hide_button__icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><use xlink:href="#filter"></use></svg>
<span class="filter_hide_button__text" data-filter-hide-text-show>Фильтры</span>
<svg class="filter_hide_button__rotate" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.45 9.87a.84.84 0 0 1 1.24 0l3.3 3.5 3.32-3.5a.84.84 0 0 1 1.23 0c.34.36.34.95 0 1.3l-3.92 4.16a.84.84 0 0 1-1.24 0l-3.93-4.15a.96.96 0 0 1 0-1.31Z" /></svg>
</button>
<div class="filter_hide_block" id="filter_hide_block">
{# Форма полей фильтрации #}
<form name="profile_filter_form" method="post" action="/filter/" class="filter_form" id="filter-form" data-process-url="/profile_ctr/increase-shows/" data-main-class="profile_filter">
<div class="profile_filter">
<button class="profile_filter__mobile_button" type="button">
<svg class="profile_filter__mobile_button__icon" fill="#666" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><use xlink:href="#filter"></use></svg>
<span class="profile_filter__mobile_button__text">Фильтры</span>
<svg class="profile_filter__mobile_button__icon profile_filter__mobile_button__icon-arrow" fill="#666" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="transform:rotate(180deg)"><use xlink:href="#filter-arrow"></use></svg>
</button>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
<div class="profile_filter__item rounding profile_filter__item--loading"></div>
</div>
</form>
</div>
<div class="profile_filter__tags__container fade_slider__container">
<div class="profile_filter__tags d-none fade_slider" id="filter_tags">
<button class="profile_filter__tag" type="button" data-all>Сбросить фильтры</button>
</div>
</div>
<div class="profile_filter__line" id="filter_line">
<div class="profile_filter__line__title">Найдено <span class="profile_filter__line__title__count">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['анкета', 'анкеты', 'анкет']) }}</span></div>
<button class="profile_filter__line__reset" type="button" id="filter_line_reset">Сбросить фильтры <svg class="profile_filter__line__reset_icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7 1.7A1 1 0 0 0 12.3.3L7 5.58 1.7.29A1 1 0 0 0 .3 1.71L5.58 7l-5.3 5.3a1 1 0 1 0 1.42 1.4L7 8.42l5.3 5.3a1 1 0 0 0 1.4-1.42L8.42 7l5.3-5.3Z" fill="#f7901d"/></svg>
</button>
</div>
</div>
{% block mainList %}
<div class="models-items-row flex-wrap" id="profile-list">
{% include 'ProfileList/list.profiles.html.twig' with { 'top_profile': profile_top_placement() } %}
</div>
{% endblock %}
{%- if profiles and profiles.totalCount > profiles.currentPage * profiles.currentLimit -%}
{%- block showMore -%}
{%- include 'ProfileList/_show_more.profiles.html.twig' -%}
{%- endblock showMore -%}
{%- endif -%}
{{ porpaginas_render(profiles) }}
{# {% set stations_circle = station_pages_linkage_circle() %}
{% if stations_circle is not null %}
<div class="station-pages-linkage-circle">
{% if stations_circle[0] is defined and stations_circle[0] is not null %}<a href="{{ stations_circle[0].href }}"><i class="prev"></i>{{ stations_circle[0].text }}</a>{% endif %}
{% if stations_circle[0] is defined and stations_circle[0] is not null
and stations_circle[1] is defined and stations_circle[1] is not null %}<i class="sep"></i>{% endif %}
{% if stations_circle[1] is defined and stations_circle[1] is not null %}<a href="{{ stations_circle[1].href }}">{{ stations_circle[1].text }}<i class="next"></i></a>{% endif %}
</div>
{% endif %} #}
{% if profiles and profiles.currentPage >= 2 %}
{% set excludeRecommendationProfileIds = [] %}
{{ include('components/_profile_recommendations.html.twig') }}
{% endif %}
{{ include('components/seo_text.html.twig', { "type": 'top', "noindex": true }) }}
{{ include('components/seo_text.html.twig', { "type": 'bottom', "noindex": true }) }}
{% set cities_circle = city_main_pages_linkage_circle() %}
{% if cities_circle is not null %}
<div class="city_main_pages_linkage_circle">
<h3>Также рекомендуем:</h3>
{% if cities_circle[0] is not null %}<a href="{{ cities_circle[0].href }}">{{ cities_circle[0].text }}</a>{% endif %}
{% if cities_circle[1] is not null %}<a href="{{ cities_circle[1].href }}">{{ cities_circle[1].text }}</a>{% endif %}
</div>
{% endif %}
{% set circle = inner_linkage_circle() %}
{% if circle is not null %}
<div class="inner_linkage_circle">
<h3>Также интересуются:</h3>
<a href="{{ circle[0].href }}">{{ circle[0].text }}</a>
<a href="{{ circle[1].href }}">{{ circle[1].text }}</a>
</div>
{% endif %}
{% endblock %}
{% block javascripts %}
{% set excludeRecommendationProfileIds = [] %}
{{ parent() }}
{{ encore_entry_script_tags('scripts/filters', null, 'basicConfig') }}
{%- set route = app.request.get('_route') -%}
{%- if 'profile_search.page' not in route and not (app.request.method == 'GET' and app.request.isXmlHttpRequest()) -%}
<script>
window._lD = {
formUrl: "{{ path('profile_filters.form', {city: city.uriIdentity}) }}",
setLastViewedListing: '{{ app.request.attributes.get('_route') }}',
listingData: [
['listing', '{{ listing }}'],
['listingParams', '{{ listing_parameters|json_encode() }}'.replaceAll('"', '"')],
],
cityUrl: "{{city.uriIdentity}}"
}
window._spb_s = {
stations: {
{%- for station in stations() -%}
"{{ station.name|trans }}": "{{ path('profile_list.list_by_station', {'city': station.city.uriIdentity, 'station': station.uriIdentity}) }}"{% if not loop.last %},{% endif %}
{%- endfor -%}
}
};
document.addEventListener("DOMContentLoaded", () => {
new window._filterLoader({
formUrl: "{{ path('profile_filters.form', {city: city.uriIdentity}) }}",
defaultProfilesCount: "{{ profiles.totalCount }}"
});
})
</script>
{# {% endif %} #}
{%- endif -%}
{# <script>
document.addEventListener('DOMContentLoaded', function() {
{% if profiles and profiles.totalCount > 0 %}
{%- set profilesId = profiles|map(p => p.id)|join(',') -%}
window.increase_shows({
profiles: [{{ profilesId }}],
route: '{{ app.request.attributes.get('_route') }}',
})
{% endif %}
});
</script> #}
{% endblock %}