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 +