diff --git a/themes/beauty/controller/SiteController.php b/themes/beauty/controller/SiteController.php index 217937c..d977cfb 100644 --- a/themes/beauty/controller/SiteController.php +++ b/themes/beauty/controller/SiteController.php @@ -122,10 +122,17 @@ Class SiteController extends Controller { if (!empty($subcate)) { $pageTitle = "{$subcate['directory']}照片,来自{$pageTitle}"; } + + //底部版权申明配置支持 + $copyright = ''; + if (!empty($readmeFile['copyright'])) { + $copyright = $readmeFile['copyright']; + } + $viewName = 'index'; $params = compact( 'page', 'pageSize', 'cacheDataId', - 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'htmlCateReadme', 'mp3File' + 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'htmlCateReadme', 'mp3File', 'copyright' ); return $this->render($viewName, $params, $pageTitle); } diff --git a/themes/beauty/views/layout/main.php b/themes/beauty/views/layout/main.php index 238ecec..289e7aa 100644 --- a/themes/beauty/views/layout/main.php +++ b/themes/beauty/views/layout/main.php @@ -35,7 +35,12 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
用手机扫码打开
-+
+
©2022 - =date('Y')?>
by FileSite.io
@@ -44,6 +49,7 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
- 执行耗时: {page_time_cost} ms
友情链接:Ta荐 - 你的聚宝盆
+