From 22e056a3c167d9bae5fcf729b3075b6a19e470aa Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 25 Apr 2025 15:03:21 +0800 Subject: [PATCH] add terms and privacy page --- themes/tajian/controller/SiteController.php | 24 +++++++ themes/tajian/views/layout/index.php | 7 +- themes/tajian/views/site/privacy.php | 36 +++++++++++ themes/tajian/views/site/terms.php | 72 +++++++++++++++++++++ www/css/tajian_index.css | 3 + 5 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 themes/tajian/views/site/privacy.php create mode 100644 themes/tajian/views/site/terms.php diff --git a/themes/tajian/controller/SiteController.php b/themes/tajian/controller/SiteController.php index 146789d..bb8b486 100644 --- a/themes/tajian/controller/SiteController.php +++ b/themes/tajian/controller/SiteController.php @@ -553,4 +553,28 @@ Class SiteController extends Controller { return $this->redirect('/site/login'); } + //Privacy & cookies + public function actionPrivacy() { + $pageTitle = "Privacy & cookies 隐私政策 | TaJian.tv"; + + $this->layout = 'index'; + $viewName = 'privacy'; + $params = compact( + 'pageTitle' + ); + return $this->render($viewName, $params, $pageTitle); + } + + //Terms of use + public function actionTerms() { + $pageTitle = "Terms of use 服务条款 | TaJian.tv"; + + $this->layout = 'index'; + $viewName = 'terms'; + $params = compact( + 'pageTitle' + ); + return $this->render($viewName, $params, $pageTitle); + } + } diff --git a/themes/tajian/views/layout/index.php b/themes/tajian/views/layout/index.php index df9d18c..1075f1e 100644 --- a/themes/tajian/views/layout/index.php +++ b/themes/tajian/views/layout/index.php @@ -49,16 +49,17 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use Ta荐 - TaJian.tv +