diff --git a/themes/tajian/views/my/favs.php b/themes/tajian/views/my/favs.php index 16b7e0e..ce2ef4e 100644 --- a/themes/tajian/views/my/favs.php +++ b/themes/tajian/views/my/favs.php @@ -10,17 +10,30 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use } $selectedId = !empty($viewData['cateId']) ? $viewData['cateId'] : ''; + +$imgExts = array('jpg', 'jpeg', 'png', 'gif'); +$videoExts = array('url'); +$category = $viewData['scanResults'][$selectedId]; +$total_my_videos = 0; +if (!empty($category['files'])) { + foreach ($category['files'] as $file) { + if (!in_array($file['extension'], $videoExts) || empty($file['shortcut'])) { + continue; + } + + $total_my_videos ++; + } +} + +$allTags = Html::getTagNames($viewData['tags']); ?>
-

勾选视频下方的分类,将该视频归类到对应的分类;取消勾选,则将视频从该分类中移除。

+

你已收藏 个视频

+

勾选视频下方的分类,将该视频归类到对应的分类;取消勾选,则将视频从该分类中移除。