templates/network/horse/widgets/horse_widget_profile.html.twig line 1

Open in your IDE?
  1. {% if profile and profile.className == 'Profile' %}
  2.   {% embed 'network/widget/widget.html.twig' %}
  3.     {% block content %}
  4.       <div class="grid gap-3">
  5.         <a data-turbo="false" href="{{ pimcore_url({ object: profile }) }}" class="flex">
  6.           <div class="w-4 mr-4">
  7.             {% include 'icons/' ~ icon ~ '.svg.twig' with { class: 'w-4 h-4' } %}
  8.           </div>
  9.           <address class="flex flex-col not-italic leading-snug">
  10.             <span class="font-medium underline">{{ profile.name }}</span>
  11.             <span class="hidden">{{ profile.street }} {{ profile.housenumber }}</span>
  12.             <span class="hidden">{{ profile.postalCode }} {{ profile.city }}</span>
  13.             <span class="hidden">{{ profile.country|country_name }}</span>
  14.           </address>
  15.         </a>
  16.         <div class="hidden gap-2">
  17.           {% if profile.phone %}
  18.             <div class="flex items-center text-neutral-900">
  19.               <div class="w-4 mr-4">
  20.                 {% include 'icons/phone.svg.twig' with { class: 'w-4 h-4' } %}
  21.               </div>
  22.               <a data-turbo="false" class="font-bold no-underline" href="tel:+{{ profile.phone }}">
  23.                 {{ profile.phone|trim }}
  24.               </a>
  25.             </div>
  26.           {% endif %}
  27.           {% if profile.fax %}
  28.             <div class="flex items-center text-neutral-900">
  29.               <div class="w-4 mr-4">
  30.                 {% include 'icons/fax.svg.twig' with { class: 'w-5 h-5 -ml-1px' } %}
  31.               </div>
  32.               <div class="font-bold">
  33.                 {{ profile.fax|trim }}
  34.               </div>
  35.             </div>
  36.           {% endif %}
  37.           {% if profile.email %}
  38.             <div class="flex items-center text-neutral-900">
  39.               <div class="w-4 mr-4">
  40.                 {% include 'icons/mail.svg.twig' with { class: 'w-4 h-4' } %}
  41.               </div>
  42.               <a data-turbo="false"
  43.                 class="font-bold no-underline"
  44.                 href="mailto:{{ profile.email }}">
  45.                 {{ profile.email|trim }}
  46.               </a>
  47.             </div>
  48.           {% endif %}
  49.           {% if profile.website %}
  50.             <div class="flex items-center text-neutral-900">
  51.               <div class="w-5 mr-3">
  52.                 {% include 'icons/weblink.svg.twig' with { class: 'w-5 h-5' } %}
  53.               </div>
  54.               <div class="font-bold">
  55.                 <a data-turbo="false"
  56.                   href="{{ profile.website }}"
  57.                   target="_blank"
  58.                   rel="noopener noreferrer">
  59.                   {{ profile.website }}
  60.                 </a>
  61.               </div>
  62.             </div>
  63.           {% endif %}
  64.         </div>
  65.       </div>
  66.     {% endblock %}
  67.   {% endembed %}
  68. {% endif %}