templates/ProfileList/list.html.twig line 64

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% set city = app.request.get('city', default_city()) %}
  3. {% block title %}
  4.     {{ seo_title() }}
  5. {% endblock %}
  6. {% block metaDescription %}
  7.     <meta name="description" content="{{ seo_description() }}">
  8. {% endblock %}
  9. {% block navbar %}
  10.     {{ parent() }}
  11.     {% if profiles and profiles.currentPage >= 2 %}
  12.         {% set excludeRecommendationProfileIds = [] %}
  13.         {% include 'Recommendations/_profile_recommendations.html.twig' %}
  14.     {% endif %}
  15. {% endblock %}
  16. {% block mainContainer %}
  17.     {{ seo_top() }}
  18.     <h1>{{ seo_heading() }}</h1>
  19.     {#
  20.     {% if source is defined and source %}
  21.     <h6 style="background-color: #ee4056;height: 20px;">
  22.         {% if source == 'county' %}К сожалению, все девушки из округа <a href="{{ category_url }}">{{ county.name }}</a> сейчас отдыхают, посмотрите проституток из других округов города {{ city.name|trans }}.{% endif %}
  23.         {% if source == 'district' %}К сожалению, все девушки из района <a href="{{ category_url }}">{{ district.name }}</a> сейчас отдыхают, посмотрите проституток из других районов города {{ city.name|trans }}.{% endif %}
  24.         {% if source == 'station' %}К сожалению, все девушки работающие вблизи метро <a href="{{ category_url }}">{{ station.name }}</a> сейчас отдыхают, посмотрите проституток у других станций метро в этом районе города {{ city.name|trans }}.{% endif %}
  25.         {% if source == 'approved' or source == 'with_comments' or  source == 'with_video' or source == 'elite' or source == 'with_selfie' %}
  26.             {% if source == 'approved' %}
  27.                 {% set source_name = '<a href="' ~ path('profile_list.list_approved', {city:city.uriIdentity}) ~ '">Проверенные анкеты</a>' %}
  28.             {% elseif source == 'with_comments' %}
  29.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_comments', {city:city.uriIdentity}) ~ '">Анкеты с отзывами</a>' %}
  30.             {% elseif source == 'with_video' %}
  31.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_video', {city:city.uriIdentity}) ~ '">Анкеты с видео</a>' %}
  32.             {% elseif source == 'with_selfie' %}
  33.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_selfie', {city:city.uriIdentity}) ~ '">Анкеты с селфи</a>' %}
  34.             {% elseif source == 'with_whatsapp' %}
  35.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_whatsapp', {city:city.uriIdentity}) ~ '">Анкеты с WhatsApp</a>' %}
  36.             {% elseif source == 'with_telegram' %}
  37.                 {% set source_name = '<a href="' ~ path('profile_list.list_with_telegram', {city:city.uriIdentity}) ~ '">Анкеты с Telegram</a>' %}
  38.             {% elseif source == 'elite' %}
  39.                 {% set source_name = '<a href="' ~ path('profile_list.list_for_elite_girls', {city:city.uriIdentity}) ~ '">Элитные проститутки</a>' %}
  40.             {% else %}
  41.                 {% set source_name = '' %}
  42.             {% endif %}
  43.             {% if source_default == 'approved' %}К сожалению, все <a href="{{ category_url }}">проверенные девушки</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  44.             {% if source_default == 'with_comments' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть отзывы</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  45.             {% if source_default == 'with_video' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть видео</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  46.             {% if source_default == 'with_selfie' %}К сожалению, все <a href="{{ category_url }}">девушки, у которых есть селфи</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  47.             {% if source_default == 'with_whatsapp' %}К сожалению, все <a href="{{ category_url }}">девушки с WhatsApp</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  48.             {% if source_default == 'with_telegram' %}К сожалению, все <a href="{{ category_url }}">девушки с Telegram</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}{% endif %}
  49.         {% endif %}
  50.         {% if source == 'by_params' %}К сожалению, раздел пуст. Посмотрите другие анкеты, которые мы подобрали для Вас.{% endif %}
  51.         {% if source == 'service' %}К сожалению, все девушки, которые практикуют услугу <a href="{{ category_url }}">{{ service.name }}</a> сейчас отдыхают. Но мы подобрали для Вас девушек которые не против оказать Вам похожие услуги, взгляните!{% endif %}
  52.         {% if source == 'city' %}К сожалению, данный раздел пуст. Взгляните на другие анкеты, которые мы нашли для Вас в городе {{ city.name|trans }}.{% endif %}
  53.         {% if source == 'country' %}К сожалению, данный раздел пуст. Взгляните на анкеты которые мы подобрали для Вас.{% endif %}
  54.         {% if source == 'massage_service' %}К сожалению, все девушки для которых массаж — это призвание сейчас отдыхают. Посмотрите проституток, которые также готовы сделать Вам массаж.{% endif %}
  55.     </h6>
  56.     {% endif %}
  57.     #}
  58.     {{ porpaginas_render(profiles) }}
  59.     {% block mainList %}
  60.         <div id="profile-list" class="row mb-3">
  61.             {% include 'ProfileList/list.profiles.html.twig' %}
  62.         </div>
  63.     {% endblock %}
  64.     {% block showMore %}
  65.         {% include 'ProfileList/_show_more.profiles.html.twig' %}
  66.     {% endblock showMore %}
  67.     {{ porpaginas_render(profiles) }}
  68.     {% set cities_circle = city_main_pages_linkage_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 }}"
  73.                                                     style="text-transform: capitalize;">{{ cities_circle[0].text }}</a>
  74.                 <br/>{% endif %}
  75.             {% if cities_circle[1] is not null %}<a href="{{ cities_circle[1].href }}"
  76.                                                     style="text-transform: capitalize;">{{ cities_circle[1].text }}</a>{% endif %}
  77.         </div>
  78.     {% endif %}
  79.     {% set cities_circle = city_main_pages_linkage_by_countries_circle() %}
  80.     {% if cities_circle is not null %}
  81.         <div class="city_main_pages_linkage_circle">
  82.             <h3>Также рекомендуем:</h3>
  83.             {% if cities_circle[0] is not null %}<a href="{{ cities_circle[0].href }}"
  84.                                                     style="text-transform: capitalize;">{{ cities_circle[0].text }}</a>
  85.                 <br/>{% endif %}
  86.             {% if cities_circle[1] is not null %}<a href="{{ cities_circle[1].href }}"
  87.                                                     style="text-transform: capitalize;">{{ cities_circle[1].text }}</a>{% endif %}
  88.         </div>
  89.     {% endif %}
  90.     {#
  91.     если указать в вызове параметр kind, напр. 'myCustomKind', то из перевода будут браться соответственно
  92.     MYCUSTOMKIND_FIRST_ и MYCUSTOMKIND_SECOND_ + падеж указанный в конфиге кольцовки, напр. MYCUSTOMKIND_FIRST_NOMINATIVE
  93.     можно использовать вызов без параметра, тогда из перевода будут браться соответственно PROSTITUTES_ и INDIVIDUALS_ с соответствующими падежfvb
  94.     #}
  95.     {% set circle = inner_linkage_circle('prostitutes') %}
  96.     {% if circle is not null %}
  97.         <div class="inner_linkage_circle">
  98.             <h3>Также интересуются:</h3>
  99.             <a href="{{ circle[0].href }}">{{ circle[0].text }}</a><br/>
  100.             <a href="{{ circle[1].href }}">{{ circle[1].text }}</a>
  101.         </div>
  102.     {% endif %}
  103.     {% set districts_circle = districts_linkage_circle() %}
  104.     {% if districts_circle is not null %}
  105.         <div class="city_main_pages_linkage_circle">
  106.             <h3>Также интересуются:</h3>
  107.             {% if districts_circle[0] is not null %}<a href="{{ districts_circle[0].href }}"
  108.                                                        style="text-transform: capitalize;">{{ districts_circle[0].text }}</a>
  109.                 <br/>{% endif %}
  110.             {% if districts_circle[1] is not null %}<a href="{{ districts_circle[1].href }}"
  111.                                                        style="text-transform: capitalize;">{{ districts_circle[1].text }}</a>{% endif %}
  112.         </div>
  113.     {% endif %}
  114.     {% set stations_circle = station_pages_linkage_circle() %}
  115.     {% if stations_circle is not null %}
  116.         <div class="station_pages_linkage_circle">
  117.             <h3>Также интересуются:</h3>
  118.             {% if stations_circle[0] is not null %}<a
  119.                 href="{{ stations_circle[0].href }}">{{ stations_circle[0].text }}</a><br/>{% endif %}
  120.             {% if stations_circle[1] is not null %}<a
  121.                 href="{{ stations_circle[1].href }}">{{ stations_circle[1].text }}</a>{% endif %}
  122.         </div>
  123.     {% endif %}
  124.     {% include 'last_girl_list.html.twig' %}
  125.     {# комменты анкет для листинга станции #}
  126.     {% include 'ProfileList/station_comments.partial.html.twig' %}
  127.     {% include 'ProfileList/profile_filter.partial.html.twig' %}
  128.     <h3>Виджет Анкеты по категориям</h3>
  129.     <div id="widget_profiles_by_categories" style="display:flex;gap:10px"></div>
  130.     <script type="text/javascript">
  131.         {% set route = app.request.get('_route') %}
  132.         {% if
  133.             route == 'homepage'
  134.             or (route == 'profile_list.list_by_city' and app.request.get('city').id == default_city().id) %}
  135.         document.addEventListener('DOMContentLoaded', _ => {
  136.             fetch('{{ path('profile_widget.by_categories', {city: app.request.attributes.get('city', default_city()).uriIdentity}) }}', {
  137.                 method: 'GET',
  138.                 headers: {
  139.                     "X-Requested-With": "XMLHttpRequest"
  140.                 },
  141.             }).then(response => {
  142.                 if (response.status < 300) {
  143.                     return response.text();
  144.                 } else {
  145.                     console.warn("🤔");
  146.                     return null;
  147.                 }
  148.             }).then(response => {
  149.                 document.querySelector('#widget_profiles_by_categories').innerHTML = response;
  150.                 filterData();
  151.             });
  152.         });
  153.         {% endif %}
  154.     </script>
  155.     <script type="text/javascript">
  156.         document.addEventListener('DOMContentLoaded', function () {
  157.             const profileNodes = document.querySelectorAll('[data-profile-id]');
  158.             if (!profileNodes.length) {
  159.                 return;
  160.             }
  161.             const profileIds = Array.from(profileNodes)
  162.                 .map(node => parseInt(node.dataset.profileId, 10))
  163.                 .filter(Number.isInteger);
  164.             if (!profileIds.length) {
  165.                 return;
  166.             }
  167.             fetch('{{ path('profile_ctr.increase_shows') }}', {
  168.                 method: 'POST',
  169.                 headers: {
  170.                     'Content-Type': 'application/json',
  171.                     'X-Requested-With': 'XMLHttpRequest',
  172.                 },
  173.                 body: JSON.stringify({
  174.                     profiles: profileIds,
  175.                     source: '{{ source|default('') }}',
  176.                 }),
  177.             });
  178.         });
  179.     </script>
  180. {% endblock %}