Render fallback image to avoid exception
This commit is contained in:
@@ -14,12 +14,23 @@
|
|||||||
<div class="relative{f:if(condition: landscape, then: ' sm:w-2/5')}">
|
<div class="relative{f:if(condition: landscape, then: ' sm:w-2/5')}">
|
||||||
<a href="{ep:uri.product(forceHotelUid: forceHotelUid, product: product, hotel: hotel, dateFrom: dateFrom, dateTo: dateTo)}{f:if(condition: referringPageUri, then: '?ref={referringPageUri -> f:format.urlencode()}')}"
|
<a href="{ep:uri.product(forceHotelUid: forceHotelUid, product: product, hotel: hotel, dateFrom: dateFrom, dateTo: dateTo)}{f:if(condition: referringPageUri, then: '?ref={referringPageUri -> f:format.urlencode()}')}"
|
||||||
title="{region.name} {product.name} Details und Buchen">
|
title="{region.name} {product.name} Details und Buchen">
|
||||||
|
<f:if condition="{productImage}">
|
||||||
|
<f:then>
|
||||||
<ep:lazyLoadImage image="{productImage}"
|
<ep:lazyLoadImage image="{productImage}"
|
||||||
loaderimg="EXT:ep_theme/Resources/Public/images/lazy.png"
|
loaderimg="EXT:ep_theme/Resources/Public/images/lazy.png"
|
||||||
class="block w-full h-full object-cover"
|
class="block w-full h-full object-cover"
|
||||||
width="400c"
|
width="400c"
|
||||||
height="300c"
|
height="300c"
|
||||||
alt="{product.name}" />
|
alt="{product.name}" />
|
||||||
|
</f:then>
|
||||||
|
<f:else>
|
||||||
|
<f:image src="EXT:ep_theme/Resources/Public/images/lazy.png"
|
||||||
|
class="block w-full h-full object-cover"
|
||||||
|
width="400c"
|
||||||
|
height="300c"
|
||||||
|
alt="{product.name}" />
|
||||||
|
</f:else>
|
||||||
|
</f:if>
|
||||||
</a>
|
</a>
|
||||||
<div class="absolute top-0 left-0 z-10 inset-x-0 p-2 flex justify-between items-center {f:if(condition: concept, then: 'bg-concept-{concept.code}-overlay', else: 'bg-ep-primary-80')}">
|
<div class="absolute top-0 left-0 z-10 inset-x-0 p-2 flex justify-between items-center {f:if(condition: concept, then: 'bg-concept-{concept.code}-overlay', else: 'bg-ep-primary-80')}">
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center space-x-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user