-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptions.php
More file actions
226 lines (224 loc) · 8.05 KB
/
options.php
File metadata and controls
226 lines (224 loc) · 8.05 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?php
/*@support tpl_options*/
!defined('EMLOG_ROOT') && exit('access deined!');
$options = [
'TplOptionsNavi' => [
'type' => 'radio',
'name' => '定义设置项标签页名称',
'values' => [
'nv-favicon' => 'Favicon',
'nv-avatar' => '首页头像',
'nv-background' => '背景',
'nv-pjax' => 'Pjax 无刷新加载',
'nv-katex' => 'KaTeX 数学公式渲染',
'nv-prismjs' => 'Prism.JS 代码高亮',
'nv-toc' => 'TOC 文章目录树',
'nv-subcontent' => '摘要截取',
'nv-notice' => '首页公告',
'nv-custom' => '自定义代码'
],
'icons' => [
'nv-favicon' => 'ri-global-line',
'nv-avatar' => 'ri-account-circle-line',
'nv-background' => 'ri-picture-in-picture-line',
'nv-pjax' => 'ri-refresh-line',
'nv-katex' => 'ri-creative-commons-nd-line',
'nv-prismjs' => 'ri-lightbulb-line',
'nv-toc' => 'ri-menu-4-line',
'nv-subcontent' => 'ri-text-wrap',
'nv-notice' => 'ri-chat-2-line',
'nv-custom' => 'ri-code-s-slash-line'
],
'description' => '<p>模板:Bubble <br>化繁为简,如沐清风。</p>'
],
'favicon' => [
'labels' => 'nv-favicon',
'type' => 'text',
'name' => '站点 Favicon 地址',
'description' => '在这里填入一个图片 URL 地址,以在浏览器标题前加上一个 Favicon,留空则使用默认 Favicon'
],
'avatarEnable' => [
'labels' => 'nv-avatar',
'type' => 'checkon',
'name' => '首页头像',
'values' => [
'1' => 1,
],
'description' => '选择是否在首页显示头像'
],
'avatarFrom' =>[
'labels' => 'nv-avatar',
'type' => 'radio',
'name' => '首页头像源',
'values' => [
'admin' => '创始人头像',
'url' => 'URL',
],
'description' => '选择首页头像的来源,选择创始人头像会自动获取后台设置的创始人用户头像,若选择URL请在下方“首页头像URL地址”填入'
],
'avatarUrl' => [
'labels' => 'nv-avatar',
'type' => 'text',
'name' => '首页头像URL地址',
'description' => '在这里填入一个图片 URL 地址,以在首页显示一个头像,留空则使用默认头像'
],
'indexImage' => [
'labels' => 'nv-background',
'type' => 'text',
'name' => '随机首页背景图像地址',
'multi' => true,
'description' => '在这里填入一个或多个图片 URL 地址,每行一个,<strong>请勿包含多余字符</strong>,以设定网站首页的头图,留空则使用默认紫色渐变背景'
],
'randomImage' => [
'labels' => 'nv-background',
'type' => 'text',
'multi' => true,
'name' => '随机背景图像地址',
'description' => '在这里填入一个或多个图片 URL 地址,每行一个,<strong>请勿包含多余字符</strong>,以设定网站文章页、独立页面以及其他页面的头图,设定后将随机显示,留空则使用默认紫色渐变背景'
],
'bubbleShow' => [
'labels' => 'nv-background',
'type' => 'checkon',
'name' => '背景气泡',
'values' => [
'1' => 1,
],
'description' => '选择是否在首页以及文章页顶部背景处显示半透明气泡'
],
'Pjax' => [
'labels' => 'nv-pjax',
'type' => 'checkon',
'name' => 'Pjax 无刷新加载',
'values' => [
'1' => 1,
],
'description' => '选择是否启用全站 Pjax 无刷新加载模式提升用户访问体验。<strong>(注意:可能会导致部分插件失效,可设置回调函数解决问题)</strong>'
],
'pjaxcomp' => [
'labels' => 'nv-pjax',
'type' => 'text',
'multi' => true,
'name' => 'Pjax 回调函数',
'description' => '在这里填入所需要的 js,以实现 Pjax 无刷新加载后的回调函数,如重新加载部分插件等'
],
'katex' => [
'labels' => 'nv-katex',
'type' => 'checkon',
'name' => 'KaTeX 数学公式渲染',
'values' => [
'1' => 1,
],
'description' => '选择是否启用 KaTeX 数学公式渲染'
],
'prismjs' => [
'labels' => 'nv-prismjs',
'type' => 'checkon',
'name' => 'prism.js 代码高亮',
'values' => [
'1' => 1,
],
'description' => '选择是否启用 prism.js 代码高亮'
],
'prismLine' => [
'labels' => 'nv-prismjs',
'type' => 'checkon',
'name' => 'prism.js 代码行号',
'values' => [
'1' => 1,
],
'description' => '选择是否启用 prism.js 代码行号'
],
'prismTheme' => [
'labels' => 'nv-prismjs',
'type' => 'radio',
'name' => 'prism.js 高亮主题',
'values' => [
'prism' => 'default',
'prism-coy' => 'coy',
'prism-dark' => 'dark',
'prism-funky' => 'funky',
'prism-okaidia' => 'okaidia',
'prism-solarizedlight' => 'solarizedlight',
'prism-tomorrow' => 'tomorrow',
'prism-twilight' => 'twilight',
],
'description' => '选择 prism.js 代码高亮的主题配色'
],
'toc' => [
'labels' => 'nv-toc',
'type' => 'checkon',
'name' => 'toc文章目录',
'values' => [
'1' => 1,
],
'description' => '选择是否启用toc文章目录'
],
'toc_enable' => [
'labels' => 'nv-toc',
'type' => 'checkon',
'name' => 'toc文章目录默认展开',
'values' => [
'1' => 1,
],
'description' => '选择是否启用toc文章目录默认展开'
],
'subContent' => [
'labels' => 'nv-subcontent',
'type' => 'checkon',
'name' => '自动截取摘要',
'default' => 0,
'values' => [
'1' => 1,
],
'description' => '文章自动截取摘要(关闭后若文章未手动设置摘要则显示全文),<b>注意:开启后摘要将丢失样式,建议关闭此功能手动设置摘要以获得更好的浏览体验</b>'
],
'subContentLen' => [
'labels' => 'nv-subcontent',
'type' => 'text',
'name' => '自动摘要截取长度',
'description' => '在这里填入一个数字,以设定摘要截取长度,留空则默认截取 200 个字符'
],
'notice' => [
'labels' => 'nv-notice',
'type' => 'checkon',
'name' => '公告',
'default' => 0,
'values' => [
'1' => 1,
],
'description' => '选择是否启用公告'
],
'noticeTitle' => [
'labels' => 'nv-notice',
'type' => 'text',
'name' => '公告标题',
'description' => '在这里填入公告标题'
],
'noticeContent' => [
'labels' => 'nv-notice',
'type' => 'text',
'multi' => true,
'name' => '公告内容',
'description' => '在这里填入公告内容,支持 HTML 代码'
],
'noticeTime' => [
'labels' => 'nv-notice',
'type' => 'text',
'name' => '公告展示时间',
'description' => '在这里填入公告展示时间,单位为毫秒,留空则需手动关闭'
],
'customCss' => [
'labels' => 'nv-custom',
'type' => 'text',
'multi' => true,
'name' => '自定义 CSS',
'description' => '在这里填入所需要的 css,以实现自定义页面样式,如调整字体大小等'
],
'customJs' => [
'labels' => 'nv-custom',
'type' => 'text',
'multi' => true,
'name' => '自定义 JS',
'description' => '在这里填入所需要的 JS,以实现自定义页面样式,如调整字体大小等'
],
];