templates/ProfileList/list.html.twig line 63

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