templates/ProfileList/list.html.twig line 56

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% set city = app.request.get('city') %}
  3. {% block title %}{{ seo_title() }}{% endblock %}
  4. {% block metaDescription %}
  5.     <meta name="description" content="{{ seo_description() }}">
  6. {% endblock %}
  7. {% block navbar %}
  8.     {{ parent() }}
  9.     {% if profiles and profiles.currentPage >= 2 %}
  10.         {% set excludeRecommendationProfileIds = [] %}
  11.         {% include 'Recommendations/_profile_recommendations.html.twig' %}
  12.     {% endif %}
  13. {% endblock %}
  14. {% block mainContainer %}
  15.     {{ seo_top() }}
  16.     <h1>{% trans with {'%ofCity%': city.name|trans|geo_name('genitive')} %}Проститутки %ofCity%, шлюхи и путаны{% endtrans %}</h1>
  17. {#
  18.     {% if source is defined and source %}
  19.     <h6 style="background-color: #ee4056;height: 20px;">
  20.         {% if source == 'county' %}К сожалению, все девушки из округа <a href="{{ category_url }}">{{ county.name }}</a> сейчас отдыхают, посмотрите проституток из других округов города {{ city.name|trans }}.{% endif %}
  21.         {% if source == 'district' %}К сожалению, все девушки из района <a href="{{ category_url }}">{{ district.name }}</a> сейчас отдыхают, посмотрите проституток из других районов города {{ city.name|trans }}.{% endif %}
  22.         {% if source == 'station' %}К сожалению, все девушки работающие вблизи метро <a href="{{ category_url }}">{{ station.name }}</a> сейчас отдыхают, посмотрите проституток у других станций метро в этом районе города {{ city.name|trans }}.{% endif %}
  23.         {% if source == 'approved' or source == 'with_comments' or  source == 'with_video' or source == 'elite' or source == 'with_selfie' %}
  24.             {% if source == 'approved' %}
  25.                 {% set source_name = '<a href="' ~ path('profile_list.list_approved', {city:city.uriIdentity}) ~ '">Проверенные анкеты</a>' %}
  26.             {% elseif source == 'with_comments' %}
  27.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_comments', {city:city.uriIdentity}) ~ '">Анкеты с отзывами</a>' %}
  28.             {% elseif source == 'with_video' %}
  29.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_video', {city:city.uriIdentity}) ~ '">Анкеты с видео</a>' %}
  30.             {% elseif source == 'with_selfie' %}
  31.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_selfie', {city:city.uriIdentity}) ~ '">Анкеты с селфи</a>' %}
  32.             {% elseif source == 'elite' %}
  33.                 {% set source_name = '<a href="' ~ path('profile_list.list_for_elite_girls', {city:city.uriIdentity}) ~ '">Элитные проститутки</a>' %}
  34.             {% else %}
  35.                 {% set source_name = '' %}
  36.             {% endif %}
  37.             {% if source_default == 'approved' %}К сожалению, все <a href="{{ category_url }}">проверенные девушки</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  38.             {% if source_default == 'with_comments' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть отзывы</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  39.             {% if source_default == 'with_video' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть видео</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  40.             {% if source_default == 'with_selfie' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть селфи</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  41.         {% endif %}
  42.         {% if source == 'by_params' %}К сожалению, раздел пуст. Посмотрите другие анкеты, которые мы подобрали для Вас.{% endif %}
  43.         {% if source == 'service' %}К сожалению, все девушки, которые практикуют услугу <a href="{{ category_url }}">{{ service.name }}</a> сейчас отдыхают. Но мы подобрали для Вас девушек которые не против оказать Вам похожие услуги, взгляните!{% endif %}
  44.         {% if source == 'city' %}К сожалению, данный раздел пуст. Взгляните на другие анкеты, которые мы нашли для Вас в городе {{ city.name|trans }}.{% endif %}
  45.         {% if source == 'country' %}К сожалению, данный раздел пуст. Взгляните на анкеты которые мы подобрали для Вас.{% endif %}
  46.         {% if source == 'massage_service' %}К сожалению, все девушки для которых массаж — это призвание сейчас отдыхают. Посмотрите проституток, которые также готовы сделать Вам массаж.{% endif %}
  47.     </h6>
  48.     {% endif %}
  49. #}
  50.     {{ porpaginas_render(profiles) }}
  51.     {% block mainList %}
  52.     <div id="profile-list" class="row mb-3">
  53.         {% include 'ProfileList/list.profiles.html.twig' with { 'top_profile': profiles.currentPage < 2 ? profile_top_placement() : null } %}
  54.     </div>
  55.     {% endblock %}
  56.     {% block showMore %}
  57.         {% include 'ProfileList/_show_more.profiles.html.twig' %}
  58.     {% endblock showMore %}
  59.     {{ porpaginas_render(profiles) }}
  60.     {% set cities_circle = city_main_pages_linkage_circle() %}
  61.     {% if cities_circle is not null %}
  62.         <div class="city_main_pages_linkage_circle">
  63.             <h3>Также рекомендуем:</h3>
  64.             {% if cities_circle[0] is not null %}<a href="{{ cities_circle[0].href }}" style="text-transform: capitalize;">{{ cities_circle[0].text }}</a><br/>{% endif %}
  65.             {% if cities_circle[1] is not null %}<a href="{{ cities_circle[1].href }}" style="text-transform: capitalize;">{{ cities_circle[1].text }}</a>{% endif %}
  66.         </div>
  67.     {% endif %}
  68.     {% set cities_circle = city_main_pages_linkage_by_countries_circle() %}
  69.     {% if cities_circle is not null %}
  70.     <div class="city_main_pages_linkage_circle">
  71.         <h3>Также рекомендуем:</h3>
  72.         {% if cities_circle[0] is not null %}<a href="{{ cities_circle[0].href }}" style="text-transform: capitalize;">{{ cities_circle[0].text }}</a><br/>{% endif %}
  73.         {% if cities_circle[1] is not null %}<a href="{{ cities_circle[1].href }}" style="text-transform: capitalize;">{{ cities_circle[1].text }}</a>{% endif %}
  74.     </div>
  75.     {% endif %}
  76.     {#
  77.         если указать в вызове параметр kind, напр. 'myCustomKind', то из перевода будут браться соответственно
  78.         MYCUSTOMKIND_FIRST_ и MYCUSTOMKIND_SECOND_ + падеж указанный в конфиге кольцовки, напр. MYCUSTOMKIND_FIRST_NOMINATIVE
  79.         можно использовать вызов без параметра, тогда из перевода будут браться соответственно PROSTITUTES_ и INDIVIDUALS_ с соответствующими падежfvb
  80.     #}
  81.     {% set circle = inner_linkage_circle('prostitutes') %}
  82.     {% if circle is not null %}
  83.         <div class="inner_linkage_circle">
  84.                 <h3>Также интересуются:</h3>
  85.                 <a href="{{ circle[0].href }}">{{ circle[0].text }}</a><br/>
  86.                 <a href="{{ circle[1].href }}">{{ circle[1].text }}</a>
  87.         </div>
  88.     {% endif %}
  89.     {% set districts_circle = districts_linkage_circle() %}
  90.     {% if districts_circle is not null %}
  91.         <div class="city_main_pages_linkage_circle">
  92.             <h3>Также интересуются:</h3>
  93.             {% if districts_circle[0] is not null %}<a href="{{ districts_circle[0].href }}" style="text-transform: capitalize;">{{ districts_circle[0].text }}</a><br/>{% endif %}
  94.             {% if districts_circle[1] is not null %}<a href="{{ districts_circle[1].href }}" style="text-transform: capitalize;">{{ districts_circle[1].text }}</a>{% endif %}
  95.         </div>
  96.     {% endif %}
  97.     {% set stations_circle = station_pages_linkage_circle() %}
  98.     {% if stations_circle is not null %}
  99.         <div class="station_pages_linkage_circle">
  100.             <h3>Также интересуются:</h3>
  101.             {% if stations_circle[0] is not null %}<a href="{{ stations_circle[0].href }}">{{ stations_circle[0].text }}</a><br/>{% endif %}
  102.             {% if stations_circle[1] is not null %}<a href="{{ stations_circle[1].href }}">{{ stations_circle[1].text }}</a>{% endif %}
  103.         </div>
  104.     {% endif %}
  105.     {% include 'last_girl_list.html.twig' %}
  106.     {# комменты анкет для листинга станции #}
  107.     {% include 'ProfileList/station_comments.partial.html.twig' %}
  108.     {% include 'ProfileList/profile_filter.partial.html.twig' %}
  109.     <h3>Виджет Анкеты по категориям</h3>
  110.     <div id="widget_profiles_by_categories" style="display:flex;gap:10px"></div>
  111.     <script type="text/javascript">
  112.         {% set route = app.request.get('_route') %}
  113.         {% if
  114.             route == 'homepage'
  115.             or (route == 'profile_list.list_by_city' and app.request.get('city').id == default_city().id)
  116.         %}
  117.             document.addEventListener('DOMContentLoaded', _ => {
  118.                 fetch('{{ path('profile_widget.by_categories', {city: app.request.attributes.get('city', default_city()).uriIdentity}) }}', {
  119.                     method: 'GET',
  120.                     headers: {
  121.                         "X-Requested-With": "XMLHttpRequest"
  122.                     },
  123.                 }).then(response => {
  124.                     if (response.status < 300) {
  125.                         return response.text();
  126.                     } else {
  127.                         console.warn("🤔");
  128.                         return null;
  129.                     }
  130.                 }).then(response => {
  131.                     document.querySelector('#widget_profiles_by_categories').innerHTML = response;
  132.                     filterData();
  133.                 });
  134.             });
  135.         {% endif %}
  136.     </script>
  137. {% endblock %}