forked from cynial/STBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings_discussion.php
More file actions
173 lines (158 loc) · 7.31 KB
/
Copy pathsettings_discussion.php
File metadata and controls
173 lines (158 loc) · 7.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('admin/header');
$this->load->view('admin/menu');
?>
<div class="main">
<div class="body body-950">
<?php $this->load->view('admin/notify'); ?>
<div class="container typecho-page-title">
<div class="column-24 start-01">
<h2><?php echo $page_title;?></h2>
<p><?php echo anchor(site_url(),'查看我的站点');?></p>
</div>
</div>
<div class="container typecho-page-main">
<div class="column-22 start-02">
<form action="<?php echo site_url('admin/settings/discussion');?>" method="post" enctype="application/x-www-form-urlencoded">
<ul class="typecho-option">
<li>
<label class="typecho-label" for="comments_date_format">
评论日期格式</label>
<input id="comments_date_format" name="comments_date_format" type="text" class="text" value="<?php echo set_value('comments_date_format',$comments_date_format); ?>" />
<p class="description">
这是一个默认的格式,当你在模板中调用显示评论日期方法时, 如果没有指定日期格式, 将按照此格式输出.<br />
具体写法请参考<a href="http://cn.php.net/manual/zh/function.date.php">PHP日期格式写法</a>.</p>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label" for="comments_list_size">
评论列表数目</label>
<input id="comments_list_size" name="comments_list_size" type="text" class="mini" value="<?php echo set_value('comments_list_size',$comments_list_size); ?>" />
<p class="description">
此数目用于指定显示在侧边拦中的评论列表数目.</p>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label">
是否对评论者个人主页链接使用nofollow属性</label>
<span>
<input name="comments_url_no_follow" type="radio" value="0" id="comments_url_no_follow" <?php echo set_radio('comments_url_no_follow','0',(0 == intval($comments_url_no_follow))?TRUE:FALSE); ?>/>
<label for="comments_url_no_follow">
不启用</label>
</span>
<span>
<input name="comments_url_no_follow" type="radio" value="1" id="comments_url_no_follow_1" <?php echo set_radio('comments_url_no_follow','1', (1 == intval($comments_url_no_follow))?TRUE:FALSE); ?> />
<label for="comments_url_no_follow_1">
启用</label>
</span>
<p class="description">
当评论作者的个人主页地址在你的网站上呈现时, 其在搜索引擎中可能被识别为外链地址.<br />
过多的外链地址将导致你的网站在搜索引擎中被降权, 打开此选项能帮助你解决此问题.<br />
更多关于nofollow的信息请参考<a href="http://en.wikipedia.org/wiki/Nofollow">wikipedia上的解释</a>.</p>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label">
评论审核</label>
<span>
<input name="comments_require_moderation" type="radio" value="0" id="comments_require_moderation" <?php echo set_radio('comments_require_moderation', '0', (0 == intval($comments_require_moderation))?TRUE:FALSE); ?> />
<label for="comments_require_moderation">
不启用</label>
</span>
<span>
<input name="comments_require_moderation" type="radio" value="1" id="comments_require_moderation_1" <?php echo set_radio('comments_require_moderation', '1', (1 == intval($comments_require_moderation))?TRUE:FALSE); ?> />
<label for="comments_require_moderation_1">
启用</label>
</span>
<p class="description">
打开此选项后,所有提交的评论,引用通告和广播将不会立即呈现, 而是被标记为待审核, 你可以在后台标记它们是否呈现.</p>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label" for="comments_auto_close">
在文章发布一段时间后自动关闭反馈功能</label>
<select name="comments_auto_close" id="comments_auto_close">
<option value="0" <?php echo set_select('comments_auto_close', '0', (0 == intval($comments_auto_close))?TRUE:FALSE); ?>>
永不关闭</option>
<option value="86400" <?php echo set_select('comments_auto_close', '86400', (86400 == intval($comments_auto_close))?TRUE:FALSE); ?>>
一天后关闭</option>
<option value="259200" <?php echo set_select('comments_auto_close', '259200', (259200 == intval($comments_auto_close))?TRUE:FALSE); ?>>
三天后关闭</option>
<option value="1296000" <?php echo set_select('comments_auto_close', '1296000', (1296000 == intval($comments_auto_close))?TRUE:FALSE); ?>>
半个月后关闭</option>
<option value="2592000" <?php echo set_select('comments_auto_close', '2592000', (2592000 == intval($comments_auto_close))?TRUE:FALSE); ?>>
一个月后关闭</option>
<option value="7776000" <?php echo set_select('comments_auto_close', '7776000', (7776000 == intval($comments_auto_close))?TRUE:FALSE); ?>>
三个月后关闭</option>
<option value="15552000" <?php echo set_select('comments_auto_close', '15552000', (15552000 == intval($comments_auto_close))?TRUE:FALSE); ?>>
半年后关闭</option>
<option value="31536000" <?php echo set_select('comments_auto_close', '31536000', (31536000 == intval($comments_auto_close))?TRUE:FALSE); ?>>
一年后关闭</option>
</select>
<p class="description">
打开此选项后, 发布时间超过此设置文章的反馈功能将被关闭.<br />
此选项可以帮助你抵御一部分垃圾评论, 但也有可能会让你失去一部分优秀的评论.</p>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label">
必须填写邮箱</label>
<span>
<input name="comments_require_mail" type="radio" value="0" id="comments_require_mail" <?php echo set_radio('comments_require_mail', '0', (0 == intval($comments_require_mail))?TRUE:FALSE); ?> />
<label for="comments_require_mail">
不需要</label>
</span>
<span>
<input name="comments_require_mail" type="radio" value="1" id="comments_require_mail_1" <?php echo set_radio('comments_require_mail', '1', (1 == intval($comments_require_mail))?TRUE:FALSE); ?> />
<label for="comments_require_mail_1">
需要</label>
</span>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label">
必须填写网址</label>
<span>
<input name="comments_require_url" type="radio" value="0" id="comments_require_url" <?php echo set_radio('comments_require_url', '0', (0 == intval($comments_require_url))?TRUE:FALSE); ?> />
<label for="comments_require_url">
不需要</label>
</span>
<span>
<input name="comments_require_url" type="radio" value="1" id="comments_require_url_1" <?php echo set_radio('comments_require_url', '1', (1 == intval($comments_require_url))?TRUE:FALSE); ?> />
<label for="comments_require_url_1">
需要</label>
</span>
</li>
</ul>
<ul class="typecho-option">
<li>
<label class="typecho-label" for="comments_allowed_html">
允许使用的HTML标签和属性</label>
<textarea id="comments_allowed_html" name="comments_allowed_html"><?php echo set_value('comments_allowed_html',(!empty($comments_allowed_html)?$comments_allowed_html:'')); ?></textarea>
<p class="description">
默认的用户评论不允许填写任何的HTML标签, 你可以在这里填写允许使用的HTML标签.<br />
比如: <a href=""> <img src=""> <blockquote></p>
</li>
</ul>
<ul class="typecho-option typecho-option-submit">
<li>
<button type="submit">
保存设置</button>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
<?php
$this->load->view('admin/common-js');
$this->load->view('admin/copyright');
$this->load->view('admin/footer');
?>