|
|
|
@ -177,15 +177,15 @@ eof;
@@ -177,15 +177,15 @@ eof;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (in_array($first_img['extension'], $imgExts)) { |
|
|
|
|
if ($index > 0) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$first_img['path']}" class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
|
eof; |
|
|
|
|
} else { |
|
|
|
|
$imgUrl = urlencode($first_img['path']); |
|
|
|
|
$smallUrl = "/site/smallimg/?id={$first_img['id']}&url={$imgUrl}"; |
|
|
|
|
echo <<<eof |
|
|
|
|
<img src="{$first_img['path']}" class="bor_radius im_img" alt="{$first_img['filename']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" |
|
|
|
|
data-id="{$first_img['id']}" |
|
|
|
|
data-original="{$smallUrl}" |
|
|
|
|
data-original_="{$first_img['path']}" |
|
|
|
|
class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img src="/img/default.png" class="bor_radius im_img" alt="default image"> |
|
|
|
|