|
|
|
@ -101,6 +101,10 @@ eof;
@@ -101,6 +101,10 @@ eof;
|
|
|
|
|
if (in_array($first_img['extension'], $imgExts)) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img data-src="{$first_img['path']}" class="lazyload" alt="{$first_img['filename']}"> |
|
|
|
|
eof; |
|
|
|
|
}else { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img src="/img/default.png" alt="default image"> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -133,7 +137,9 @@ eof;
@@ -133,7 +137,9 @@ eof;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$duration = !empty($category['duration']) ? $category['duration'] : ''; |
|
|
|
|
$snapshot = !empty($file['snapshot']) ? $file['snapshot'] : (!empty($category['snapshot']) ? $category['snapshot'] : $first_img['path']); |
|
|
|
|
$snapshot = !empty($file['snapshot']) ? $file['snapshot'] : (!empty($category['snapshot']) ? $category['snapshot'] : |
|
|
|
|
(!empty($first_img['path']) ? $first_img['path'] : '/img/default.png') |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$title = !empty($category['title']) ? $category['title'] : $file['filename']; |
|
|
|
|
echo <<<eof |
|
|
|
|