@@ -184,18 +184,18 @@ discard block |
||
184 | 184 | public function run() |
185 | 185 | { |
186 | 186 | if ($this->placeholderSrc && $this->placeholderAsBase64) { |
187 | - $this->placeholderSrc = 'data:image/jpg;base64,' . base64_encode(file_get_contents($this->placeholderSrc)); |
|
187 | + $this->placeholderSrc = 'data:image/jpg;base64,'.base64_encode(file_get_contents($this->placeholderSrc)); |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | if ($this->attributesOnly && !$this->placeholderSrc) { |
191 | 191 | return "class=\"js-lazyimage $this->extraClass\" data-src=\"$this->src\" data-width=\"$this->width\" data-height=\"$this->height\" data-as-background=\"1\""; |
192 | 192 | } |
193 | 193 | |
194 | - $tag = '<div class="lazyimage-wrapper ' . $this->extraClass . '">'; |
|
194 | + $tag = '<div class="lazyimage-wrapper '.$this->extraClass.'">'; |
|
195 | 195 | $tag .= Html::tag('img', '', array_merge( |
196 | 196 | $this->options, |
197 | 197 | [ |
198 | - 'class' => 'js-lazyimage lazyimage' . ($this->replacePlaceholder ? (' ' . $this->extraClass) : ''), |
|
198 | + 'class' => 'js-lazyimage lazyimage'.($this->replacePlaceholder ? (' '.$this->extraClass) : ''), |
|
199 | 199 | 'data-src' => $this->src, |
200 | 200 | 'data-width' => $this->width, |
201 | 201 | 'data-height' => $this->height, |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | if ($this->placeholderSrc) { |
206 | 206 | $tag .= Html::tag('img', '', ['class' => 'lazyimage-placeholder', 'src' => $this->placeholderSrc]); |
207 | 207 | } else { |
208 | - $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: ' . $this->generateAspectRation() . '%;"></div><div class="loader"></div></div>'; |
|
208 | + $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: '.$this->generateAspectRation().'%;"></div><div class="loader"></div></div>'; |
|
209 | 209 | } |
210 | - $tag .= '<noscript><img class="loaded ' . $this->extraClass . '" src="'.$this->src.'" /></noscript>'; |
|
210 | + $tag .= '<noscript><img class="loaded '.$this->extraClass.'" src="'.$this->src.'" /></noscript>'; |
|
211 | 211 | $tag .= '</div>'; |
212 | 212 | |
213 | 213 | return $tag; |