app/Resources/BaitPollBundle/views/Poll/fragments/photo.html.twig line 1

Open in your IDE?
  1. {% if photo %}
  2.     <img
  3.         src="{{ asset(get_correct_image_path(photo ~ 'thumbnail/source.webp', 'jpg'), 'static') }}"
  4.         class="block mx-auto h-[145px] lg:h-[300px] w-auto card-rounded mb-15"
  5.         alt=""
  6.     >
  7. {% endif %}
  8. {% if source %}
  9.     <div class="text-center sm-text-card mb-15">
  10.         Zdroj:
  11.         {% if link %}
  12.             <a
  13.                 href="{{ link }}"
  14.                 title="{{ source }}"
  15.                 target="_blank"
  16.                 class="hover:underline"
  17.             >{{ source }}</a>
  18.         {% else %}
  19.             {{ source }}
  20.         {% endif %}
  21.     </div>
  22. {% endif %}