templates/ProfilePreview/components/profile-phone.partial.twig line 1

Open in your IDE?
  1. {%- if profile.isActive or not profile.hidden -%}
  2.     {%- set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) -%}
  3.     <div class="telephone d-flex">
  4.         <button class="number" type="button" onclick="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')">
  5.             <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m19.63 15.67-4.56-4.15a1.12 1.12 0 0 0-1.56.05l-2.69 2.76a6.45 6.45 0 0 1-3.28-1.87 6.41 6.41 0 0 1-1.87-3.28l2.76-2.69a1.12 1.12 0 0 0 .05-1.56L4.33.37a1.12 1.12 0 0 0-1.56-.1L.33 2.36c-.19.2-.3.45-.32.73-.02.28-.34 6.93 4.82 12.08A17 17 0 0 0 16.9 20c.28-.01.54-.13.73-.33l2.09-2.43a1.12 1.12 0 0 0-.1-1.56Z"/></svg>
  6.             <span>Показать телефон</span>
  7.         </button>
  8.         <!--noindex--><a href="tel:{{ onlyPhoneNumber }}" rel="nofollow" class="number d-none">
  9.             <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m19.63 15.67-4.56-4.15a1.12 1.12 0 0 0-1.56.05l-2.69 2.76a6.45 6.45 0 0 1-3.28-1.87 6.41 6.41 0 0 1-1.87-3.28l2.76-2.69a1.12 1.12 0 0 0 .05-1.56L4.33.37a1.12 1.12 0 0 0-1.56-.1L.33 2.36c-.19.2-.3.45-.32.73-.02.28-.34 6.93 4.82 12.08A17 17 0 0 0 16.9 20c.28-.01.54-.13.73-.33l2.09-2.43a1.12 1.12 0 0 0-.1-1.56Z"/></svg>
  10.             <span>{{- profile.phoneNumber -}}</span>
  11.         </a><!--/noindex-->
  12.         <!--noindex-->
  13.         {%- if profile.messengers.telegram -%}
  14.             <svg class="telegram" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
  15.                 <circle cx="15" cy="15" r="15" fill="#2F89CE"/>
  16.                 <path d="M7.01303 15.2806L10.4616 16.5665L11.8059 20.8918C11.8644 21.184 12.2151 21.2425 12.4489 21.0671L14.3778 19.489C14.5531 19.3136 14.8454 19.3136 15.0792 19.489L18.5277 22.0023C18.7615 22.1777 19.1122 22.0608 19.1707 21.7685L21.7425 9.49399C21.8009 9.20174 21.5087 8.90949 21.2164 9.02639L7.01303 14.5207C6.66232 14.6376 6.66232 15.1637 7.01303 15.2806ZM11.6306 15.9235L18.4108 11.7735C18.5277 11.7151 18.6446 11.8905 18.5277 11.9489L12.975 17.151C12.7996 17.3263 12.6242 17.5601 12.6242 17.8524L12.4489 19.2552C12.4489 19.4305 12.1566 19.489 12.0982 19.2552L11.3968 16.6834C11.2214 16.3911 11.3384 16.0404 11.6306 15.9235Z" fill="white"/>
  17.             </svg>
  18.         {%- endif -%}
  19.         {%- if profile.messengers.whatsApp -%}
  20.             <a href="https://wa.me/{{ onlyPhoneNumber|replace({'+': ''}) }}?text=Привет,%20{{ profile.name }}!%20Нашел%20твою%20анкету%20на%20Стрелочках." rel="nofollow" class="whatsup" target="_blank">
  21.                 <svg class="whatsapp" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
  22.                     <circle cx="15" cy="15" r="15" fill="#48C95F"/>
  23.                     <path d="M20.9451 9.04687C19.4634 7.57031 17.4878 6.75 15.4024 6.75C11.0671 6.75 7.55488 10.25 7.55488 14.5703C7.55488 15.9375 7.93902 17.3047 8.59756 18.4531L7.5 22.5L11.6707 21.4062C12.8232 22.0078 14.0854 22.3359 15.4024 22.3359C19.7378 22.3359 23.25 18.8359 23.25 14.5156C23.1951 12.4922 22.4268 10.5234 20.9451 9.04687ZM19.189 17.3594C19.0244 17.7969 18.2561 18.2344 17.872 18.2891C17.5427 18.3437 17.1037 18.3438 16.6646 18.2344C16.3902 18.125 16.0061 18.0156 15.5671 17.7969C13.5915 16.9766 12.3293 15.0078 12.2195 14.8438C12.1098 14.7344 11.3963 13.8047 11.3963 12.8203C11.3963 11.8359 11.8902 11.3984 12.0549 11.1797C12.2195 10.9609 12.439 10.9609 12.6037 10.9609C12.7134 10.9609 12.878 10.9609 12.9878 10.9609C13.0976 10.9609 13.2622 10.9062 13.4268 11.2891C13.5915 11.6719 13.9756 12.6562 14.0305 12.7109C14.0854 12.8203 14.0854 12.9297 14.0305 13.0391C13.9756 13.1484 13.9207 13.2578 13.811 13.3672C13.7012 13.4766 13.5915 13.6406 13.5366 13.6953C13.4268 13.8047 13.3171 13.9141 13.4268 14.0781C13.5366 14.2969 13.9207 14.8984 14.5244 15.4453C15.2927 16.1016 15.8963 16.3203 16.1159 16.4297C16.3354 16.5391 16.4451 16.4844 16.5549 16.375C16.6646 16.2656 17.0488 15.8281 17.1585 15.6094C17.2683 15.3906 17.4329 15.4453 17.5976 15.5C17.7622 15.5547 18.75 16.0469 18.9146 16.1562C19.1341 16.2656 19.2439 16.3203 19.2988 16.375C19.3537 16.5391 19.3537 16.9219 19.189 17.3594Z" fill="white"/>
  24.                 </svg>
  25.             </a>
  26.         {%- endif -%}
  27.         <!--/noindex-->
  28.         <p class="info-site">Сообщите, что звоните с Стрелочек</p>
  29.     </div>
  30. {%- else -%}
  31.     <div class="disabled-account d-flex">
  32.         <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 16" width="18"><path fill="#fff" fill-rule="evenodd" d="M3.52 3.9L1.5 1.87 2.56.82l13.3 13.3-1.05 1.06-2.57-2.56A8.87 8.87 0 01.75 7.6a8.8 8.8 0 012.77-3.72zM9 3.47c2.84 0 5.38 1.6 6.62 4.13a7.23 7.23 0 01-1.81 2.34L14.86 11a8.85 8.85 0 002.39-3.4A8.87 8.87 0 006.27 2.4l1.24 1.25c.49-.1.98-.17 1.49-.17zm-.8.86l1.55 1.55c.43.19.77.53.96.96l1.55 1.55A3.36 3.36 0 008.2 4.33zM7.13 7.5L9.1 9.47 9 9.48a1.88 1.88 0 01-1.87-1.92V7.5zM5.9 6.27L4.6 4.96a7.43 7.43 0 00-2.2 2.65 7.33 7.33 0 008.67 3.84l-.73-.74a3.39 3.39 0 01-4.44-4.44z" clip-rule="evenodd"/></svg>
  33.         <span>{% trans with {} from 'profile' %}анкета в архиве{% endtrans %}</span>
  34.     </div>
  35. {%- endif -%}