Skip to content

Commit 1ace5d6

Browse files
committed
Add css class only if the loading of images is enabled
1 parent c81be49 commit 1ace5d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.woltlab.wcf/templates/shared_unfurlUrl.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{else}
55
<div class="unfurlUrlCardContainer">
66
<div class="unfurlUrlCard{*
7-
*}{if $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
8-
*}{if $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
7+
*}{if !URL_UNFURLING_NO_IMAGES && $object->hasCoverImage()} unfurlUrlCardCoverImage{/if}{*
8+
*}{if !URL_UNFURLING_NO_IMAGES && $object->hasSquaredImage()} unfurlUrlCardSquaredImage{/if}{*
99
*}">
1010
{if !URL_UNFURLING_NO_IMAGES && !$object->getImageUrl()|empty}
1111
<img src="{$object->getImageUrl()}" height="{$object->height}" width="{$object->width}" class="unfurlUrlImage" alt="" loading="lazy">

0 commit comments

Comments
 (0)