@@ -31,14 +31,14 @@ |
||
| 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'])) { |
| 38 | 38 | if (empty($attrs['style'])) { |
| 39 | 39 | $attrs['style'] = []; |
| 40 | 40 | } |
| 41 | - $attrs['style']['background-image'] = 'url(' . $this->getLazyLoadSrc($placeHolder) . ')'; |
|
| 41 | + $attrs['style']['background-image'] = 'url('.$this->getLazyLoadSrc($placeHolder).')'; |
|
| 42 | 42 | $attrs['style']['background-size'] = 'cover'; |
| 43 | 43 | } |
| 44 | 44 | // Handle attributes that lazy and lazySizesFallback have in common |