Make slider images linkable

This commit is contained in:
Björn Fromme
2018-08-17 16:56:37 +02:00
parent 9f257cab3d
commit 7264dd0a58
@@ -26,7 +26,15 @@
</div>
<div class="herounit__slides slider">
<f:for each="{images}" as="image">
<div class="herounit__image" style="background-image: url({f:uri.image(src: image.uid, treatIdAsReference: 1, crop: image.crop, width: '1440')})"></div>
<f:if condition="{image.link}">
<f:then>
<a href="{f:uri.typolink(parameter: image.link)}" class="herounit__image" title="{image.title}"
style="background-image: url({f:uri.image(src: image.uid, treatIdAsReference: 1, crop: image.crop, width: '1440')})"></a>
</f:then>
<f:else>
<div class="herounit__image" style="background-image: url({f:uri.image(src: image.uid, treatIdAsReference: 1, crop: image.crop, width: '1440')})"></div>
</f:else>
</f:if>
</f:for>
</div>
</div>