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