Commit e9e55f88 authored by Martin Leblanc's avatar Martin Leblanc Committed by Martin Leblanc
Browse files

ISTWCMS-4888:putting caption outside of full width logic in image.twig

parent 11c9a522
......@@ -6,24 +6,21 @@
<div class="uw-image">
<div class="uw-image__wrapper {{ image_class }}">
{% if image.type == 'full' %}
{% include '@components/responsive-image/responsive-image.twig' with {
'sources': image.image.sources,
'img_element': image.image.img_element['#uri'],
'alt': image.alt,
} %}
{% if image.caption %}
<div class="uw_ig__caption">
{% include '@components/caption/caption.twig' with {
'caption': image.caption
} %}
</div>
{% endif %}
{% else %}
<img src="{{ image.image.url }}" width="{{ image.image.width }}" height="{{ image.image.height }}" alt="{{ image.alt }}" />
{% endif %}
{% if image.caption %}
<div class="uw_ig__caption">
{% include '@components/caption/caption.twig' with {
'caption': image.caption
} %}
</div>
{% endif %}
</div>
</div>
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