1
0
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:
Cameron
2021-10-26 14:57:01 -07:00
parent 723974a0ba
commit 038d88aa2a
3 changed files with 12 additions and 6 deletions

View File

@@ -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);