1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Native Lazy loading support added to {NEWS_IMAGE} shortcode. eg. {NEWS_IMAGE: loading=lazy}

This commit is contained in:
Cameron
2020-04-18 13:38:19 -07:00
parent 23e62915db
commit 17d214a450

View File

@@ -990,7 +990,8 @@ class news_shortcodes extends e_shortcode
'class' => $class, 'class' => $class,
'alt' => basename($srcPath), 'alt' => basename($srcPath),
'style' => $style, 'style' => $style,
'placeholder'=>varset($parm['placeholder']) 'placeholder' => varset($parm['placeholder']),
'loading' => varset($parm['loading'],'auto'),
); );