@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | // Set the class and loading attributes |
33 | 33 | if (isset($attrs['class'])) { |
34 | - $attrs['class'] = trim($attrs['class'] . ' lazyload'); |
|
34 | + $attrs['class'] = trim($attrs['class'].' lazyload'); |
|
35 | 35 | } |
36 | 36 | // Set the style on this element to be the placeholder image as the background-image |
37 | 37 | if (isset($attrs['style']) && !empty($attrs['src'])) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $path = parse_url($attrs['src'], PHP_URL_PATH); |
43 | 43 | $extension = pathinfo($path, PATHINFO_EXTENSION); |
44 | 44 | if ($extension !== 'svg' && $extension !== 'gif') { |
45 | - $attrs['style']['background-image'] = 'url(' . $this->getLazyLoadSrc($placeHolder) . ')'; |
|
45 | + $attrs['style']['background-image'] = 'url('.$this->getLazyLoadSrc($placeHolder).')'; |
|
46 | 46 | $attrs['style']['background-size'] = 'cover'; |
47 | 47 | } |
48 | 48 | } |