10 lines
428 B
Smarty
10 lines
428 B
Smarty
{{if $image->preview}}
|
|
<a data-fancybox="{{$image->uriId}}" href="{{$image->url}}"><img src="{{$image->preview}}" alt="{{$image->description}}" title="{{$image->description}}" loading="lazy"></a>
|
|
{{else}}
|
|
<figure>
|
|
<img src="{{$image->url}}" alt="{{$image->description}}" title="{{$image->description}}" loading="lazy">
|
|
{{if $image->description}}
|
|
<figcaption>{{$image->description}}</figcaption>
|
|
{{/if}}
|
|
</figure>
|
|
{{/if}}
|