templates/ProfileList/list.html.twig line 66

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