From 001da090ad6ab81ce4fd6db4ce6b688e1864cb09 Mon Sep 17 00:00:00 2001 From: yarik Date: Mon, 12 Dec 2016 18:44:40 +0200 Subject: [PATCH] Lazyload --- components/artboximage/ArtboxImageHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/artboximage/ArtboxImageHelper.php b/components/artboximage/ArtboxImageHelper.php index 6f27b89..5620e98 100755 --- a/components/artboximage/ArtboxImageHelper.php +++ b/components/artboximage/ArtboxImageHelper.php @@ -68,7 +68,8 @@ } else { $imgOptions['class'] = 'artbox-lazy'; } - return Html::img(''); + $imgOptions['data-original'] = $src; + return Html::img('', $imgOptions); } else { return Html::img($src, $imgOptions); } -- libgit2 0.21.4