From 0cd2eaca18d3c85724fd9ee39d99eecb4ed95030 Mon Sep 17 00:00:00 2001 From: filesite Date: Sat, 11 May 2024 06:29:44 +0800 Subject: [PATCH] only show tags which has videos --- themes/tajian/views/site/myindex.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/tajian/views/site/myindex.php b/themes/tajian/views/site/myindex.php index ddb1ff2..312833a 100644 --- a/themes/tajian/views/site/myindex.php +++ b/themes/tajian/views/site/myindex.php @@ -49,9 +49,11 @@ $videoExts = array('url'); if (!empty($viewData['tags'])) { //显示tags分类 $tagIndex = 0; foreach($viewData['tags'] as $id => $item) { + $category = $viewData['scanResults'][$item['id']]; + if (!empty($category['files'])) { //一级目录支持,目录下直接存放视频文件 - //输出分类名称 - echo << 更多>>

{$item['name']}

@@ -59,9 +61,7 @@ if (!empty($viewData['tags'])) { //显示tags分类
eof; - $category = $viewData['scanResults'][$item['id']]; - if (!empty($category['files'])) { //一级目录支持,目录下直接存放视频文件 $cate_files = Html::sortFilesByCreateTime($category['files'], 'desc'); //按创建时间排序 foreach($cate_files as $index => $file) {