diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -2125,11 +2125,8 @@ function lazyThumbnail($url,$href=false) | |||
2125 | 2125 | ||
2126 | $html='<a href="'.htmlspecialchars($t['href']).'">'; | 2126 | $html='<a href="'.htmlspecialchars($t['href']).'">'; |
2127 | 2127 | ||
2128 | // Lazy image (only loaded by JavaScript when in the viewport). | 2128 | // Lazy image |
2129 | if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled) | 2129 | $html.='<img class="b-lazy" src="#" data-src="'.htmlspecialchars($t['src']).'"'; |
2130 | $html.='<img class="lazyimage" src="'.htmlspecialchars($t['src']).'"'; | ||
2131 | else | ||
2132 | $html.='<img class="lazyimage" src="#" data-original="'.htmlspecialchars($t['src']).'"'; | ||
2133 | 2130 | ||
2134 | if (!empty($t['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"'; | 2131 | if (!empty($t['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"'; |
2135 | if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"'; | 2132 | if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"'; |