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