|
|
@ -43,11 +43,11 @@ Class SiteController extends Controller { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统"; |
|
|
|
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统"; |
|
|
|
|
|
|
|
if (!empty($readmeFile['title'])) { |
|
|
|
|
|
|
|
$pageTitle = $readmeFile['title']; |
|
|
|
|
|
|
|
} |
|
|
|
if (!empty($subcate)) { |
|
|
|
if (!empty($subcate)) { |
|
|
|
$pageTitle = "{$subcate['directory']}的照片,来自{$pageTitle}"; |
|
|
|
$pageTitle = "{$subcate['directory']}照片,来自{$pageTitle}"; |
|
|
|
if (!empty($readmeFile['title'])) { |
|
|
|
|
|
|
|
$pageTitle = $readmeFile['title']; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$viewName = 'index'; |
|
|
|
$viewName = 'index'; |
|
|
|
$params = compact('cateId', 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'htmlCateReadme'); |
|
|
|
$params = compact('cateId', 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'htmlCateReadme'); |
|
|
|