{$category['description']}
eof;
}
if (!empty($category['files'])) { //一级目录支持,目录下直接存放视频文件
foreach($category['files'] as $file) {
//跳过非.url文件
if (!in_array($file['extension'], $videoExts) || empty($file['shortcut'])) {
continue;
}
$snapshot = !empty($file['cover']) ? $imgPreffix . $file['cover'] : '/img/default.png';
$title = !empty($file['title']) ? Html::mb_substr($file['title'], 0, 20, 'utf-8') : $file['filename'];
$platform = Html::getShareVideosPlatform($file['shortcut']['url']);
echo <<
{$platform}
{$title}
eof;
}
}
//当前目录的readme详细介绍
if (!empty($viewData['htmlCateReadme'])) {
echo <<{$viewData['htmlCateReadme']}
eof;
}
?>