templates/ProfileList/list.profiles.html.twig line 1

Open in your IDE?
  1. {% if null != profiles or profile_top_placement is defined %}
  2. <h2 class="px-3 w-100">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['товар', 'товара', 'товаров']) }}</h2>
  3. {% endif %}
  4. {% set profiles_array = (profiles is iterable) ? ((profiles.array is defined) ? profiles.array : profiles) : [] %}
  5. {% if top_profile is defined and null != top_profile and null != profiles %}
  6.     {% set profiles_array = [top_profile]|merge(profiles_array) %}
  7. {% endif %}
  8. {% for profile in profiles %}
  9.     <div class="col-4">
  10.         <div class="card" alt="{{ profile.seo ? profile.seo.phone : '' }}">
  11.             {% set photo = profile|avatar %}
  12.             {% if photo is not null %}
  13.                 <img class="card-img-top" src="{{ responsive_asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar', '357x500', 'jpg') }}" alt="{{ profile.seo ? profile.seo.phone : '' }}">
  14.             {% endif %}
  15.             <div class="card-body">
  16.                 {% if profile.isApproved %}APPROVED{% endif %}
  17.                 <h5 class="card-title"><a href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" title="">{{ profile.name|trans }} (pos: {{ profile.position ?? '' }})</a></h5>
  18.                 {% if profile.isActive or not profile.hidden %}
  19.                     <h6 class="card-subtitle mb-2"><a href="tel:{{ profile.phoneNumber }}">{{ profile.phoneNumber }}</a></h6>
  20.                 {% endif %}
  21.                 {% for station in profile.stations %}
  22.                     <a href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">{{ station.name|trans }}</a>
  23.                     {% if not loop.last %}, {% endif %}
  24.                 {% endfor %}
  25.                 <dl class="small">
  26.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  27.                     <dd>{{ profile.personParameters.age }}</dd>
  28.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  29.                     <dd>{{ profile.personParameters.height }}</dd>
  30.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  31.                     <dd>{{ profile.personParameters.weight }}</dd>
  32.                     <dt>{% trans %}Грудь{% endtrans %}</dt>
  33.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  34.                 </dl>
  35.                 <dl class="small">
  36.                     <dt>{% trans %}Час{% endtrans %}</dt>
  37.                     <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  38.                     <dt>{% trans %}2 часа{% endtrans %}</dt>
  39.                     <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  40.                     <dt>{% trans %}Ночь{% endtrans %}</dt>
  41.                     <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  42.                 </dl>
  43.                 <p class="small">
  44.                     {% if profile.apartmentsPricing.isProvided %}
  45.                         {{ 'апартаменты'|trans }}
  46.                     {% endif %}
  47.                     {% if profile.takeOutPricing.isProvided %}
  48.                         {{ 'выезд'|trans }}
  49.                     {% endif %}
  50.                 </p>
  51. {#                        <p>#}
  52. {#                            <ul>#}
  53. {#                                {% for service in profile.providedServices %}#}
  54. {#                                    <li class="text-success">#}
  55. {#                                        <a>{{ service.service.name|trans }}</a>#}
  56. {#                                    </li>#}
  57. {#                                {% endfor %}#}
  58. {#                            </ul>#}
  59. {#                        </p>#}
  60.                 <p class="card-text text-muted small">{{ profile.description|trans }}</p>
  61.                 <p class="card-text text-muted small">{{ (top_profile is defined and profile != top_profile) and profile.isStandard ? 'standard' }}</p>
  62.                 {% include 'ProfileList/tags.html.twig' with { 'profile': profile } %}
  63.             </div>
  64.         </div>
  65.     </div>
  66.     {#{% if loop.index % 3 == 0 %}</div><div class="row mb-3">{% endif %}#}
  67. {% endfor %}
  68. {% if show_pagination is defined %}
  69.     <div class="filtered_profiles_pagination">
  70.         {{ porpaginas_render(profiles) }}
  71.     </div>
  72. {% endif %}