Browse Source

improve show type support

master
filesite 4 months ago
parent
commit
be05fa6e13
  1. 9
      themes/beauty/controller/ListController.php

9
themes/beauty/controller/ListController.php

@ -98,11 +98,6 @@ Class ListController extends Controller { @@ -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 { @@ -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)) {

Loading…
Cancel
Save