templates/ProfileList/profile.html.twig line 1

Open in your IDE?
  1. {%- macro _get_min(price1, price2, currency) -%}
  2.     {%- set price1 = price1 is defined and price1 > 0 ? price1 : 999999999 -%}
  3.     {%- set price2 = price2 is defined and price2 > 0 ? price2 : 999999999 -%}
  4.     {# {%- set currency = currency == 'USD' ? '$' : (currency == 'RUB' ? 'р' : '')  -%} #}
  5.     {%- set currency = 'р' -%}
  6.     {%- if price1 == 999999999 and price2 == 999999999 -%}
  7.         -
  8.     {%- elseif price1 == 999999999 -%}
  9.         {{price2|number_format(0, '.', ' ')}} {{ currency }}
  10.     {%- elseif price2 == 999999999 -%}
  11.         {{price1|number_format(0, '.', ' ')}} {{ currency }}
  12.     {%- else -%}
  13.         {{ min([price1,price2])|number_format(0, '.', ' ') }} {{ currency }}
  14.     {%- endif -%}
  15. {%- endmacro -%}
  16. {%- macro _check_out_price(price1, price2, price3) -%}
  17.     {%- set maxPrice = 999999999 %}
  18.     {%- set price1 = price1 is defined and price1 > 0 ? price1 : maxPrice -%}
  19.     {%- set price2 = price2 is defined and price2 > 0 ? price2 : maxPrice -%}
  20.     {%- set price3 = price3 is defined and price3 > 0 ? price3 : maxPrice -%}
  21.     {%- if price1 != maxPrice or price2 != maxPrice or price3 != maxPrice -%}
  22.         1
  23.     {%- else -%}
  24.         0
  25.     {%- endif -%}
  26. {%- endmacro -%}
  27. {%- macro _gen_alt(profile) -%}
  28.     {# {{ 'портале|сайте|ресурсе|веб сайте'|seo_morphing(_id) }}
  29.     '<= 1999'
  30.     '2000 - 7999'
  31.     '>= 8000' #}
  32.     {%- set morpID = profile.id -%}
  33.     {%- set maxPrice = 999999999 -%}
  34.     {%- set priceType = -1 -%}
  35.     {%- set isApart = false -%}
  36.     {%- set isOut = false -%}
  37.     {%- set price1 = profile.apartmentsPricing.oneHourPrice -%}
  38.     {%- set price2 = profile.apartmentsPricing.twoHoursPrice -%}
  39.     {%- set price3 = profile.apartmentsPricing.nightPrice -%}
  40.     {%- set priceApart1 = price1 is defined and price1 > 0 ? price1 : maxPrice -%}
  41.     {%- set priceApart2 = price2 is defined and price2 > 0 ? price2 : maxPrice -%}
  42.     {%- set priceApart3 = price3 is defined and price3 > 0 ? price3 : maxPrice -%}
  43.     {%- set priceApartMin = maxPrice -%}
  44.     {%- set price1 = profile.takeOutPricing.oneHourPrice -%}
  45.     {%- set price2 = profile.takeOutPricing.twoHoursPrice -%}
  46.     {%- set price3 = profile.takeOutPricing.nightPrice -%}
  47.     {%- set priceOut1 = price1 is defined and price1 > 0 ? price1 : maxPrice -%}
  48.     {%- set priceOut2 = price2 is defined and price2 > 0 ? price2 : maxPrice -%}
  49.     {%- set priceOut3 = price3 is defined and price3 > 0 ? price3 : maxPrice -%}
  50.     {% set priceOutMin = maxPrice -%}
  51.     {% if priceApart1 != maxPrice or priceApart2 != maxPrice or priceApart3 != maxPrice -%}
  52.         {% set priceApartMin = min([priceApart1, priceApart2, priceApart3]) -%}
  53.         {% if priceApartMin < 2000 -%}
  54.             {% set priceType = 0 -%}
  55.         {% elseif priceApartMin < 8000 -%}
  56.             {% set priceType = 1 -%}
  57.         {% else -%}
  58.             {% set priceType = 2 -%}
  59.         {% endif -%}
  60.         {% set isApart = true -%}
  61.     {% elseif priceOut1 != maxPrice or priceOut2 != maxPrice or priceOut3 != maxPrice -%}
  62.         {% set priceOutMin = min([priceOut1, priceOut2, priceOut3]) -%}
  63.         {% if priceOutMin < 2000 -%}
  64.             {% set priceType = 0 -%}
  65.         {% elseif priceOutMin < 8000 -%}
  66.             {% set priceType = 1 -%}
  67.         {% else -%}
  68.             {% set priceType = 2 -%}
  69.         {% endif -%}
  70.         {% set isOut = true -%}
  71.     {% endif -%}
  72.     {% if priceType == -1 -%}
  73.         {% set priceType = 1 -%}
  74.     {% endif -%}
  75.     {% set firstStation = '' -%}
  76.     {% if profile.stations|length > 0 -%}
  77.         {% set firstStation = profile.stations|first -%}
  78.     {% endif -%}
  79.     {%- set agePlural = '%age% лет'|trans({'lastnum': profile.personParameters.age|last}) -%}
  80.     {%- set static_orderMe = "снять|вызвать|заказать"|seo_morphing(morpID) -%}
  81.     {%- set staticData = " " ~ profile.name ~ ", " ~ profile.personParameters.age ~ " " ~ agePlural ~ (firstStation ? ', ' ~ firstStation.name|trans : '' ) ~ ", " ~ static_orderMe ~ (profile.seo.phone is defined ? " по тел. " ~ profile.seo.phone : '') ~ ", " ~ profile.id -%}
  82.     {%- if priceType == 0 -%}
  83.         {{- "Анкета " ~ "дешевой индивидуалки|дешевой эскортницы|дешевой проститутки|дешевой шлюхи|дешевой девушки по вызову|дешевой шалавы|дешевой путаны|недорогой индивидуалки|недорогой проститутки|недорогой шлюхи|недорогой девушки по вызову|недорогой шалавы|недорогой путаны|бюджетной индивидуалки|бюджетной проститутки|бюджетной шлюхи|бюджетной девушки по вызову|бюджетной шалавы|бюджетной путаны"|seo_morphing(morpID) ~ staticData -}}
  84.     {%- elseif priceType == 1 -%}
  85.         {{- "Индивидуалка|Проститутка|Шлюха|Эскортница|Девушка по вызову|Шалава|Путана"|seo_morphing(morpID) ~ staticData -}}
  86.     {%- elseif priceType == 2 -%}
  87.         {{- "Анкета " ~ "элитной индивидуалки|элитной проститутки|элитной эскортницы|элитной шлюхи|элитной девушки по вызову|элитной шалавы|элитной путаны|дорогой индивидуалки|дорогой проститутки|дорогой шлюхи|дорогой девушки по вызову|дорогой шалавы|дорогой путаны|VIP индивидуалки|VIP проститутки|VIP шлюхи|VIP девушки по вызову|VIP шалавы|VIP путаны|ВИП индивидуалки|ВИП проститутки|ВИП шлюхи|ВИП девушки по вызову|ВИП шалавы|ВИП путаны"|seo_morphing(morpID) ~ staticData -}}
  88.     {%- endif -%}
  89. {%- endmacro -%}
  90. {%- set isProfileInDefaultCity = profile.city.uriIdentity == default_city().uriIdentity -%}
  91. {%- set isProfileWithSubway = profile.stations|length > 0 -%}
  92. {%- set lazyLoad = lazyLoad is defined ? lazyLoad : false -%}
  93. {%- set isSelfies = profile.selfies is iterable ? (profile.selfies|length > 0) : profile.selfies -%}
  94. {%- set isVideos = profile.videos is iterable ? (profile.videos|length > 0) : profile.videos -%}
  95. {%- set isComments = profile.comments is iterable ? (profile.comments|length > 0) : profile.comments -%}
  96. {%- set showAvatarAlt = false -%}
  97. {% set showOutProfileInfo = showOutProfileInfo is defined ? showOutProfileInfo : false %}
  98. {% set showAgeProfileAfterName = showAgeProfileAfterName is defined ? showAgeProfileAfterName : true %}
  99. {% set showPhoneNumberOnBottom = showPhoneNumberOnBottom is defined ? showPhoneNumberOnBottom : false %}
  100. {% set showCity = showCity is defined ? showCity : true %}
  101. {# {{dump(profile.takeOutPricing)}}
  102. {{dump(isHasOutPricing)}} #}
  103. <li class="card profile-card white-round{{ isProfileTop ? ' card--top' : '' }}" data-profile-id="{{ profile.id }}"{% if likeButton %} data-favorite-button{% endif %}{% if hidePreferredButton %} data-preferred-button{% endif %}>
  104.     <a class="card-link" href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" target="_blank">
  105.         <span class="visually-hidden">{{ profile.name|trans }}</span>
  106.     </a>
  107.     {% if hidePreferredButton %}
  108.         <preferred-remove-button
  109.             api-hide="{{ path('account.preferred_profiles.hide', {'profile': profile.id}) }}"
  110.         >
  111.             <button class="btn btn-profile btn-profile--hide d-flex-c" title="Больше не показывать">
  112.                 <svg class="preferred-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M20.402 5.292 18.71 3.6l-6.708 6.708L5.294 3.6 3.602 5.292 10.31 12l-6.708 6.708L5.294 20.4l6.708-6.708L18.71 20.4l1.692-1.692L13.694 12l6.708-6.708Z"/></svg>
  113.                 <span class="fw-600">Больше не показывать</span>
  114.             </button>
  115.         </preferred-remove-button>
  116.     {% endif %}
  117.     {% if likeButton %}
  118.         <favorite-button
  119.             api-check="{{ path('account.favourites.check', {'profile': profile.id}) }}"
  120.             api-like="{{ path('account.favourites.add', {profile: profile.id}) }}"
  121.             api-unlike="{{ path('account.favourites.remove', {profile: profile.id}) }}"
  122.             registration-url="{{ path('app_security_register') }}?user=visitor"
  123.         >
  124.             <button class="btn btn-profile btn-profile--like is-loading d-flex-c" data-tippy-main="Добавить в избранное" title="Добавить в избранное">
  125.                 <svg class="like-fill" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#FF3F40" fill-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.519l-.013.011-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09Z" clip-rule="evenodd"/></svg>
  126.                 <svg class="like-border" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.519l-.013.011-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09Zm0 13.56.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1Z" clip-rule="evenodd"/></svg>
  127.             </button>
  128.         </favorite-button>
  129.     {% endif %}
  130.     <div class="card-layout d-grid">
  131.         <div class="card__avatar profile-card__avatar">
  132.             <div class="profile-card__avatar-link">
  133.                 {%- set photo = profile|avatar -%}
  134.                 {%- if photo and photo.path -%}
  135.                     <img class="card__avatar-image profile-card__avatar-image" src="{{ responsive_asset(photo.path, 'profile_media', "220x308", "jpg") }}" alt="{{- showAvatarAlt ? _self._gen_alt(profile) : '' -}}"{% if not lazyLoad %} loading="lazy"{% endif %} width="220" height="308">
  136.                 {%- else -%}
  137.                     <img class="card__avatar-image profile-card__avatar-image"  src="{{ asset('assets/images/empty-photo.svg') }}" style="object-fit:contain;padding:10px;" width="220" height="308">
  138.                 {%- endif -%}
  139.             </div>
  140.             <div class="profile-card__icons d-flex-c">
  141.                 <div data-tippy-icon="{{ isSelfies ? 'Есть' : 'Нет' }} селфи">
  142.                     <svg class="profile-card__icon{{ isSelfies ? '' : ' off' }}" width="20" height="20">
  143.                         <use href="#selfie"></use>
  144.                     </svg>
  145.                 </div>
  146.                 <div data-tippy-icon="{{ isVideos ? 'Есть' : 'Нет' }} видео">
  147.                     <svg class="profile-card__icon{{ isVideos ? '' : ' off' }}" width="20" height="20">
  148.                         <use href="#video"></use>
  149.                     </svg>
  150.                 </div>
  151.                 <div data-tippy-icon="{{ isComments ? 'Есть' : 'Нет' }} отзывы">
  152.                     <svg class="profile-card__icon{{ isComments ? '' : ' off' }}" width="20" height="20">
  153.                         <use href="#comment"></use>
  154.                     </svg>
  155.                 </div>
  156.             </div>
  157.         </div>
  158.         <div class="profile-card__info">
  159.             <div class="profile-card__personal clr-text-base">
  160.                 {# <div class="profile-card__personal-item d-flex">
  161.                     <span class="profile-card__personal-title">Возраст</span>
  162.                     <span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.age ? profile.personParameters.age : '-' }}</span>
  163.                 </div> #}
  164.                 <div class="profile-card__personal-item d-flex">
  165.                     <span class="profile-card__personal-title">Грудь</span>
  166.                     <span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.breastSize ? profile.personParameters.breastSize : '-' }}</span>
  167.                 </div>
  168.                 <div class="profile-card__personal-item d-flex">
  169.                     <span class="profile-card__personal-title">Рост</span>
  170.                     <span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.height ? profile.personParameters.height : '-' }}</span>
  171.                 </div>
  172.                 <div class="profile-card__personal-item d-flex">
  173.                     <span class="profile-card__personal-title">Вес</span>
  174.                     <span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.weight ? profile.personParameters.weight : '-' }}</span>
  175.                 </div>
  176.                 {% if showOutProfileInfo %}
  177.                     <div class="profile-card__personal-item d-flex">
  178.                         <span class="profile-card__personal-title">Выезд</span>
  179.                         <span class="profile-card__personal-value fw-600 ml-auto">Есть</span>
  180.                     </div>
  181.                 {% endif %}
  182.             </div>
  183.             {%- set currencyProfile -%}{{ profile.city.countryCode|country_currency }}{%- endset -%}
  184.             {%- set minPriceHour -%}{{ _self._get_min(profile.apartmentsPricing.oneHourPrice,profile.takeOutPricing.oneHourPrice,currencyProfile) }}{%- endset -%}
  185.             {%- set minPriceTwo -%}{{ _self._get_min(profile.apartmentsPricing.twoHoursPrice,profile.takeOutPricing.twoHoursPrice,currencyProfile) }}{%- endset -%}
  186.             {%- set minPriceNight -%}{{ _self._get_min(profile.apartmentsPricing.nightPrice,profile.takeOutPricing.nightPrice,currencyProfile) }}{%- endset -%}
  187.             <div class="card-time profile-card-time">
  188.                 <div class="card-time-item d-flex clr-pre-white-bg">
  189.                     <span class="card-time-title">Час</span>
  190.                     <span class="card-time-value fw-700 ml-auto clr-main-text">{{ minPriceHour != '-' ? minPriceHour : '-' }}</span>
  191.                 </div>
  192.                 <div class="card-time-item d-flex clr-pre-white-bg">
  193.                     <span class="card-time-title">2 часа</span>
  194.                     <span class="card-time-value fw-700 ml-auto clr-main-text">{{ minPriceTwo != '-' ? minPriceTwo : '-' }}</span>
  195.                 </div>
  196.                 <div class="card-time-item d-flex clr-pre-white-bg">
  197.                     <span class="card-time-title">Ночь</span>
  198.                     <span class="card-time-value fw-700 ml-auto clr-main-text">{{ minPriceNight != '-' ? minPriceNight : '-' }}</span>
  199.                 </div>
  200.                 {# <div class="card-time-item d-flex">
  201.                     <span class="card-time-title">Выезд</span>
  202.                     <span class="card-time-value fw-700 ml-auto clr-main-text">{{ hasOutPrice == '1' ? 'Есть' : '-' }}</span>
  203.                 </div> #}
  204.             </div>
  205.             {# {% include 'ProfileList/tags.html.twig' with { 'profile': profile, classes: {list: 'profile-card__tags d-flex', tag: 'profile-card__tags-item clr-main-text'} } %} #}
  206.         </div>
  207.     </div>
  208.     {%- set agePlural = '%age% лет'|trans({'lastnum': profile.personParameters.age|last}) -%}
  209.     <div class="card__bio-name profile-card__bio-name">
  210.         <div class="profile-card__bio-link fw-700" href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" target="_blank" title="{{ profile.name|trans }}{{ showAgeProfileAfterName ? ' возраст ' ~ profile.personParameters.age : '' }}">
  211.             <span class="profile-card__bio-text">{{ profile.name|trans }}</span>
  212.             {%- if showAgeProfileAfterName %}
  213.                 <span class="profile-card__bio-age mr-1">, {{ profile.personParameters.age }} {{ agePlural }}</span>
  214.             {% endif %}
  215.             {%- if (profile.isApproved) -%}
  216.                 <svg class="profile-card__bio-icon mr-1" width="24" height="25" data-tippy-verify="Фото проверено">
  217.                     <use xlink:href="#verify">
  218.                 </svg>
  219.             {%- endif -%}
  220.             {%- if isProfileTop %}<svg width="20" height="21" fill="none" data-tippy-main="ТОП-девушка"><g fill="#FF3F40" clip-path="url(#profile-top-{{ profile-id }})"><path fill-rule="evenodd" d="M10 20.5c5.523 0 10-4.477 10-10S15.523.5 10 .5 0 4.977 0 10.5s4.477 10 10 10Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z" clip-rule="evenodd"/><path d="M8.119 9.996c.532-.342.881-.496 1.29-.789v6.958c0 .185.15.335.336.335h1.789a.466.466 0 0 0 .466-.466V6.332a1 1 0 0 0-1.54-.842L6.87 7.797a1 1 0 0 0-.282 1.41l.388.56a.838.838 0 0 0 1.143.23Z"/></g><defs><clipPath id="profile-top-{{ profile-id }}"><path fill="#fff" d="M0 .5h20v20H0z"/></clipPath></defs></svg>{%- endif -%}
  221.         </div>
  222.     </div>
  223.     <div class="profile-card__bio">
  224.         {%- if profile.districts|length > 0 -%}
  225.             <div class="profile-card__metro d-flex-c">
  226.                 {%- set district = profile.districts|first -%}
  227.                 {# <a class="card__metro-link card__district-link metro-link d-flex-c" href="{{ path('profile_list.list_by_district', {'city': profile.city.uriIdentity, 'district': district.uriIdentity}) }}" target="_blank" title="{{ district.name|trans }}"> #}
  228.                 <span class="card__metro-link card__district-link d-flex-c">
  229.                     <svg class="mr-1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#FF3F40" d="M.22 8.08c.25.24.49.32.97.32l5.25.02c.05 0 .09 0 .1.03.03.02.04.06.04.1l.02 5.26c0 .48.08.72.32.97.33.33.79.27 1.13-.06.18-.18.32-.48.45-.75l5.3-11.45c.29-.58.25-1-.03-1.3-.28-.27-.71-.3-1.3-.03L1.05 6.5c-.28.14-.58.28-.76.46-.33.34-.39.8-.06 1.13"/></svg>
  230.                     <span>{{- district.name|trans -}}</span>
  231.                 </span>
  232.                 {# </a> #}
  233.             </div>
  234.         {%- endif -%}
  235.             <div class="profile-card__metro d-flex-c">
  236.                 {# Profile in default city and with subway station #}
  237.                 {%- if isProfileInDefaultCity and isProfileWithSubway -%}
  238.                     {# If its station listing #}
  239.                     {%- if 'profile_list.list_by_station' in app.request.get('_route') -%}
  240.                         {%- set station = app.request.attributes.get('station') -%}
  241.                     {%- else -%}
  242.                         {%- set station = profile.stations|first -%}
  243.                     {%- endif -%}
  244.                     <a class="card__metro-link metro-link d-flex-c" href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}" target="_blank" title="{{ station.name }}">
  245.                         {%- include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} -%}
  246.                         {{- station.name -}}
  247.                     </a>
  248.                 {%- else -%}
  249.                     {# Profile in default city and without subway station #}
  250.                     {%- if isProfileInDefaultCity and showCity -%}
  251.                         <a class="card__metro-link metro-link d-flex-c" href="{{ path('profile_list.list_by_city', {'city': profile.city.uriIdentity}) }}" target="_blank" title="{{ profile.city.name|trans }}">
  252.                             <svg class="mr-1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#FF3F40" d="M.22 8.08c.25.24.49.32.97.32l5.25.02c.05 0 .09 0 .1.03.03.02.04.06.04.1l.02 5.26c0 .48.08.72.32.97.33.33.79.27 1.13-.06.18-.18.32-.48.45-.75l5.3-11.45c.29-.58.25-1-.03-1.3-.28-.27-.71-.3-1.3-.03L1.05 6.5c-.28.14-.58.28-.76.46-.33.34-.39.8-.06 1.13"/></svg>
  253.                             <span>{{ profile.city.name|trans }}</span>
  254.                         </a>
  255.                     {%- else -%}
  256.                         {# На городах МО вырезать город с тумбы анкеты на листингах #}
  257.                         {# <div class="is-flex level">
  258.                             <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C6.06694 0 4.5 1.76281 4.5 3.9375C4.5 5.69562 6.7875 8.9 7.66389 10.0631C7.84139 10.2987 8.15889 10.2987 8.33611 10.0631C9.2125 8.9 11.5 5.69562 11.5 3.9375C11.5 1.76281 9.93306 0 8 0ZM0.558889 6.74844C0.393938 6.82266 0.252536 6.95078 0.152919 7.11626C0.0533024 7.28175 3.95058e-05 7.47701 0 7.67688L0 15.4994C0 15.8531 0.3175 16.095 0.609444 15.9637L4 13.9997V7.71625C3.75444 7.21688 3.14389 6.465 3 6L0.558889 6.74844ZM8 12.2397C7.60917 12.2397 7.23944 12.0466 6.98583 11.7097C6.43972 10.9847 5.85889 10.1591 5.33333 9.31219V13.9997L10.6667 15.9997V9.3125C10.1411 10.1591 9.56056 10.985 9.01417 11.71C8.76056 12.0466 8.39083 12.2397 8 12.2397ZM15.3906 5.03625L12 7.71625V15.9637L15.4411 14.2516C15.6061 14.1774 15.7475 14.0493 15.8471 13.8838C15.9468 13.7183 16 13.523 16 13.3231V5.50063C16 5.14688 15.6825 4.905 15.3906 5.03625Z" fill="#FF3F40"/></svg>
  259.                             <span>{{ profile.city.name|trans }}</span>
  260.                         </div> #}
  261.                     {%- endif -%}
  262.             </div>
  263.         {%- endif -%}
  264.     </div>
  265.     {# <div class="profile-card__bio profile-card__bio-with-text">
  266.         {% set description = profile.description|trans %}
  267.         <p class="profile-card__bio-desc mb-2">{{ description|length > 100 ? description|slice(0, 100) : description }}...</p>
  268.     </div> #}
  269.     {% if showPhoneNumberOnBottom %}
  270.         <div class="profile-card__bio">
  271.             {%- if profile.isActive or not profile.isHidden -%}
  272.                 {% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %}
  273.                 <button class="card__phone profile-card__phone btn btn-main-border btn-fluid fw-600" type="button" onclick="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')">
  274.                     <svg class="btn-icon" width="21" height="20" fill="none"><path d="M6.583 2.5H3.666a.836.836 0 0 0-.833.834C2.833 11.159 9.175 17.5 17 17.5a.836.836 0 0 0 .833-.833v-2.908a.836.836 0 0 0-.833-.834 9.503 9.503 0 0 1-2.975-.475.7.7 0 0 0-.259-.041.854.854 0 0 0-.591.241l-1.834 1.834A12.625 12.625 0 0 1 5.85 8.992l1.833-1.833a.836.836 0 0 0 .208-.85 9.467 9.467 0 0 1-.475-2.975.836.836 0 0 0-.833-.834Z"/></svg>
  275.                     <span class="btn-text">Показать телефон</span>
  276.                 </button>
  277.                 <!--noindex--><a href="tel:{{ onlyPhoneNumber }}" rel="nofollow" class="card__phone profile-card__phone btn btn-main-border btn-fluid fw-600 is-active d-none">
  278.                     <svg class="btn-icon" width="21" height="20" fill="none"><path d="M6.583 2.5H3.666a.836.836 0 0 0-.833.834C2.833 11.159 9.175 17.5 17 17.5a.836.836 0 0 0 .833-.833v-2.908a.836.836 0 0 0-.833-.834 9.503 9.503 0 0 1-2.975-.475.7.7 0 0 0-.259-.041.854.854 0 0 0-.591.241l-1.834 1.834A12.625 12.625 0 0 1 5.85 8.992l1.833-1.833a.836.836 0 0 0 .208-.85 9.467 9.467 0 0 1-.475-2.975.836.836 0 0 0-.833-.834Z"/></svg>
  279.                     <span class="btn-text">{{- profile.phoneNumber -}}</span>
  280.                 </a><!--/noindex-->
  281.             {%- endif -%}
  282.         </div>
  283.     {% endif %}
  284. </li>