mirror of
https://github.com/friendica/friendica
synced 2024-11-16 04:53:56 +00:00
16 lines
600 B
Smarty
16 lines
600 B
Smarty
{{*
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*}}
|
|
{{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}}
|