templates/network/profile/widgets/profile_widget_contact.html.twig line 1

Open in your IDE?
  1. {% embed 'network/widget/widget.html.twig' %}
  2.   {% block content %}
  3.     {% if user is defined and user.id is defined and user.id == profile.id %}
  4.       <div class="grid gap-2">
  5.         {% if profile.phone %}
  6.           <div class="flex items-center text-neutral-900">
  7.             <div class="w-4 mr-4">
  8.               {% include 'icons/phone.svg.twig' with { class: 'w-4 h-4' } %}
  9.             </div>
  10.             <a class="font-bold no-underline" href="tel:+{{ profile.phone }}">
  11.               {{ profile.phone|trim }}
  12.             </a>
  13.           </div>
  14.         {% endif %}
  15.         {% if profile.fax %}
  16.           <div class="flex items-center text-neutral-900">
  17.             <div class="w-4 mr-4">
  18.               {% include 'icons/fax.svg.twig' with { class: 'w-5 h-5 -ml-1px' } %}
  19.             </div>
  20.             <div class="font-bold">
  21.               {{ profile.fax|trim }}
  22.             </div>
  23.           </div>
  24.         {% endif %}
  25.         {% if profile.email and profile.company %}
  26.           <div class="flex items-center text-neutral-900">
  27.             {# <span>{{ 'Mail:'|trans }}</span> #}
  28.             <div class="w-4 mr-4">
  29.               {% include 'icons/mail.svg.twig' with { class: 'w-4 h-4' } %}
  30.             </div>
  31.             <a class="font-bold no-underline" href="mailto:{{ profile.email }}">
  32.               {{ profile.email|trim }}
  33.             </a>
  34.           </div>
  35.         {% endif %}
  36.         {% if profile.website %}
  37.           <div class="flex items-center text-neutral-900">
  38.             <div class="w-5 mr-3">
  39.               {% include 'icons/weblink.svg.twig' with { class: 'w-5 h-5' } %}
  40.             </div>
  41.             <div class="font-bold">
  42.               <a href="{{ profile.website }}" target="_blank" rel="noopener noreferrer">
  43.                 {{ profile.website }}
  44.               </a>
  45.             </div>
  46.           </div>
  47.         {% endif %}
  48.       </div>
  49.     {% endif %}
  50.   {% endblock %}
  51. {% endembed %}