From be05fa6e137b9f0b1145d3bff7b938c911412647 Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 29 Jul 2024 20:49:50 +0800 Subject: [PATCH] improve show type support --- themes/beauty/controller/ListController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/themes/beauty/controller/ListController.php b/themes/beauty/controller/ListController.php index 4c80e5e..899b62f 100644 --- a/themes/beauty/controller/ListController.php +++ b/themes/beauty/controller/ListController.php @@ -98,11 +98,6 @@ Class ListController extends Controller { $htmlReadme = $readmeFile['htmlReadme']; } - - //获取目录面包屑 - $subcate = !empty($scanResults[$cateId]) ? $scanResults[$cateId] : array(); - $breadcrumbs = $this->getBreadcrumbs($currentDir, $cachedParentData, $scanner); - //图片、视频类型筛选支持 $showType = $this->get('show', 'all'); if ($showType == 'image' && !empty($scanResults[$cateId]['files'])) { @@ -117,6 +112,10 @@ Class ListController extends Controller { }); } + //获取目录面包屑 + $subcate = !empty($scanResults[$cateId]) ? $scanResults[$cateId] : array(); + $breadcrumbs = $this->getBreadcrumbs($currentDir, $cachedParentData, $scanner); + //获取当前目录下的readme $cateReadmeFile = $scanner->getDefaultReadme(); if (!empty($cateReadmeFile)) {