custom/plugins/NetzpBlog6/src/Resources/views/storefront/page/blog/post-image-large.html.twig line 1

Open in your IDE?
  1. {% block blog_content_post_wrapper %}
  2. <div class="card">
  3.     {% block blog_content_post_inner_image %}
  4.         {% if post.image %}
  5.             {% set thumbnailClass = (config.layoutdetail == 'largeimage') ? "image-large-cover" : "image-large-contain" %}
  6.             {% if post.image.mediaType.name == 'IMAGE' %}
  7.                 {% sw_thumbnails 'blog_large_image_thumbnail' with {
  8.                     media: post.image,
  9.                     sizes: {
  10.                         'xs': '501px',
  11.                         'sm': '315px',
  12.                         'md': '427px',
  13.                         'lg': '333px',
  14.                         'xl': '284px',
  15.                         'default': '100vw'
  16.                     },
  17.                     attributes: {
  18.                         'class': 'card-img-top ' ~ thumbnailClass,
  19.                         'alt':   post.image.translated.alt ?: '',
  20.                         'title': post.translated.title ?: ''
  21.                     }
  22.                 } %}
  23.             {% elseif post.image.mediaType.name == 'VIDEO' %}
  24.                 <video class="card-img-top {{ thumbnailClass }}" controls>
  25.                     <source src="{{ post.image.url }}" type="{{ post.image.mimetype }}">
  26.                     Your browser does not support HTML5 video.
  27.                 </video>
  28.             {% endif %}
  29.         {% endif %}
  30.     {% endblock %}
  31.     {% block blog_content_post_inner_wrapper %}
  32.     <div class="card-body mt-3 p-4">
  33.         {% block blog_content_post_inner_title %}
  34.             <h2 class="mb-1">{{ post.translated.title }}</h2>
  35.         {% endblock %}
  36.         {% if config.showmeta %}
  37.             {% sw_include "@Storefront/storefront/page/blog/post-meta.html.twig" %}
  38.         {% endif %}
  39.         {% block blog_content_post_inner_contents %}
  40.             <div class="card-text mt-3">
  41.                 {{ render_blog_listing_template(post.translated.contents, post)|raw }}
  42.             </div>
  43.         {% endblock %}
  44.         {% block blog_content_post_inner_author %}
  45.             {% if config.showmeta and config.showauthor %}
  46.                 {% sw_include "@Storefront/storefront/page/blog/post-author.html.twig" %}
  47.             {% endif %}
  48.         {% endblock %}
  49.     </div>
  50.     {% endblock %}
  51. </div>
  52. {% endblock %}