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

Open in your IDE?
  1. {% set pressLinks = [
  2.   horse.externalHref|default(null),
  3.   horse.externalPicture,
  4.   horse.externalForm,
  5.   horse.externalBet
  6. ]|filter(v => v is not empty) %}
  7. {% set title = "press" %}
  8. {% if pressLinks %}
  9. {% embed 'network/widget/widget.html.twig' %}
  10.   {% block content %}
  11.       <ul class="grid gap-3">
  12.         {% for link in pressLinks %}
  13.           {% if link|url_meta_title %}
  14.           <li class="flex gap-2">
  15.             {% include 'icons/weblink.svg.twig' with { class: 'w-5 h-5 mt-px flex-shrink-0' } %}
  16.             <a data-turbo="false" href="{{ link }}"
  17.               target="_blank"
  18.               title="{{ link|url_meta_title }}&#10;{{ link|url_meta_description }}"
  19.               class="grid leading-tight"
  20.               rel="noopener noreferrer">
  21.               <span class="truncate">{{ link|url_meta_title }}</span>
  22.               <span class="text-sm truncate text-neutral-500">
  23.                 {{ link|url_meta_description }}
  24.               </span>
  25.             </a>
  26.           </li>
  27.           {% endif %}
  28.         {% endfor %}
  29.       </ul>
  30.   {% endblock %}
  31. {% endembed %}
  32. {% endif %}