@@ -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'])) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | // Don't add the background placeholder if it is set to 'none' |
| 42 | 42 | if ($placeHolder !== 'none') { |
| 43 | - $attrs['style']['background-image'] = 'url(' . $this->getLazyLoadSrc($placeHolder) . ')'; |
|
| 43 | + $attrs['style']['background-image'] = 'url('.$this->getLazyLoadSrc($placeHolder).')'; |
|
| 44 | 44 | $attrs['style']['background-size'] = 'cover'; |
| 45 | 45 | } |
| 46 | 46 | } |