Commit 7a4dd2b9 authored by Liam Morland's avatar Liam Morland
Browse files

Merge branch 'feature/ISTWCMS-5340-ebremner-fix-empty-img' into '3.0.x'

ISTWCMS-5340: Fix empty img src and alt attributes

See merge request !151
parents 1c445697 b0c4c8fd
......@@ -3,11 +3,19 @@
<a href="{{ image.link }}">
{% endif %}
<div class="card__banner--media">
{% if listing_image.img_element %}
{% include "@components/responsive-image/responsive-image.twig" with {
sources: image.sources,
img_element: listing_image.img_element,
alt: listing_image.alt
}%}
{% else %}
{% include "@components/responsive-image/responsive-image.twig" with {
sources: image.sources,
img_element: image.img_element,
alt: image.alt
}%}
{% endif %}
</div>
{% if image.big_text or image.small_text %}
<div class="card__banner--caption">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment