mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Lazy loading added to bbcode images and avatar images by default.
This commit is contained in:
@@ -80,6 +80,11 @@
|
||||
unset($imgParms['figcaption']);
|
||||
}
|
||||
|
||||
if(empty($imgParms['loading']))
|
||||
{
|
||||
$imgParms['loading'] = 'lazy';
|
||||
}
|
||||
|
||||
$resizeWidth = e107::getBB()->resizeWidth();
|
||||
|
||||
$w = !empty($imgParms['width']) ? (int) $imgParms['width'] : vartrue($resizeWidth, 0);
|
||||
|
Reference in New Issue
Block a user