templates/shop_video/Block/shop_video_gridItem.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'shop_video' %}
  2. {% if hasLink %}
  3.     <a href="{{ path(linkRoute|default('shop_video_details'), {'id': shop_video.stringId}) }}" target="{{ linkTarget|default('_self') }}">
  4. {% endif %}
  5.     <div class="shop-video-item mt-30">
  6.         <div class="shop-video-item-thumb rounded">
  7.             {% if shop_video.preview %}
  8.                 <picture>
  9.                     <source media="(min-width: 512px)" srcset="{{ shop_video.preview.webPath | sindrive_resize(752, 423) | sindrive_protect }}">
  10.                     <img src="{{ shop_video.preview.webPath | sindrive_resize(512, 288) | sindrive_protect }}" class="img-fluid" alt="{{ shop_video.title }}">
  11.                 </picture>
  12.             {% else %}
  13.                 <img src="{{ asset('images/proposal/blank.jpg') }}" alt="{{ shop_video.title }}">
  14.             {% endif %}
  15.             <div class="shop-video-item-content rounded-bottom">
  16.                 <h3 class="title fw-medium" title="{{ shop_video.title }}">{{ shop_video.title }}</h3>
  17.             </div>
  18.         </div>
  19.         {% block label_top_left %}
  20.             {% if shop_video.showNewLabel %}
  21.                 <div class="shop-video-item-label">
  22.                     <span class="fw-medium">{{ 'grid.label.new'|trans }}</span>
  23.                 </div>
  24.             {% endif %}
  25.         {% endblock %}
  26.         {% block item_content %}{% endblock %}
  27.     </div>
  28. {% if hasLink %}
  29. </a>
  30. {% endif %}