你已收藏 =$total_my_videos?> 个视频
勾选视频下方的分类,将该视频归类到对应的分类;取消勾选,则将视频从该分类中移除。
$file) {
//跳过非.url文件
if (!in_array($file['extension'], $videoExts) || empty($file['shortcut'])) {
continue;
}
$myTags = Html::getFavsTags($file['filename'], $viewData['tags']);
//分类筛选支持
if (!empty($viewData['selectTag']) && !in_array($viewData['selectTag'], $myTags)) {
continue;
}
//关键词搜索支持
if (!empty($viewData['searchKeyword']) && strpos($file['title'], $viewData['searchKeyword']) === false) {
continue;
}
$snapshot = !empty($file['cover']) ? Html::getCDNImageUrl($imgPreffix . $file['cover']) : '/img/default.png';
$title = !empty($file['title']) ? Html::mb_substr($file['title'], 0, 33, 'utf-8') : $file['filename'];
$platform = Html::getShareVideosPlatform($file['shortcut']['url']);
$pubDate = date('m/d', min($file['fstat']['mtime'], $file['fstat']['ctime']));
$imgSrc = $index < 4 ? " src=\"{$snapshot}\"" : '';
$imgAlt = $index < 4 ? " alt=\"{$title}\"" : '';
$imgCls = $index < 4 ? '' : 'lazy';
$tagsHtml = '';
foreach ($allTags as $tagName) {
$tagChecked = in_array($tagName, $myTags) ? ' checked="checked"' : '';
$tagsHtml .= <<
{$tagName}
eof;
}
echo <<
{$tagsHtml}
eof;
}
}
?>