-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfunctions.php
More file actions
1705 lines (1577 loc) · 75.4 KB
/
Copy pathfunctions.php
File metadata and controls
1705 lines (1577 loc) · 75.4 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
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
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
require_once("core/core.php");
function themeConfig($form)
{
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
try {
if (!array_key_exists('views', $db->fetchRow($db->select()->from('table.contents')->page(1, 1)))) {
$db->query('ALTER TABLE `' . $prefix . 'contents` ADD `views` INT DEFAULT 0;');
}
if (!array_key_exists('agree', $db->fetchRow($db->select()->from('table.contents')->page(1, 1)))) {
$db->query('ALTER TABLE `' . $prefix . 'contents` ADD `agree` INT DEFAULT 0;');
}
if (!array_key_exists('likes', $db->fetchRow($db->select()->from('table.comments')->page(1, 1)))) {
$db->query('ALTER TABLE `' . $prefix . 'comments` ADD `likes` INT DEFAULT 0;');
}
} catch (Exception $e) {
echo '<div style="display: none">' . $e->getMessage() . '</div>';
}
?>
<div class="j-setting-contain">
<link href="<?php echo autoCdnUrl('assets/css/joe.setting.min.css'); ?>" rel="stylesheet" type="text/css" />
<div>
<div class="j-aside">
<div class="logo">Joe <?php echo JoeVersion() ?></div>
<ul class="j-setting-tab">
<li data-current="j-setting-notice">最新公告</li>
<li data-current="j-setting-global">公共设置</li>
<li data-current="j-setting-image">图片设置</li>
<li data-current="j-setting-post">文章设置</li>
<li data-current="j-setting-aside">侧栏设置</li>
<li data-current="j-setting-color">色彩圆角</li>
<li data-current="j-setting-index">首页设置</li>
<li data-current="j-setting-other">其他设置</li>
</ul>
<?php require_once("core/backup.php"); ?>
</div>
</div>
<span id="j-version" style="display: none;"><?php echo JoeVersion() ?></span>
<div class="j-setting-notice">请求数据中...</div>
<script src="<?php echo autoCdnUrl('assets/js/joe.setting.min.js'); ?>"></script>
<?php
/* 公共设置 */
$denglong = new Typecho_Widget_Helper_Form_Element_Text(
'denglong',
NULL, NULL,
'大红灯笼',
'介绍:填写内容将会在页面右上角显示一个喜气洋洋的大红灯笼,不填写则不显示。<br />
格式:内容 || 内容 (中间使用两个竖杠分隔)<br />
例如:喜||迎||新||春 <br />
注意:每个内容最多为一个汉字
'
);
$denglong->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($denglong);
$JSnow = new Typecho_Widget_Helper_Form_Element_Select(
'JSnow',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启雪花飘落效果',
'介绍:开启后所有页面都有雪花飘落特效'
);
$JSnow->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JSnow->multiMode());
$yunxing_time = new Typecho_Widget_Helper_Form_Element_Text(
'yunxing_time',
NULL, NULL,
'建站时间',
'介绍:填写时间将会在页脚显示博客的建站运行时间,不填写则不显示。<br />
格式为:3/8/2019 00:00:00'
);
$yunxing_time->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($yunxing_time);
$JMobiset = new Typecho_Widget_Helper_Form_Element_Select('JMobiset',array(0=>'不开启',1=>'开启'),0,'移动端下边栏设置','介绍:开启后移动端页脚显示底部菜单');
$JMobiset->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JMobiset);
$copying = new Typecho_Widget_Helper_Form_Element_Select('copying',array(0=>'不开启',1=>'开启'),0,'复制内容提醒','介绍:开启后复制内容弹出提醒对话框');
$copying->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($copying);
$JCommentStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentStatus',
array('on' => '开启(默认)', 'off' => '关闭'),
'on',
'开启或关闭全站评论',
'介绍:一键开启关闭所有页面的评论 <br>
注意:此处的权重优先级最高,若关闭此项而文章内开启评论,评论依旧为关闭状态'
);
$JCommentStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCommentStatus->multiMode());
$JDayNight = new Typecho_Widget_Helper_Form_Element_Select(
'JDayNight',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否启用自动根据时间切换白天黑夜模式',
''
);
$JDayNight->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JDayNight->multiMode());
$JCDNUrl = new Typecho_Widget_Helper_Form_Element_Text(
'JCDNUrl',
NULL, 'https://gcore.jsdelivr.net/gh/Carnia/Typecho-Joe-Theme@latest/',
'cdn链接前缀(/结尾)',
'默认为空,则指向服务器typecho/usr/themes/Typecho-Joe-Theme/<br />
填cdn可以是https://gcore.jsdelivr.net/gh/Carnia/Typecho-Joe-Theme@latest/<br />
cdn挂了的时候可以置空'
);
$JCDNUrl->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCDNUrl);
$JDefend = new Typecho_Widget_Helper_Form_Element_Select(
'JDefend',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'请选择是否开启网站维护',
'介绍:开启后,网站所有页面将会显示维护界面,不可访问。'
);
$JDefend->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JDefend->multiMode());
$JPrevent = new Typecho_Widget_Helper_Form_Element_Select(
'JPrevent',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'请选择是否开启QQ防红拦截',
'介绍:开启后,如果在QQ里打开网站,则会提示跳转浏览器打开'
);
$JPrevent->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JPrevent->multiMode());
$JHeaderStyle = new Typecho_Widget_Helper_Form_Element_Select(
'JHeaderStyle',
array('default' => '居中(默认)', 'fluid' => '全屏'),
'default',
'选择一款您喜欢的头部风格',
'介绍:根据您的个人爱好选择一款您喜爱的风格'
);
$JHeaderStyle->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JHeaderStyle->multiMode());
$JNavMaxNum = new Typecho_Widget_Helper_Form_Element_Select(
'JNavMaxNum',
array(
'1' => '1个(默认)',
'2' => '2个',
'3' => '3个',
'4' => '4个(推荐)',
'5' => '5个',
'6' => '6个',
'7' => '7个',
),
'1',
'选择默认风格导航栏最大显示的个数',
'介绍:该选项只会在PC端默认头部风格生效。用于设置最大多少个后,显示更多下拉框'
);
$JNavMaxNum->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JNavMaxNum->multiMode());
$JHorseStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JHorseStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启页面顶部跑马灯',
'介绍:开启后页面顶部将显示跑马灯特效 <br />
注意:此项只会在当头部为居中风格下生效'
);
$JHorseStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JHorseStatus->multiMode());
$JCensusStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JCensusStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启导航栏统计按钮(仅在分辨率大于768以上的设备显示)',
'介绍:开启后将会显示HighCharts生成的柱状统计表'
);
$JCensusStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCensusStatus->multiMode());
$JBarragerStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JBarragerStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启弹幕功能(仅限PC)',
'介绍:开启后,网站将会显示评论弹幕功能,该功能采用CSS动画引擎,并非传统JS操作DOM,无任何性能消耗。'
);
$JBarragerStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JBarragerStatus->multiMode());
$JSignStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JSignStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启登录和注册功能',
'介绍:开启后,网站将会显示登录和注册按钮 <br />
注意:注册功能需要您在后台开启允许注册才会显示'
);
$JSignStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JSignStatus->multiMode());
$JScan = new Typecho_Widget_Helper_Form_Element_Select(
'JScan',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启登录扫码功能',
'介绍:开启后,网站将会显示登录扫码按钮 <br />
注意:扫码功能需要您在后台安装扫码登录插件且开启登录注册功能'
);
$JScan->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JScan->multiMode());
$JProgressStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JProgressStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启或关闭页面进度条',
'介绍:开启后,网站头部将会显示进度条,该进度条与页面长度成对应关系,页面滚动多少,那么进度条的宽度就是多少。'
);
$JProgressStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JProgressStatus->multiMode());
$JPageStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JPageStatus',
array('default' => '按钮切换形式(默认)', 'ajax' => '点击加载形式'),
'default',
'选择首页的分页形式',
'介绍:选择一款您所喜欢的分页形式'
);
$JPageStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JPageStatus->multiMode());
$JContextMenuStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JContextMenuStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'on',
'是否开启禁用鼠标右键(仅限PC)',
'介绍:开启后则鼠标右键不可用'
);
$JContextMenuStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JContextMenuStatus->multiMode());
$JDocumentTitle = new Typecho_Widget_Helper_Form_Element_Text(
'JDocumentTitle',
NULL,
NULL,
'网页被隐藏时显示的标题(非必填,仅限PC)',
'介绍:在PC端切换网页标签时,网站标题显示的内容。如果不填写,则默认不开启'
);
$JDocumentTitle->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JDocumentTitle);
$JCursorEffects = new Typecho_Widget_Helper_Form_Element_Select(
'JCursorEffects',
array(
'off' => '关闭(默认)',
'cursor1.min.js' => '烟花效果',
'cursor2.min.js' => '气泡效果',
'cursor3.min.js' => '富强、民主、和谐(消耗性能)',
'cursor4.min.js' => '彩色爱心(消耗性能)'
),
'off',
'选择鼠标点击特效',
'介绍:用于切换鼠标点击特效 '
);
$JCursorEffects->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCursorEffects->multiMode());
$JPlayer = new Typecho_Widget_Helper_Form_Element_Text(
'JPlayer',
NULL,
NULL,
'音乐歌单ID(非必填,分辨率大于768像素才会显示)',
'介绍:填写正确的歌单ID后将会显示播放器 <br />
方法:打开 https://music.163.com/ 登陆自己的号找一个喜欢的歌单,复制地址栏上面的ID,例如149232428。<br />
注意:填写则显示播放器,如果不填写则不显示'
);
$JPlayer->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JPlayer);
$JCursorType = new Typecho_Widget_Helper_Form_Element_Select(
'JCursorType',
array(
'off' => '默认样式(默认)',
'cursor1.cur' => '风格1',
'cursor2.cur' => '风格2',
'cursor3.cur' => '风格3',
'cursor4.cur' => '风格4',
'cursor5.cur' => '风格5',
'cursor6.cur' => '风格6',
),
'off',
'是否开启自定义鼠标风格(仅限PC)',
'介绍:选择一款您所喜欢的鼠标默认样式。'
);
$JCursorType->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCursorType->multiMode());
$JConsoleStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JConsoleStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启页面防调试',
'介绍:开启后当有人打开f12控制台偷代码时,会强制跳转到Typecho-Joe-Theme/console.html页面'
);
$JConsoleStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JConsoleStatus->multiMode());
$JCustomCSS = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomCSS',
NULL,
NULL,
'自定义CSS(非必填)',
'介绍:请填写自定义CSS内容,填写时无需填写style标签。'
);
$JCustomCSS->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCustomCSS);
$JCustomScript = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomScript',
NULL,
NULL,
'自定义JS(非必填,请看下方介绍)',
'介绍:请填写自定义JS内容,例如网站统计等,填写时无需填写script标签。<br />
注意:该处的JS优先级最高,如果你不小心写错了一个单词,或英文逗号写成了中文逗号,都有可能导致整个模板瘫痪!非专业人士请勿填写!'
);
$JCustomScript->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCustomScript);
$JCustomHeadEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomHeadEnd',
NULL,
NULL,
'自定义head标签末尾位置内容',
'介绍:此处用于填写在<head></head>内末尾的内容'
);
$JCustomHeadEnd->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCustomHeadEnd);
$JCustomBodyStart = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomBodyStart',
NULL,
NULL,
'自定义body标签开始位置内容',
'介绍:此处用于填写在<body></body>开始位置的内容'
);
$JCustomBodyStart->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCustomBodyStart);
$JCustomBodyEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomBodyEnd',
NULL,
NULL,
'自定义body标签末尾位置内容',
'介绍:此处用于填写在<body></body>末尾位置的内容'
);
$JCustomBodyEnd->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCustomBodyEnd);
$JLive2D = new Typecho_Widget_Helper_Form_Element_Select(
'JLive2D',
array(
'off' => '关闭(默认)',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json' => 'shizuku',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-izumi@1.0.5/assets/izumi.model.json' => 'izumi',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-haru@1.0.5/01/assets/haru01.model.json' => 'haru01',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-haru@1.0.5/02/assets/haru02.model.json' => 'haru02',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json' => 'wanko',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json' => 'hijiki',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json' => 'koharu',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-z16@1.0.5/assets/z16.model.json' => 'z16',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json' => 'haruto',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-tororo@1.0.5/assets/tororo.model.json' => 'tororo',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json' => 'chitose',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-miku@1.0.5/assets/miku.model.json' => 'miku',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-epsilon2_1@1.0.5/assets/Epsilon2.1.model.json' => 'Epsilon2.1',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-unitychan@1.0.5/assets/unitychan.model.json' => 'unitychan',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-nico@1.0.5/assets/nico.model.json' => 'nico',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-rem@1.0.1/assets/rem.model.json' => 'rem',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-nito@1.0.5/assets/nito.model.json' => 'nito',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-nipsilon@1.0.5/assets/nipsilon.model.json' => 'nipsilon',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-ni-j@1.0.5/assets/ni-j.model.json' => 'ni-j',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-nietzsche@1.0.5/assets/nietzche.model.json' => 'nietzche',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-platelet@1.1.0/assets/platelet.model.json' => 'platelet',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-isuzu@1.0.4/assets/model.json' => 'isuzu',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-jth@1.0.0/assets/model/katou_01/katou_01.model.json' => 'katou_01',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-mikoto@1.0.0/assets/mikoto.model.json' => 'mikoto',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-mashiro-seifuku@1.0.1/assets/seifuku.model.json' => 'seifuku',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-ichigo@1.0.1/assets/ichigo.model.json' => 'ichigo',
'https://cdn.jsdelivr.net/npm/live2d-widget-model-hk_fos@1.0.0/assets/hk416.model.json' => 'hk416'
),
'off',
'选择一款喜爱的Live2D人物模型(仅限PC并且屏幕大于1600像素才会显示)',
'介绍:开启后会在右下角显示一个小人,该功能采用远程调用不会消耗性能'
);
$JLive2D->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JLive2D->multiMode());
$JPageLoading = new Typecho_Widget_Helper_Form_Element_Select(
'JPageLoading',
array(
'off' => '关闭(默认)',
'spinner1' => '形状1',
'spinner2' => '形状2',
'spinner3' => '形状3',
'spinner4' => '形状4',
'spinner5' => '形状5',
'spinner6' => '形状6',
'spinner7' => '形状7',
),
'off',
'是否开启页面刷新首次进入加载',
'介绍:开启后当您刷新页面或首次进入页面时,将显示全屏加载'
);
$JPageLoading->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JPageLoading->multiMode());
$JBackTopStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JBackTopStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启返回顶部',
'介绍:开启后将在屏幕右下方显示返回顶部按钮 <br />
注意:页面滚动到一定的高度才会显示返回顶部按钮,并不会一直显示'
);
$JBackTopStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JBackTopStatus->multiMode());
$JLogin = new Typecho_Widget_Helper_Form_Element_Select(
'JLogin',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启右下角登录',
'介绍:开启后将在屏幕右下方显示登录按钮'
);
$JLogin->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JLogin->multiMode());
$JGlobalThemeColor = new Typecho_Widget_Helper_Form_Element_Text(
'JGlobalThemeColor',
NULL,
NULL,
'网站默认主题色(非必填,填写时请务必按格式填写正确!例如:#ff6800)',
'介绍:用户第一次进入页面,或者是在前台没有选择过颜色时候的默认主题色 <br />
格式:颜色值(例如:#ff6800),若填写请务必按照格式填写,否则会导致网站主题色无法显示!!!'
);
$JGlobalThemeColor->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JGlobalThemeColor);
$JGlobalThemeStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JGlobalThemeStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'请选择是否开启自定义主题',
'介绍:本模板的特色,采用最新CSS var语法,无任何性能消耗,极其推荐开启 <br />
注意:不兼容垃圾IE'
);
$JGlobalThemeStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JGlobalThemeStatus->multiMode());
$JCountTime = new Typecho_Widget_Helper_Form_Element_Select(
'JCountTime',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启页面加载计时',
'介绍:开启后页面最底部将显示一个加载计时'
);
$JCountTime->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JCountTime->multiMode());
$JBanQuan = new Typecho_Widget_Helper_Form_Element_Textarea(
'JBanQuan',
NULL,
NULL,
'底部版权文字(非必填)',
'介绍:字数请勿过多,内容随意。例如:备案信息xxxx,支持html标签'
);
$JBanQuan->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JBanQuan);
$JBanQuanLinks = new Typecho_Widget_Helper_Form_Element_Textarea(
'JBanQuanLinks',
NULL,
NULL,
'底部链接(非必填)',
'介绍:要求:a标签格式。例如:<a href="/">首页</a> <a href="/">关于</a>'
);
$JBanQuanLinks->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JBanQuanLinks);
$JGravatars = new Typecho_Widget_Helper_Form_Element_Select(
'JGravatars',
array(
'gravatar.helingqi.com/wavatar' => '禾令奇(默认)',
'www.gravatar.com/avatar' => 'gravatar的www源',
'cravatar.cn/avatar' => 'cravatar的cn源',
'secure.gravatar.com/avatar' => 'gravatar的secure源',
'sdn.geekzu.org/avatar' => '极客族',
'cdn.v2ex.com/gravatar' => 'v2ex源',
'dn-qiniu-avatar.qbox.me/avatar' => '七牛源[不建议]',
'gravatar.loli.net/avatar' => 'loli.net源',
),
'gravatar.helingqi.com/wavatar',
'选择头像源',
'介绍:不同的源响应速度不同,头像也不同'
);
$JGravatars->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JGravatars->multiMode());
$JHoverMusicStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JHoverMusicStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启鼠标划入音效(仅限PC)',
'介绍:开启后,当鼠标划入到带有 j-hover-music 的类名上时,页面将会播放钢琴音效 <br />
例如:网站头部的 logo 。如果您想自定义地方,请在需要添加的元素加上 j-hover-music 类名即可。'
);
$JHoverMusicStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JHoverMusicStatus->multiMode());
$JFishStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JFishStatus',
array(
'off' => '关闭(默认)',
'top' => '开启并显示在footer上方',
'bottom' => '开启并显示在footer下方',
),
'off',
'是否开启全部底部的鱼群跳跃动画',
'介绍:开启后,网站底部会有动态的鱼群跳跃动画'
);
$JFishStatus->setAttribute('class', 'j-setting-content j-setting-global');
$form->addInput($JFishStatus->multiMode());
/* 图片设置 */
$JLazyLoad = new Typecho_Widget_Helper_Form_Element_Text(
'JLazyLoad',
NULL,
NULL,
'全局懒加载图(非必填)',
'介绍:用于修改全局懒加载图片 <br />
格式:base64 或者 图片url'
);
$JLazyLoad->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JLazyLoad);
$Jmos = new Typecho_Widget_Helper_Form_Element_Textarea(
'Jmos',
NULL,
NULL,
'自定义默认缩略图(非必填)',
'填写图片地址,一行一个,文章中没有图片时将随机使用这里面的图片地址。也可以填写图片API。不填写则使用程序内置的图片(哆啦B梦)'
);
$Jmos->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($Jmos);
$JFavicon = new Typecho_Widget_Helper_Form_Element_Textarea(
'JFavicon',
NULL,
NULL,
'网站 favicon 设置(非必填)',
'介绍:用于设置网站 favicon,一个好的 favicon 可以给用户一种很专业的观感 <br />
格式:图片 URL地址 或 图片 Base64 地址 <br />
其他:免费转换 favicon 网站 <a target="_blank" href="//tool.lu/favicon">tool.lu/favicon</a>'
);
$JFavicon->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JFavicon);
$JLogo = new Typecho_Widget_Helper_Form_Element_Textarea(
'JLogo',
NULL,
NULL,
'网站 logo 设置(非必填)',
'介绍:用于设置网站 logo,一个好的 logo 能为网站带来有效的流量 <br />
格式:图片 URL地址 或 图片 Base64 地址 <br />
其他:免费制作 logo 网站 <a target="_blank" href="//www.uugai.com">www.uugai.com</a>'
);
$JLogo->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JLogo);
$JDocumentCanvasBG = new Typecho_Widget_Helper_Form_Element_Select(
'JDocumentCanvasBG',
array(
'off' => '关闭(默认)',
'background1.min.js' => '效果1',
'background2.min.js' => '效果2',
'background3.min.js' => '效果3',
'background4.min.js' => '效果4',
'background5.min.js' => '效果5',
'background6.min.js' => '效果6',
'background7.min.js' => '效果7',
),
'off',
'是否开启动态背景图(仅限PC)',
'介绍:开启后下方您所设置的PC端自定义背景图将会失效,以动态背景优先,并且手机端是不支持此项的。<br />
注意:此项由于是canvas生成,所以开启这项是影响性能的!'
);
$JDocumentCanvasBG->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JDocumentCanvasBG->multiMode());
$JDocumentPCBG = new Typecho_Widget_Helper_Form_Element_Textarea(
'JDocumentPCBG',
NULL,
NULL,
'PC端网站背景图片(非必填)',
'介绍:PC端网站的背景图片,不填写时显示默认的灰色。<br />
格式:图片URL地址 或 随机图片api 例如:http://api.btstu.cn/sjbz/?lx=dongman <br />
注意:若您想使用自定义图片,请先关闭上方的动态背景,否则该项不会起作用。'
);
$JDocumentPCBG->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JDocumentPCBG);
$JDocumentWAPBG = new Typecho_Widget_Helper_Form_Element_Textarea(
'JDocumentWAPBG',
NULL,
NULL,
'WAP端网站背景图片(非必填)',
'介绍:WAP端网站的背景图片,不填写时显示默认的灰色。<br />
格式:图片URL地址 或 随机图片api 例如:http://api.btstu.cn/sjbz/?lx=m_dongman'
);
$JDocumentWAPBG->setAttribute('class', 'j-setting-content j-setting-image');
$form->addInput($JDocumentWAPBG);
/* 文章设置 */
$JBreadStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JBreadStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启面包屑导航',
'介绍:开启后,文章页面顶部将会显示面包屑导航。'
);
$JBreadStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JBreadStatus->multiMode());
$huaban = new Typecho_Widget_Helper_Form_Element_Select(
'huaban',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启画板评论',
'介绍:开启后,文章评论部分出现画板。'
);
$huaban->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($huaban->multiMode());
$JPostCountingStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JPostCountingStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启统计信息',
'介绍:开启后,在文章的大标题下方将会显示该篇文章的统计信息,例如浏览量、百度收录、文章发布时间等。'
);
$JPostCountingStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JPostCountingStatus->multiMode());
$JCodeColor = new Typecho_Widget_Helper_Form_Element_Select(
'JCodeColor',
array(
'off' => '关闭该插件(默认)',
'github' => 'github',
'darcula' => 'darcula',
'zenburn' => 'zenburn',
'xt256' => 'xt256',
'xcode' => 'xcode',
'vs2015' => 'vs2015',
'vs' => 'vs',
'tomorrow-night-eighties' => 'tomorrow-night-eighties',
'tomorrow-night-bright' => 'tomorrow-night-bright',
'tomorrow-night-blue' => 'tomorrow-night-blue',
'tomorrow-night' => 'tomorrow-night',
'tomorrow' => 'tomorrow',
'sunburst' => 'sunburst',
'srcery' => 'srcery',
'solarized-light' => 'solarized-light',
'solarized-dark' => 'solarized-dark',
'shades-of-purple' => 'shades-of-purple',
'school-book' => 'school-book',
'routeros' => 'routeros',
'rainbow' => 'rainbow',
'railscasts' => 'railscasts',
'qtcreator_light' => 'qtcreator_light',
'qtcreator_dark' => 'qtcreator_dark',
'purebasic' => 'purebasic',
'pojoaque' => 'pojoaque',
'paraiso-light' => 'paraiso-light',
'paraiso-dark' => 'paraiso-dark',
'ocean' => 'ocean',
'obsidian' => 'obsidian',
'nord' => 'nord',
'nnfx-dark' => 'nnfx-dark',
'nnfx' => 'nnfx',
'night-owl' => 'night-owl',
'monokai-sublime' => 'monokai-sublime',
'monokai' => 'monokai',
'magula' => 'magula',
'lioshi' => 'lioshi',
'lightfair' => 'lightfair',
'kimbie.light' => 'kimbie.light',
'kimbie.dark' => 'kimbie.dark',
'isbl-editor-light' => 'isbl-editor-light',
'isbl-editor-dark' => 'isbl-editor-dark',
'ir-black' => 'ir-black',
'idea' => 'idea',
'hybrid' => 'hybrid',
'hopscotch' => 'hopscotch',
'gruvbox-light' => 'gruvbox-light',
'gruvbox-dark' => 'gruvbox-dark',
'grayscale' => 'grayscale',
'gradient-light' => 'gradient-light',
'gradient-dark' => 'gradient-dark',
'googlecode' => 'googlecode',
'gml' => 'gml',
'github-gist' => 'github-gist',
'foundation' => 'foundation',
'far' => 'far',
'dracula' => 'dracula',
'docco' => 'docco',
'default' => 'default',
'dark' => 'dark',
'color-brewer' => 'color-brewer',
'codepen-embed' => 'codepen-embed',
'brown-paper' => 'brown-paper',
'atom-one-light' => 'atom-one-light',
'atom-one-dark-reasonable' => 'atom-one-dark-reasonable',
'atom-one-dark' => 'atom-one-dark',
'atelier-sulphurpool-light' => 'atelier-sulphurpool-light',
'atelier-sulphurpool-dark' => 'atelier-sulphurpool-dark',
'atelier-seaside-light' => 'atelier-seaside-light',
'atelier-seaside-dark' => 'atelier-seaside-dark',
'atelier-savanna-light' => 'atelier-savanna-light',
'atelier-savanna-dark' => 'atelier-savanna-dark',
'atelier-plateau-light' => 'atelier-plateau-light',
'atelier-plateau-dark' => 'atelier-plateau-dark',
'atelier-lakeside-light' => 'atelier-lakeside-light',
'atelier-lakeside-dark' => 'atelier-lakeside-dark',
'atelier-heath-light' => 'atelier-heath-light',
'atelier-heath-dark' => 'atelier-heath-dark',
'atelier-forest-light' => 'atelier-forest-light',
'atelier-forest-dark' => 'atelier-forest-dark',
'atelier-estuary-light' => 'atelier-estuary-light',
'atelier-estuary-dark' => 'atelier-estuary-dark',
'atelier-dune-light' => 'atelier-dune-light',
'atelier-dune-dark' => 'atelier-dune-dark',
'atelier-cave-light' => 'atelier-cave-light',
'atelier-cave-dark' => 'atelier-cave-dark',
'ascetic' => 'ascetic',
'arta' => 'arta',
'arduino-light' => 'arduino-light',
'an-old-hope' => 'an-old-hope',
'androidstudio' => 'androidstudio',
'agate' => 'agate',
'a11y-light' => 'a11y-light',
'a11y-dark' => 'a11y-dark'
),
'off',
'选择一款你所喜欢的代码高亮风格',
'介绍:强大的语法高亮插件,多种风格供您选择,如果以上还是没有您所喜欢的风格,请关闭该插件,自行使用其他插件'
);
$JCodeColor->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JCodeColor->multiMode());
$JTagStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JTagStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启文章底部标签和操作按钮',
'介绍:开启后,文章底部将显示标签和操作按钮'
);
$JTagStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JTagStatus->multiMode());
$JBanQuanStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JBanQuanStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启转载版权信息',
'介绍:开启后,在文章末尾将会显示转载的版权信息。'
);
$JBanQuanStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JBanQuanStatus->multiMode());
$JRelatedStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JRelatedStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启相关文章',
'介绍:开启后,文章结尾处将会显示当前文章的其他相关文章,如果没有推荐的文章,那么相关推荐是不会显示的。'
);
$JRelatedStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JRelatedStatus->multiMode());
$JDirectoryStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JDirectoryStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启文章页和自定义页目录树(仅限PC并且分辨率大于1570像素才会显示)',
'介绍:开启后,文章页面和自定义页面将显示目录树(小屏幕上不会显示)'
);
$JDirectoryStatus->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JDirectoryStatus->multiMode());
$JAdmire = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAdmire',
NULL,
NULL,
'3合一收款码(非必填)',
'介绍:填写则显示文章页与自定义页面的赞赏功能 <br />
格式:图片地址<br />
其他:免费生成网址:<a href="http://qrcode.xiaod8.cn" target="_blank">http://qrcode.xiaod8.cn</a>'
);
$JAdmire->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JAdmire);
$JQQSharePic = new Typecho_Widget_Helper_Form_Element_Text(
'JQQSharePic',
NULL,
NULL,
'QQ内分享链接时的缩略图',
'介绍:填写则显示分享缩略图,不填写则看脸取网站随机图片'
);
$JQQSharePic->setAttribute('class', 'j-setting-content j-setting-post');
$form->addInput($JQQSharePic);
/* 侧边栏 */
$JIndexAsideStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JIndexAsideStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启PC首页和搜索页侧边栏',
'介绍:开启后,首页和搜索页将显示侧边栏(首先您得先开启下面设置的侧边栏,如果您只开启了此项,而下面的侧边栏选项都是关闭的。那么开启和关闭没什么区别)'
);
$JIndexAsideStatus->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JIndexAsideStatus->multiMode());
$JPostAsideStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JPostAsideStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启PC文章页和自定义页面的侧边栏',
'介绍:开启后,文章页和自定义页面将显示侧边栏(首先您得先开启下面设置的侧边栏,如果您只开启了此项,而下面的侧边栏选项都是关闭的。那么开启和关闭没什么区别)'
);
$JPostAsideStatus->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JPostAsideStatus->multiMode());
$JactiveUsers = new Typecho_Widget_Helper_Form_Element_Radio(
'JactiveUsers',
array(
1 => '开启',
0 => '关闭',
),0,'是否开启互动读者','介绍:显示评论相关用户'
);
$JactiveUsers->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JactiveUsers);
$JADContent1 = new Typecho_Widget_Helper_Form_Element_Textarea(
'JADContent1',
NULL,
NULL,
'侧边栏广告1(非必填)',
'介绍:如果不写,则代表不显示这个广告,填写时请务必填写正确!<br />
格式:广告图片 || 跳转链接 (中间使用两个竖杠分隔)<br />
例如:http://ae.js.cn/usr/themes/Typecho-Joe-Theme/assets/img/random/3.webp || http://ae.js.cn <br />
注意:如果您只想显示图片不想跳转,可填写:广告图片 || javascript:void(0)'
);
$JADContent1->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JADContent1);
$JADContent2 = new Typecho_Widget_Helper_Form_Element_Textarea(
'JADContent2',
NULL,
NULL,
'侧边栏广告2(非必填)',
'介绍:如果不写,则代表不显示这个广告,填写时请务必填写正确!<br />
格式:广告图片 || 跳转链接 (中间使用两个竖杠分隔)<br />
例如:http://ae.js.cn/usr/themes/Typecho-Joe-Theme/assets/img/random/3.webp || http://ae.js.cn <br />
注意:如果您只想显示图片不想跳转,可填写:广告图片 || javascript:void(0)'
);
$JADContent2->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JADContent2);
$JWether = new Typecho_Widget_Helper_Form_Element_Textarea(
'JWether',
NULL,NULL,
'自定义天气模块(选填)',
'介绍:此处自定义侧边栏天气挂件 <br />
格式:创建天气标准插件获取KEY,配置项随意选择 <a href="https://widget.qweather.com/create-standard">widget.qweather.com</a> <br />
例如:b8ac3ce1f490419585d0c2f5bc4d439a ,注意一定是天气标准插件的key'
);
$JWether->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JWether);
$JAsideCustom = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAsideCustom',
NULL,
NULL,
'自定义侧边栏模块(选填)',
'介绍:此处适用于您自定义内容 <br />
格式:请填写前端代码,不会写请勿填写 <br />
例如:您可以在此处添加一个搜索框功能、时间功能、宠物功能等等'
);
$JAsideCustom->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JAsideCustom);
$JAsideVisitor = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAsideVisitor',
NULL,
NULL,
'访客信息API(非选填)',
'介绍:请填写生成访客图片的API接口 <br />
例如:https://api.vvhan.com/api/ip <br />
其他:填写则显示,不填写则不显示
'
);
$JAsideVisitor->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JAsideVisitor);
$J3DTagStatus = new Typecho_Widget_Helper_Form_Element_Select(
'J3DTagStatus',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启3D云标签',
'介绍:开启后侧边栏将显示3D云标签'
);
$J3DTagStatus->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($J3DTagStatus->multiMode());
$JAsideReplyStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JAsideReplyStatus',
array(
'off' => '关闭(默认)',
'on' => '开启',
),
'off',
'是否开启最新回复',
'介绍:开启后侧边栏将显示最新回复'
);
$JAsideReplyStatus->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JAsideReplyStatus->multiMode());
$JAsideHotNumber = new Typecho_Widget_Helper_Form_Element_Select(
'JAsideHotNumber',
array(
'off' => '关闭(默认)',
'3' => '开启,并显示3条',
'4' => '开启,并显示4条',
'5' => '开启,并显示5条',
'6' => '开启,并显示6条',
'7' => '开启,并显示7条',
'8' => '开启,并显示8条',
'9' => '开启,并显示9条',
'10' => '开启,并显示10条',
),
'off',
'是否开启热门文章',
'介绍:开启后侧边栏将显示您设置的个数的热门文章'
);
$JAsideHotNumber->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JAsideHotNumber->multiMode());
$JAuthorStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JAuthorStatus',
array(
'off' => '关闭(默认)',
'3' => '开启,并显示3条最新文章',
'4' => '开启,并显示4条最新文章',
'5' => '开启,并显示5条最新文章',
'6' => '开启,并显示6条最新文章',
'7' => '开启,并显示7条最新文章',
'8' => '开启,并显示8条最新文章',
'9' => '开启,并显示9条最新文章',
'10' => '开启,并显示10条最新文章'
),
'off',
'是否开启作者信息',
'介绍:开启后侧边栏将显示作者信息,并且显示的文章数由您决定。'
);
$JAuthorStatus->setAttribute('class', 'j-setting-content j-setting-aside');
$form->addInput($JAuthorStatus->multiMode());
$JasideBg = new Typecho_Widget_Helper_Form_Element_Select(
'JasideBg',
array('off' => '关闭(默认)','on' => '开启'),
'off',