Make slider images linkable
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user