templates/ProfilePreview/nearest_profiles.html.twig line 1

Open in your IDE?
  1. {% import '_macros/price_helpers.html.twig' as price_helpers %}
  2. <div class="recommended-widget">
  3.     <h2 class="border-line">Другие проститутки рядом</h2>
  4.     <div class="recommended-items-row flex-wrap" id="profileNearestContainer">
  5.     {% for profile in nearest_profiles %}
  6.         <div class="recommended-item-col" data-profile-id="{{ profile.id }}">
  7.             <div class="recommended-model">
  8.                 <a href="{{ path('profile_preview.page', {city: profile.city.uriIdentity, profile: profile.uriIdentity}) }}" class="rec-link d-block recommended-model__url">
  9.                     <p class="recommended-model__name m-0 rec-link">
  10.                         {%- if (profile.approved) -%}<svg class="icon mr-2">
  11.                             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-verification"></use>
  12.                         </svg>
  13.                         {%- endif -%}
  14.                         <span class="name">{{ profile.name|trans }}</span>, <span class="age">{{ profile.personParameters.age }}</span>
  15.                     </p>
  16.                     <div class="recommended-model__images">
  17.                         {%- set photo = profile|avatar -%}
  18.                         {%- if photo and photo.path -%}
  19.                             {%- set photoType = photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar' -%}
  20.                             <img class="img-fluid"
  21.                                 src="{{ responsive_asset(photo.path, photoType, "357x500", "jpg") }}"
  22.                                 alt="{{ profile.name|trans }}, {{ 'год'|plural(profile.personParameters.age) }}" width="357" height="500">
  23.                         {%- endif -%}
  24.                     </div>
  25.                 </a>
  26.                 {# {% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %} #}
  27.                 <p class="recommended-model__phone d-flex align-items-center flex-wrap flex-sm-nowrap mb-1">
  28.                     {# <span class="phone">{{- profile.phoneNumber -}}</span> #}
  29.                     {% set minProfilePrice = price_helpers.get_min_price_from_profile(profile, ' руб.') %}
  30.                     <span class="price">{{ minProfilePrice != '-' ? 'от ' ~ minProfilePrice : '' }}</span>{# class="ml-sm-auto" #}
  31.                 </p>
  32.                 {% if profile.stations|length > 0 %}
  33.                     {%- set station = profile.stations|first -%}
  34.                     <a class="d-flex fr align-items-center recommended-model__metro" href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">
  35.                         <svg class="icon mr-1">
  36.                             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
  37.                         </svg>
  38.                         <p class="station d-flex align-items-center mb-0">{{- station.name -}}</p>
  39.                     </a>
  40.                 {% endif %}
  41.             </div>
  42.         </div>
  43.     {% endfor %}
  44.     </div>
  45. </div>