diff --git a/syntax/image.php b/syntax/image.php index d0180cf..d7f29f7 100644 --- a/syntax/image.php +++ b/syntax/image.php @@ -252,8 +252,9 @@ class syntax_plugin_luxtools_image extends SyntaxPlugin $outerStyle = ' style="width: ' . ($width + 10) . 'px;"'; } - // Use thumbnail metadata from helper - $dataThumbAttr = $thumb['isFinal'] ? '' : ' data-thumb-src="' . hsc($thumb['thumbUrl']) . '"'; + // Use thumbnail metadata from helper. + // JS loader expects data-src (same convention as gallery thumbnails). + $dataThumbAttr = $thumb['isFinal'] ? '' : ' data-src="' . hsc($thumb['thumbUrl']) . '"'; // Build image attributes $imgAttrs = 'class="media luxtools-thumb" loading="lazy" decoding="async"'; @@ -272,7 +273,7 @@ class syntax_plugin_luxtools_image extends SyntaxPlugin // Image with link to full size $renderer->doc .= ''; $renderer->doc .= ''; - $renderer->doc .= '';; + $renderer->doc .= ''; // Caption if ($caption !== '') {