forked from Dxoca/Iitboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.php
528 lines (526 loc) · 16.9 KB
/
options.php
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<?php
/*@support tpl_options*/
!defined('EMLOG_ROOT') && exit('access deined!');
include_once 'function.php';
$DTE = iitboyDice_getHeaderData();
$dpsSpeeder = iitboyDice_check_dps('speeder_menu');
$dpsCopyright = iitboyDice_check_dps('article_copyright', 'y', 'article');
$dpsRelated = iitboyDice_check_dps('article_related', 'y', 'article');
$options = array(
'TplOptionsNavi' => array(
'type' => 'radio',
'name' => '定义设置项标签页名称',
'values' => array(
'tpl-basic' => '基础设置',
'tpl-list' => '列表设置',
'tpl-log' => '文章设置',
'tpl-side' => '边栏设置',
'tpl-ad' => '广告设置',
'tpl-other' => '其它设置',
),
'description' => $DTE['agreement'] . '<br><br><hr><br>' . $DTE['tpldes']
),
'cdn' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '静态资源 CDN',
'values' => array(
'bootcdn' => 'BootCDN',
'baomitu' => '360奇舞团',
'staticfile' => '七牛云',
'bytedance' => '字节跳动',
'jsdelivr' => 'jsDelivr',
'cdnjs' => 'CDNJS',
'close' => '关闭',
),
'default' => 'close',
'description' => '稳定、快速、免费的前端开源项目 CDN 加速服务,关闭则使用本地资源'
),
'css_csshake' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'CSS 元素抖动动画',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '使DOM元素抖动起来,就是为了好玩'
),
'css_hint' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'CSS tooltips提示样式',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '快速实现tooltips提示样式,就是为了美化'
),
'js_lazyload' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'JS 图片延迟加载',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '支持列表文章缩略图、文章正文图片、游客头像,可以关闭'
),
'js_chaffle' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'JS 随机字符',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '允许你洗牌随机字符(仅适用jsDelivr、本地资源)'
),
'js_qrcode' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'JS 二维码',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => '动态生成二维码,可以关闭'
),
'auto_scroll' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '双击自动滚屏',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => '鼠标双击自动滚屏,再次点击停止滚屏。'
),
'img_error' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '图片加载失败',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '图片加载失败,列表页调用列表文章左侧默认图片,内容页隐藏图片。'
),
'bg' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '背景颜色',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => ''
),
'bg_color' => array(
'labels' => 'tpl-basic',
'type' => 'text',
'name' => '背景颜色',
'default' => 'rgba(194, 240, 194, 0.99)',
'description' => '',
),
'bgi' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '背景图片',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => '优先显示背景图片'
),
'bg_img' => array(
'labels' => 'tpl-basic',
'type' => 'image',
'name' => '背景图片',
'default' => TEMPLATE_URL . 'images/bj.jpg',
'description' => '若不能上传请改用ftp手动上传。'
),
'mbg_img' => array(
'labels' => 'tpl-basic',
'type' => 'image',
'name' => '背景图片-移动端',
'default' => TEMPLATE_URL . 'images/bj_m.jpg',
'description' => '若不能上传请改用ftp手动上传。'
),
'logo' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => 'logo',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
),
'logo_img' => array(
'labels' => 'tpl-basic',
'type' => 'image',
'name' => 'logo',
'default' => TEMPLATE_URL . 'images/logo.png',
'description' => '默认宽高:260X60,宽高没有限制,建议用png格式,若不能上传请改用ftp手动上传。'
),
'hitokoto' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '一言',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
),
'twitter' => array(
'labels' => 'tpl-basic',
'type' => 'radio',
'name' => '公告',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => '开启后自动获取站长的最新笔记/微语'
),
'twitter_div' => array(
'labels' => 'tpl-basic',
'type' => 'text',
'name' => '公告自定义',
'default' => '',
'description' => '(支持HTML)优先显示自定义,为空时调用笔记/微语'
),
'avatar' => array(
'labels' => 'tpl-basic',
'type' => 'image',
'name' => '游客默认头像',
'default' => TEMPLATE_URL . 'images/avatar.png',
'description' => ''
),
'log_img' => array(
'labels' => 'tpl-list',
'type' => 'radio',
'name' => '列表文章左侧图片',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => ''
),
'log_img_get' => array(
'labels' => 'tpl-list',
'type' => 'checkbox',
'name' => '列表文章左侧图片',
'values' => array(
'attachment' => '文章附件图片',
'content' => '正文图片',
'random' => '随机图片',
),
'default' => ['random'],
'description' => '开启后自动获取文章图片,文章封面->文章附件图片->正文图片->随机图片->默认图片'
),
'log_img_default' => array(
'labels' => 'tpl-list',
'type' => 'image',
'name' => '列表文章左侧默认图片',
'default' => TEMPLATE_URL . 'images/list.jpg',
'description' => ''
),
'log_excerpt_num' => array(
'labels' => 'tpl-list',
'type' => 'text',
'name' => '列表文章摘要截取',
'default' => '150',
'description' => ''
),
'baidu' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '文章页百度收录',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '文章页百度收录,此功能仅供参考,建议关闭。'
),
'log_copyright' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '文章页版权信息',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => $dpsCopyright
),
'log_qrcode' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '文章页二维码',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => $dpsCopyright?:'二维码启用规则,JS 二维码 > 文章页二维码 API'
),
'log_qrcode_api' => array(
'labels' => 'tpl-log',
'type' => 'text',
'name' => '文章页二维码 API',
'default' => 'https://api.isoyu.com/qr/?m=2&e=L&p=3&url=',
'description' => $dpsCopyright
),
'related' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '文章页相关文章',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => $dpsRelated
),
'related_type' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '相关文章类型',
'values' => array(
'sort' => '分类',
'tag' => '标签',
),
'default' => 'sort',
'description' => $dpsRelated
),
'related_desc' => array(
'labels' => 'tpl-log',
'type' => 'radio',
'name' => '相关文章排列方式',
'values' => array(
'rand' => '随机排列',
'views_desc' => '点击数(降序)',
'views_asc' => '点击数(升序)',
'comnum_desc' => '评论数(降序)',
'comnum_asc' => '评论数(升序)',
),
'default' => 'rand',
'description' => $dpsRelated
),
'related_num' => array(
'labels' => 'tpl-log',
'type' => 'text',
'name' => '相关文章显示数量',
'default' => '6',
'description' => $dpsRelated ?: '设置相关文章显示数量,直接填写数字即可。',
),
'blogger' => array(
'labels' => 'tpl-side',
'type' => 'radio',
'name' => '个人资料',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
),
'blogger_icon' => array(
'labels' => 'tpl-side',
'type' => 'checkbox',
'name' => '个人资料图标',
'values' => array(
'qq' => 'QQ',
'wechat' => '微信',
'email' => '邮箱',
'about' => '关于',
'guestbook' => '留言',
'donate' => '捐赠',
'rss' => 'RSS',
),
'default' => '',
'description' => ''
),
'qq' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '站长QQ',
'default' => '',
'description' => ''
),
'wechat_img' => array(
'labels' => 'tpl-side',
'type' => 'image',
'name' => '站长微信二维码',
'default' => TEMPLATE_URL . 'images/wechat.png',
'description' => ''
),
'email' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '站长邮箱',
'default' => '',
'description' => '此处不填写,则调用<a href="./blogger.php" target="_blank">个人设置</a>的邮箱'
),
'about' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '关于站长',
'default' => '',
'description' => ''
),
'guestbook' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '在线留言',
'default' => '',
'description' => ''
),
'donate' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '捐赠支持',
'default' => '',
'description' => ''
),
'donate_img' => array(
'labels' => 'tpl-side',
'type' => 'image',
'name' => '捐赠支持二维码',
'default' => TEMPLATE_URL . 'images/donate.png',
'description' => ''
),
'rss' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => 'RSS 订阅',
'default' => '',
'description' => ''
),
'comment' => array(
'labels' => 'tpl-side',
'type' => 'text',
'name' => '返回顶部中间“评”字链接',
'default' => '/guestbook',
'description' => '这个在首页点击是跳转到留言板的,如果是内页则跳转到评论处,一举两用。留言板可以用文章、页面来做,然后把地址粘贴在这里。'
),
'ad_side' => array(
'labels' => 'tpl-ad',
'type' => 'radio',
'name' => '边栏广告',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
),
'ad_side_text' => array(
'labels' => 'tpl-ad',
'type' => 'text',
'name' => '边栏广告内容',
'multi' => true,
'default' => '<a href="/" title="图片广告招租,30元1月。" target="_blank" rel="nofollow"><img src="' . TEMPLATE_URL . 'images/sideda.gif" alt=""/></a><br>
<li class="wzgg1"><a href="/" class="shake shake-little" title="文字招租:1月10元起" target="_blank" rel="nofollow">文字招租1:1月10元起</a></li>
<li class="wzgg2"><a href="/" class="shake shake-little" title="文字招租:1月10元起" target="_blank" rel="nofollow">文字招租2:1月10元起</a></li>
<li class="wzgg3"><a href="/" class="shake shake-little" title="本广告文字招租" target="_blank" rel="nofollow">文字招租3:1月10元起</a></li>
<li class="wzgg4"><a href="/" class="shake shake-little" title="本广告文字招租" target="_blank" rel="nofollow">文字招租4:1月10元起</a></li>',
'description' => ''
),
'ad_log' => array(
'labels' => 'tpl-ad',
'type' => 'radio',
'name' => '文章广告',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
),
'ad_log_text' => array(
'labels' => 'tpl-ad',
'type' => 'text',
'name' => '文章广告内容',
'multi' => true,
'default' => '<a href="/" title="图片广告招租,30元1月。" target="_blank" rel="nofollow" style="width:100%;background: rgba(0,0,0,0.6);color: white;padding: 1rem 0;">文章广告招租,请联系站长</a>',
'description' => ''
),
'avatar_cache' => array(
'labels' => 'tpl-other',
'type' => 'radio',
'name' => '头像缓存',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => '开启头像缓存会加密邮箱/QQ,防止对用户的骚扰'
),
'avatar_cache_time' => array(
'labels' => 'tpl-other',
'type' => 'text',
'name' => '头像缓存过期时间(s/秒)',
'default' => '2592000',
'description' => '86400/天,604800/周,2592000/月(30),31536000/年'
),
'login' => array(
'labels' => 'tpl-other',
'type' => 'text',
'name' => '用户登录',
'default' => '',
'description' => '用户登录地址'
),
'foot_a' => array(
'labels' => 'tpl-other',
'type' => 'text',
'name' => '底部信息',
'multi' => true,
'default' => '',
'description' => '底部信息,请使用 a 标签'
),
'foot_dice' => array(
'labels' => 'tpl-other',
'type' => 'radio',
'name' => '版权/主题/程序',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => '是否开启底部的版权、主题、程序的信息显示'
),
'html_annotation' => array(
'labels' => 'tpl-other',
'type' => 'radio',
'name' => '删除 HTML 注释',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'open',
'description' => $dpsSpeeder
),
'html_linefeeds_whitespace' => array(
'labels' => 'tpl-other',
'type' => 'radio',
'name' => '删除 HTML 中多余的换行和空格',
'values' => array(
'open' => '开启',
'close' => '关闭',
),
'default' => 'close',
'description' => $dpsSpeeder
),
);