';
$thumbnailList = Filesystem::listFiles(PATH_UPLOADS_THUMBNAILS,'*','*',true);
array_splice($thumbnailList, THUMBNAILS_AMOUNT);
foreach($thumbnailList as $file) {
$filename = basename($file);
$html .= '
';
}
$html .= '
';
if(empty($thumbnailList)) {
$html .= '
There are no images, upload someone to make Bludit more cheerful.
';
}
$html .= '
More images
';
$script = '
';
echo $html.$script;
}
public static function bluditCoverImage($coverImage="")
{
global $L;
$style = '';
if(!empty($coverImage)) {
$style = 'background-image: url('.HTML_PATH_UPLOADS_THUMBNAILS.$coverImage.')';
}
$html = '';
$html .= '