From 2ece5e62bb8a9cc64d4168bbe886dd5c497daead Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 18 Jul 2024 23:15:23 +0800 Subject: [PATCH] bug fix: no files dir not show expand button --- themes/beauty/views/site/index.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 828b063..fda1d49 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -217,21 +217,23 @@ eof; $index++; } + } - //分割目录和文件 - echo ''; - $arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg'; - $btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开'; - echo <<'; + + $arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg'; + $btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开'; + echo <<
eof; - echo '
'; - } + echo '
'; + //显示图片、视频 if (!empty($category['files'])) { //一级目录支持