优化用户协议配置

pull/517/head
Karson 2026-01-15 11:22:47 +08:00
parent 1ed0a1395c
commit 32329947a3
3 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,7 @@ return [
'frontend' => 'zh-cn',
],
'fixedpage' => 'dashboard',
'agreement' => '协议内容',
'categorytype' => [
'default' => 'Default',
'page' => 'Page',

View File

@ -400,6 +400,7 @@ class User extends Frontend
public function agreement()
{
$this->view->assign('title', __('User agreement'));
$this->view->assign('content', xss_clean(config('site.agreement')));
return $this->view->fetch();
}
}

View File

@ -1,7 +1,8 @@
<div id="content-container" class="container">
<div class="user-section agreement-section">
<h2>用户协议</h2>
<h2>{$title}</h2>
<div class="agreement-content">
<p>用户协议内容</p>
<p>{:$content}</p>
</div>
</div>
</div>