diff --git a/Model/Display.php b/Model/Display.php index 30666a6..c525048 100644 --- a/Model/Display.php +++ b/Model/Display.php @@ -159,7 +159,7 @@ public function getImage(string $imagePath, int $width, int $height, array $para $mainSrcset .= $this->getBreakPointImages($imagePath, $width *2, $height *2, $resize); } - $html .= '<img loading="lazy" alt="' . $alt . '" title="' . $title . '" class="' . $class . '" ' . ($placeholder ? ' src="' . $placeholderImageUrl . '"' : '') . ' data-src="' . $mainImageUrl . '" data-srcset="' . $mainSrcset . '"/>'; + $html .= '<img loading="lazy" alt="' . $alt . '" title="' . $title . '" class="' . $class . '" ' . ($placeholder ? ' src="' . $placeholderImageUrl . '"' : '') . ' width="' . $width . '" height="' . $height . '" data-src="' . $mainImageUrl . '" data-srcset="' . $mainSrcset . '"/>'; $html .= '</picture>'; return $html;