templates/default/news/NewsImageContent.html.twig line 1

Open in your IDE?
  1.     <div class="row news_row">
  2.         <div class="col news_col">
  3.             {% if content.getLink() %}
  4.                 {% set link = content.getLink() %}
  5.                 <a href="{{ link.href }}"
  6.                     {% if link.title is not empty %}title="{{ link.title }}"{% endif %}
  7.                     {% if link.target is not empty %} target="{{ link.target }}"{% endif %}>
  8.                     {{ content.getImage().getThumbnail().getHtml({
  9.                             'imgAttributes': {
  10.                                 'class': 'img-fluid',
  11.                                 'alt': content.getCaption()
  12.                             }
  13.                         }) | raw }}
  14.                         {% if content.getCaption() %}
  15.                             <p class="text-center">{{ content.getCaption() }}</p>
  16.                         {% endif %}
  17.                 </a>
  18.             {% else %}
  19.                 {{ content.getImage().getThumbnail().getHtml({
  20.                     'imgAttributes': {
  21.                         'class': 'img-fluid',
  22.                         'alt': content.getCaption()
  23.                     }
  24.                 }) | raw }}
  25.                 {% if content.getCaption() %}
  26.                     <p class="text-center">{{ content.getCaption() }}</p>
  27.                 {% endif %}
  28.             {% endif %}
  29.         </div>
  30.     </div>