forked from HaoOuBa/Joe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·1015 lines (962 loc) · 46.2 KB
/
functions.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
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;
/* Joe核心文件 */
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;');
}
} catch (Exception $e) {
}
?>
<link rel="stylesheet" href="<?php _getAssets('assets/typecho/config/css/joe.config.min.css') ?>">
<script src="<?php _getAssets('assets/typecho/config/js/joe.config.min.js') ?>"></script>
<div class="joe_config">
<div>
<div class="joe_config__aside">
<div class="logo">Joe <?php echo _getVersion() ?></div>
<ul class="tabs">
<li class="item" data-current="joe_notice">最新公告</li>
<li class="item" data-current="joe_global">全局设置</li>
<li class="item" data-current="joe_image">图片设置</li>
<li class="item" data-current="joe_post">文章设置</li>
<li class="item" data-current="joe_aside">侧栏设置</li>
<li class="item" data-current="joe_index">首页设置</li>
<li class="item" data-current="joe_other">其他设置</li>
</ul>
<?php require_once('core/backup.php'); ?>
</div>
</div>
<div class="joe_config__notice">请求数据中...</div>
<?php
$JFavicon = new Typecho_Widget_Helper_Form_Element_Textarea(
'JFavicon',
NULL,
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAaVBMVEUAAAA2Jyc2Jyc2Jyc2JyfWngc2Jyc2Jyc2Jyc2Jyc2Jyc2JydGMiSSbhU2Jyc2JydvUhs3Jyc2KCg2JyeYchRWPyCmexE2Jyc2JyfurwOKZhfEkQs2Jyd4Who2KCg2KCg2Jyf9ugD3tgL5+sE2AAAAIHRSTlMA6gsW9vuGMcTQtEb9+JNp+6lQKPz7+55y/fv7OvrZXtrXQoIAAAGdSURBVEjHxdXrcoIwEAXgBSJXi4oXVLwcfP+HbAyRQzrtLE6n0+8XagjZsyHKr8VZwg/ZVjRZhKjx10kOk4qiBBD56yMs7RkFABOLU8O6yE84a+uvLwYoYlHc2+M4pmrTZFZQI5llZfBkjIlmzZ9EGLWi8Nns187SZaTJDJan3umAXFQlcOi9NbASRWMX9Oi9BaDVHd+Arh+dgfr7cXU+KIB1T6elLcO7B9GDFv3Ejt+bbRh95Bjg3NNj//rBjiiD6FPeOnnEwQ6Lh0UXQMXoGcbqWQRL4EKqyc4tGbebqWNI/skcxXtfKjYibMP2uQ6ujjbAdefsw0anvil3Vz8lBqPiyzY2ybCGm5D9TFwR1+SqOYrFqg8L58qNwaqZ6jRXpppxWzKbmjOFnTv48pgNq8nY9HOwMxqeP+V0GXnmNAboFqMPG8jF/VDZSbdBobo0iFIXvntNOmgBfNDVjku9TD0DeArop4zXqYcxc2WqGte5h8O+qf8QS8e9+JqwKbXMUW1e2kT+zKYo8remXzGgeeIIlbwlzeU9SSP/5RPis0lhQ1CXpwAAAABJRU5ErkJggg==',
'网站 Favicon 设置',
'介绍:用于设置网站 Favicon,一个好的 Favicon 可以给用户一种很专业的观感 <br />
格式:图片 URL地址 或 Base64 地址 <br />
其他:免费转换 Favicon 网站 <a target="_blank" href="//tool.lu/favicon">tool.lu/favicon</a>'
);
$JFavicon->setAttribute('class', 'joe_content joe_image');
$form->addInput($JFavicon);
$JLogo = new Typecho_Widget_Helper_Form_Element_Textarea(
'JLogo',
NULL,
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUgAAAC0CAMAAADB7UXXAAAAt1BMVEUAAAA1KiouISk2KSk3KCg3KCgzMDA0Li41Kio2KCg3KCg1Kio0Kys1Kys3KCgzMDA3KCg1Kio1Kys1KiozMDA0LCz5twE3KCg0LS0zMDA3KCg0LCw3KCiIYxhhRh8zMDBVPSGgdRM2KCinehE1LCy/jA1pTB3+ugHYnwg1KytEMSV3V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CPLM4smGGq3K9vW7+qyPtRj1qNTic+KnoAq9Fh9TNesTE2P4zqzZzkD1Tz5kb5nqvhhoSioR7zXQtrYLv5N/K1vAFOJNeluX9aGzlyBtidXoYzpXzpAQOIuBtwZUsz5y81OLEDo67cVhgQW6WueTfq3N+oSZTOHdbFdsPQcEC/TrM+eef/mrPuszX8kMzuC53usyaRTkfVlt1idaSXROPs5IWSAYq/r43y8EnMdjzbNA/+wF20FzwB/q5rGdz/e674WuOetDXW8ehuF8GZBzY6HahoLU0d5in3CeS49Xbm85p7DwanRV2lAQGPcC5PxCA4IgCHIwaNQXiNA8VnilkPMCs0+6uHdYEiaQEKSO9yk65/WGw3/MVEycIbVkeo/oHOZTpMt3eyNVmJzhCzcPAr3EF7vXQwszkPVAbUyJ18PiDN83fhB8hzEHV4f1rBNPuhf5aAjO7f33B+PmrF5/f0CsI3tJIYIgCIIgCIIgCIIgCIIgR8Bv+RdDljqTBi8AAAAASUVORK5CYII=',
'网站 Logo 设置',
'介绍:用于设置网站 Logo,一个好的 Logo 能为网站带来有效的流量 <br />
格式:图片 URL地址 或 Base64 地址 <br />
其他:免费制作 logo 网站 <a target="_blank" href="//www.uugai.com">www.uugai.com</a>'
);
$JLogo->setAttribute('class', 'joe_content joe_image');
$form->addInput($JLogo);
$JAssetsURL = new Typecho_Widget_Helper_Form_Element_Text(
'JAssetsURL',
NULL,
NULL,
'自定义静态资源CDN地址(非必填)',
'介绍:自定义静态资源CDN地址,不填则走本地资源 <br />
教程:<br />
1. 将整个assets目录上传至你的CDN <br />
2. 填写静态资源地址访问的前缀 <br />
3. 例如:https://npm.elemecdn.com/typecho-joe-latest'
);
$JAssetsURL->setAttribute('class', 'joe_content joe_global');
$form->addInput($JAssetsURL);
$JCommentStatus = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentStatus',
array(
'on' => '开启(默认)',
'off' => '关闭'
),
'3',
'开启或关闭全站评论',
'介绍:用于一键开启关闭所有页面的评论 <br>
注意:此处的权重优先级最高 <br>
若关闭此项而文章内开启评论,评论依旧为关闭状态'
);
$JCommentStatus->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCommentStatus->multiMode());
$JNavMaxNum = new Typecho_Widget_Helper_Form_Element_Select(
'JNavMaxNum',
array(
'3' => '3个(默认)',
'4' => '4个',
'5' => '5个',
'6' => '6个',
'7' => '7个',
),
'3',
'选择导航栏最大显示的个数',
'介绍:用于设置最大多少个后,以更多下拉框显示'
);
$JNavMaxNum->setAttribute('class', 'joe_content joe_global');
$form->addInput($JNavMaxNum->multiMode());
$JCustomNavs = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomNavs',
NULL,
NULL,
'导航栏自定义链接(非必填)',
'介绍:用于自定义导航栏链接 <br />
格式:跳转文字 || 跳转链接(中间使用两个竖杠分隔)<br />
其他:一行一个,一行代表一个超链接 <br />
例如:<br />
百度一下 || https://baidu.com <br />
腾讯视频 || https://v.qq.com
'
);
$JCustomNavs->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomNavs);
$JList_Animate = new Typecho_Widget_Helper_Form_Element_Select(
'JList_Animate',
array(
'off' => '关闭(默认)',
'bounce' => 'bounce',
'flash' => 'flash',
'pulse' => 'pulse',
'rubberBand' => 'rubberBand',
'headShake' => 'headShake',
'swing' => 'swing',
'tada' => 'tada',
'wobble' => 'wobble',
'jello' => 'jello',
'heartBeat' => 'heartBeat',
'bounceIn' => 'bounceIn',
'bounceInDown' => 'bounceInDown',
'bounceInLeft' => 'bounceInLeft',
'bounceInRight' => 'bounceInRight',
'bounceInUp' => 'bounceInUp',
'bounceOut' => 'bounceOut',
'bounceOutDown' => 'bounceOutDown',
'bounceOutLeft' => 'bounceOutLeft',
'bounceOutRight' => 'bounceOutRight',
'bounceOutUp' => 'bounceOutUp',
'fadeIn' => 'fadeIn',
'fadeInDown' => 'fadeInDown',
'fadeInDownBig' => 'fadeInDownBig',
'fadeInLeft' => 'fadeInLeft',
'fadeInLeftBig' => 'fadeInLeftBig',
'fadeInRight' => 'fadeInRight',
'fadeInRightBig' => 'fadeInRightBig',
'fadeInUp' => 'fadeInUp',
'fadeInUpBig' => 'fadeInUpBig',
'fadeOut' => 'fadeOut',
'fadeOutDown' => 'fadeOutDown',
'fadeOutDownBig' => 'fadeOutDownBig',
'fadeOutLeft' => 'fadeOutLeft',
'fadeOutLeftBig' => 'fadeOutLeftBig',
'fadeOutRight' => 'fadeOutRight',
'fadeOutRightBig' => 'fadeOutRightBig',
'fadeOutUp' => 'fadeOutUp',
'fadeOutUpBig' => 'fadeOutUpBig',
'flip' => 'flip',
'flipInX' => 'flipInX',
'flipInY' => 'flipInY',
'flipOutX' => 'flipOutX',
'flipOutY' => 'flipOutY',
'rotateIn' => 'rotateIn',
'rotateInDownLeft' => 'rotateInDownLeft',
'rotateInDownRight' => 'rotateInDownRight',
'rotateInUpLeft' => 'rotateInUpLeft',
'rotateInUpRight' => 'rotateInUpRight',
'rotateOut' => 'rotateOut',
'rotateOutDownLeft' => 'rotateOutDownLeft',
'rotateOutDownRight' => 'rotateOutDownRight',
'rotateOutUpLeft' => 'rotateOutUpLeft',
'rotateOutUpRight' => 'rotateOutUpRight',
'hinge' => 'hinge',
'jackInTheBox' => 'jackInTheBox',
'rollIn' => 'rollIn',
'rollOut' => 'rollOut',
'zoomIn' => 'zoomIn',
'zoomInDown' => 'zoomInDown',
'zoomInLeft' => 'zoomInLeft',
'zoomInRight' => 'zoomInRight',
'zoomInUp' => 'zoomInUp',
'zoomOut' => 'zoomOut',
'zoomOutDown' => 'zoomOutDown',
'zoomOutLeft' => 'zoomOutLeft',
'zoomOutRight' => 'zoomOutRight',
'zoomOutUp' => 'zoomOutUp',
'slideInDown' => 'slideInDown',
'slideInLeft' => 'slideInLeft',
'slideInRight' => 'slideInRight',
'slideInUp' => 'slideInUp',
'slideOutDown' => 'slideOutDown',
'slideOutLeft' => 'slideOutLeft',
'slideOutRight' => 'slideOutRight',
'slideOutUp' => 'slideOutUp',
),
'off',
'选择一款炫酷的列表动画',
'介绍:开启后,列表将会显示所选择的炫酷动画'
);
$JList_Animate->setAttribute('class', 'joe_content joe_global');
$form->addInput($JList_Animate->multiMode());
$JFooter_Left = new Typecho_Widget_Helper_Form_Element_Textarea(
'JFooter_Left',
NULL,
'2019 - 2020 © Reach - <a href="https://78.al" target="_blank" rel="noopener noreferrer">Joe</a>',
'自定义底部栏左侧内容(非必填)',
'介绍:用于修改全站底部左侧内容(wap端上方) <br>
例如:2019 - 2020 © Reach - Joe '
);
$JFooter_Left->setAttribute('class', 'joe_content joe_global');
$form->addInput($JFooter_Left);
$JFooter_Right = new Typecho_Widget_Helper_Form_Element_Textarea(
'JFooter_Right',
NULL,
'<a href="https://78.al/feed/" target="_blank" rel="noopener noreferrer">RSS</a>
<a href="https://78.al/sitemap.xml" target="_blank" rel="noopener noreferrer" style="margin-left: 15px">MAP</a>',
'自定义底部栏右侧内容(非必填)',
'介绍:用于修改全站底部右侧内容(wap端下方) <br>
例如:<a href="/">首页</a> <a href="/">关于</a>'
);
$JFooter_Right->setAttribute('class', 'joe_content joe_global');
$form->addInput($JFooter_Right);
$JDocumentTitle = new Typecho_Widget_Helper_Form_Element_Text(
'JDocumentTitle',
NULL,
NULL,
'网页被隐藏时显示的标题',
'介绍:在PC端切换网页标签时,网站标题显示的内容。如果不填写,则默认不开启 <br />
注意:严禁加单引号或双引号!!!否则会导致网站出错!!'
);
$JDocumentTitle->setAttribute('class', 'joe_content joe_global');
$form->addInput($JDocumentTitle);
$JCursorEffects = new Typecho_Widget_Helper_Form_Element_Select(
'JCursorEffects',
array(
'off' => '关闭(默认)',
'cursor1.js' => '效果1',
'cursor2.js' => '效果2',
'cursor3.js' => '效果3',
'cursor4.js' => '效果4',
'cursor5.js' => '效果5',
'cursor6.js' => '效果6',
'cursor7.js' => '效果7',
'cursor8.js' => '效果8',
'cursor9.js' => '效果9',
'cursor10.js' => '效果10',
'cursor11.js' => '效果11',
),
'off',
'选择鼠标特效',
'介绍:用于开启炫酷的鼠标特效'
);
$JCursorEffects->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCursorEffects->multiMode());
$JCustomCSS = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomCSS',
NULL,
NULL,
'自定义CSS(非必填)',
'介绍:请填写自定义CSS内容,填写时无需填写style标签。<br />
其他:如果想修改主题色、卡片透明度等,都可以通过这个实现 <br />
例如:body { --theme: #ff6800; --background: rgba(255,255,255,0.85) }'
);
$JCustomCSS->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomCSS);
$JCustomScript = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomScript',
NULL,
NULL,
'自定义JS(非必填)',
'介绍:请填写自定义JS内容,例如网站统计等,填写时无需填写script标签。'
);
$JCustomScript->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomScript);
$JCustomHeadEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomHeadEnd',
NULL,
NULL,
'自定义增加<head></head>里内容(非必填)',
'介绍:此处用于在<head></head>标签里增加自定义内容 <br />
例如:可以填写引入第三方css、js等等'
);
$JCustomHeadEnd->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomHeadEnd);
$JCustomBodyEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomBodyEnd',
NULL,
NULL,
'自定义<body></body>末尾位置内容(非必填)',
'介绍:此处用于填写在<body></body>标签末尾位置的内容 <br>
例如:可以填写引入第三方js脚本等等'
);
$JCustomBodyEnd->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomBodyEnd);
$JBirthDay = new Typecho_Widget_Helper_Form_Element_Text(
'JBirthDay',
NULL,
NULL,
'网站成立日期(非必填)',
'介绍:用于显示当前站点已经运行了多少时间。<br>
注意:填写时务必保证填写正确!例如:2021/1/1 00:00:00 <br>
其他:不填写则不显示,若填写错误,则不会显示计时'
);
$JBirthDay->setAttribute('class', 'joe_content joe_global');
$form->addInput($JBirthDay);
$JCustomFont = new Typecho_Widget_Helper_Form_Element_Text(
'JCustomFont',
NULL,
NULL,
'自定义网站字体(非必填)',
'介绍:用于修改全站字体,填写则使用引入的字体,不填写使用默认字体 <br>
格式:字体URL链接(推荐使用woff格式的字体,网页专用字体格式) <br>
注意:字体文件一般有几兆,建议使用cdn链接'
);
$JCustomFont->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomFont);
$JCustomAvatarSource = new Typecho_Widget_Helper_Form_Element_Text(
'JCustomAvatarSource',
NULL,
NULL,
'自定义头像源(非必填)',
'介绍:用于修改全站头像源地址 <br>
例如:https://gravatar.ihuan.me/avatar/ <br>
其他:非必填,默认头像源为https://gravatar.helingqi.com/wavatar/ <br>
注意:填写时,务必保证最后有一个/字符,否则不起作用!'
);
$JCustomAvatarSource->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomAvatarSource);
$JAside_Author_Nick = new Typecho_Widget_Helper_Form_Element_Text(
'JAside_Author_Nick',
NULL,
"Typecho",
'博主栏博主昵称 - PC/WAP',
'介绍:用于修改博主栏的博主昵称 <br />
注意:如果不填写时则显示 *个人设置* 里的昵称'
);
$JAside_Author_Nick->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Nick);
/* --------------------------------------- */
$JAside_Author_Avatar = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAside_Author_Avatar',
NULL,
NULL,
'博主栏博主头像 - PC/WAP',
'介绍:用于修改博主栏的博主头像 <br />
注意:如果不填写时则显示 *个人设置* 里的头像'
);
$JAside_Author_Avatar->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Avatar);
/* --------------------------------------- */
$JAside_Author_Image = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAside_Author_Image',
NULL,
"https://npm.elemecdn.com/typecho-joe-latest/assets/img/aside_author_image.jpg",
'博主栏背景壁纸 - PC',
'介绍:用于修改PC端博主栏的背景壁纸 <br/>
格式:图片地址 或 Base64地址'
);
$JAside_Author_Image->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Image);
/* --------------------------------------- */
$JAside_Wap_Image = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAside_Wap_Image',
NULL,
"https://npm.elemecdn.com/typecho-joe-latest/assets/img/wap_aside_image.jpg",
'博主栏背景壁纸 - WAP',
'介绍:用于修改WAP端博主栏的背景壁纸 <br/>
格式:图片地址 或 Base64地址'
);
$JAside_Wap_Image->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Wap_Image);
/* --------------------------------------- */
$JAside_Author_Link = new Typecho_Widget_Helper_Form_Element_Text(
'JAside_Author_Link',
NULL,
"https://78.al",
'博主栏昵称跳转地址 - PC/WAP',
'介绍:用于修改博主栏点击博主昵称后的跳转地址'
);
$JAside_Author_Link->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Link);
/* --------------------------------------- */
$JAside_Author_Motto = new Typecho_Widget_Helper_Form_Element_Textarea(
'JAside_Author_Motto',
NULL,
"有钱终成眷属,没钱亲眼目睹",
'博主栏座右铭(一言)- PC/WAP',
'介绍:用于修改博主栏的座右铭(一言) <br />
格式:可以填写多行也可以填写一行,填写多行时,每次随机显示其中的某一条,也可以填写API地址 <br />
其他:API和自定义的座右铭完全可以一起写(换行填写),不会影响 <br />
注意:API需要开启跨域权限才能调取,否则会调取失败!<br />
推荐API:https://api.vvhan.com/api/ian'
);
$JAside_Author_Motto->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Motto);
/* --------------------------------------- */
$JAside_Author_Nav = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Author_Nav',
array(
'off' => '关闭(默认)',
'3' => '开启,并显示3条最新文章',
'4' => '开启,并显示4条最新文章',
'5' => '开启,并显示5条最新文章',
'6' => '开启,并显示6条最新文章',
'7' => '开启,并显示7条最新文章',
'8' => '开启,并显示8条最新文章',
'9' => '开启,并显示9条最新文章',
'10' => '开启,并显示10条最新文章'
),
'off',
'博主栏下方随机文章条目 - PC',
'介绍:用于设置博主栏下方的随机文章显示数量'
);
$JAside_Author_Nav->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Author_Nav->multiMode());
/* --------------------------------------- */
$JAside_Timelife_Status = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Timelife_Status',
array(
'off' => '关闭(默认)',
'on' => '开启'
),
'off',
'是否开启人生倒计时模块 - PC',
'介绍:用于控制是否显示人生倒计时模块'
);
$JAside_Timelife_Status->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Timelife_Status->multiMode());
/* --------------------------------------- */
$JAside_Hot_Num = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Hot_Num',
array(
'off' => '关闭(默认)',
'3' => '显示3条',
'4' => '显示4条',
'5' => '显示5条',
'6' => '显示6条',
'7' => '显示7条',
'8' => '显示8条',
'9' => '显示9条',
'10' => '显示10条',
),
'off',
'是否开启热门文章栏 - PC',
'介绍:用于控制是否开启热门文章栏'
);
$JAside_Hot_Num->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Hot_Num->multiMode());
/* --------------------------------------- */
$JAside_Newreply_Status = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Newreply_Status',
array(
'off' => '关闭(默认)',
'on' => '开启'
),
'off',
'是否开启最新回复栏 - PC',
'介绍:用于控制是否开启最新回复栏 <br>
注意:如果您关闭了全站评论,将不会显示最新回复!'
);
$JAside_Newreply_Status->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Newreply_Status->multiMode());
/* --------------------------------------- */
$JAside_Weather_Key = new Typecho_Widget_Helper_Form_Element_Text(
'JAside_Weather_Key',
NULL,
NULL,
'天气栏KEY值 - PC',
'介绍:用于初始化天气栏 <br/>
注意:填写时务必填写正确!不填写则不会显示<br />
其他:免费申请地址:<a href="//widget.qweather.com/create-standard">widget.qweather.com/create-standard</a><br />
简要:在网页生成时,配置项随便选择,只需要生成代码后的Token即可'
);
$JAside_Weather_Key->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Weather_Key);
/* --------------------------------------- */
$JAside_Weather_Style = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Weather_Style',
array(
'1' => '自动(默认)',
'2' => '浅色',
'3' => '深色'
),
'1',
'选择天气栏的风格 - PC',
'介绍:选择一款您所喜爱的天气风格 <br />
注意:需要先填写天气的KEY值才会生效'
);
$JAside_Weather_Style->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Weather_Style->multiMode());
/* --------------------------------------- */
$JADContent = new Typecho_Widget_Helper_Form_Element_Textarea(
'JADContent',
NULL,
NULL,
'侧边栏广告 - PC',
'介绍:用于设置侧边栏广告 <br />
格式:广告图片 || 跳转链接 (中间使用两个竖杠分隔)<br />
注意:如果您只想显示图片不想跳转,可填写:广告图片 || javascript:void(0)'
);
$JADContent->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JADContent);
/* --------------------------------------- */
$JCustomAside = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomAside',
NULL,
NULL,
'自定义侧边栏模块 - PC',
'介绍:用于自定义侧边栏模块 <br />
格式:请填写前端代码,不会写请勿填写 <br />
例如:您可以在此处添加一个搜索框、时间、宠物、恋爱计时等等'
);
$JCustomAside->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JCustomAside);
/* --------------------------------------- */
$JAside_3DTag = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_3DTag',
array(
'off' => '关闭(默认)',
'on' => '开启'
),
'off',
'是否开启3D云标签 - PC',
'介绍:用于设置侧边栏是否显示3D云标签'
);
$JAside_3DTag->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_3DTag->multiMode());
/* --------------------------------------- */
$JAside_Flatterer = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_Flatterer',
array(
'off' => '关闭(默认)',
'on' => '开启'
),
'off',
'是否开启舔狗日记 - PC',
'介绍:用于设置侧边栏是否显示舔狗日记'
);
$JAside_Flatterer->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Flatterer->multiMode());
/* --------------------------------------- */
$JAside_History_Today = new Typecho_Widget_Helper_Form_Element_Select(
'JAside_History_Today',
array(
'off' => '关闭(默认)',
'on' => '开启'
),
'off',
'是否开启那年今日 - PC',
'介绍:用于设置侧边栏是否显示往年今日的文章 <br />
其他:如果往年今日有文章则显示,没有则不显示!'
);
$JAside_History_Today->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_History_Today->multiMode());
$JThumbnail = new Typecho_Widget_Helper_Form_Element_Textarea(
'JThumbnail',
NULL,
NULL,
'自定义缩略图',
'介绍:用于修改主题默认缩略图 <br/>
格式:图片地址,一行一个 <br />
注意:不填写时,则使用主题内置的默认缩略图
'
);
$JThumbnail->setAttribute('class', 'joe_content joe_image');
$form->addInput($JThumbnail);
$JLazyload = new Typecho_Widget_Helper_Form_Element_Textarea(
'JLazyload',
NULL,
"https://npm.elemecdn.com/typecho-joe-latest/assets/img/lazyload.jpg",
'自定义懒加载图',
'介绍:用于修改主题默认懒加载图 <br/>
格式:图片地址'
);
$JLazyload->setAttribute('class', 'joe_content joe_image');
$form->addInput($JLazyload);
$JDynamic_Background = new Typecho_Widget_Helper_Form_Element_Select(
'JDynamic_Background',
array(
'off' => '关闭(默认)',
'backdrop1.js' => '效果1',
'backdrop2.js' => '效果2',
'backdrop3.js' => '效果3',
'backdrop4.js' => '效果4',
'backdrop5.js' => '效果5',
'backdrop6.js' => '效果6'
),
'off',
'是否开启动态背景图(仅限PC)',
'介绍:用于设置PC端动态背景<br />
注意:如果您填写了下方PC端静态壁纸,将优先展示下方静态壁纸!如需显示动态壁纸,请将PC端静态壁纸设置成空'
);
$JDynamic_Background->setAttribute('class', 'joe_content joe_image');
$form->addInput($JDynamic_Background->multiMode());
$JWallpaper_Background_PC = new Typecho_Widget_Helper_Form_Element_Textarea(
'JWallpaper_Background_PC',
NULL,
NULL,
'PC端网站背景图片(非必填)',
'介绍:PC端网站的背景图片,不填写时显示默认的灰色。<br />
格式:图片URL地址 或 随机图片api 例如:https://api.btstu.cn/sjbz/?lx=dongman <br />
注意:如果需要显示上方动态壁纸,请不要填写此项,此项优先级最高!'
);
$JWallpaper_Background_PC->setAttribute('class', 'joe_content joe_image');
$form->addInput($JWallpaper_Background_PC);
$JWallpaper_Background_WAP = new Typecho_Widget_Helper_Form_Element_Textarea(
'JWallpaper_Background_WAP',
NULL,
NULL,
'WAP端网站背景图片(非必填)',
'介绍:WAP端网站的背景图片,不填写时显示默认的灰色。<br />
格式:图片URL地址 或 随机图片api 例如:https://api.btstu.cn/sjbz/?lx=m_dongman'
);
$JWallpaper_Background_WAP->setAttribute('class', 'joe_content joe_image');
$form->addInput($JWallpaper_Background_WAP);
$JIndex_Carousel = new Typecho_Widget_Helper_Form_Element_Textarea(
'JIndex_Carousel',
NULL,
NULL,
'首页轮播图',
'介绍:用于显示首页轮播图,请务必填写正确的格式 <br />
格式:图片地址 || 跳转链接 || 标题 (中间使用两个竖杠分隔)<br />
其他:一行一个,一行代表一个轮播图 <br />
例如:<br />
https://puui.qpic.cn/media_img/lena/PICykqaoi_580_1680/0 || https://baidu.com || 百度一下 <br />
https://puui.qpic.cn/tv/0/1223447268_1680580/0 || https://v.qq.com || 腾讯视频
'
);
$JIndex_Carousel->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Carousel);
$JIndex_Recommend = new Typecho_Widget_Helper_Form_Element_Text(
'JIndex_Recommend',
NULL,
NULL,
'首页推荐文章(非必填,填写时请填写2个,否则不显示!)',
'介绍:用于显示推荐文章,请务必填写正确的格式 <br/>
格式:文章的id || 文章的id (中间使用两个竖杠分隔)<br />
例如:1 || 2 <br />
注意:如果填写的不是2个,将不会显示'
);
$JIndex_Recommend->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Recommend);
$JIndexSticky = new Typecho_Widget_Helper_Form_Element_Text(
'JIndexSticky',
NULL,
NULL,
'首页置顶文章(非必填)',
'介绍:请务必填写正确的格式 <br />
格式:文章的ID || 文章的ID || 文章的ID (中间使用两个竖杠分隔)<br />
例如:1 || 2 || 3'
);
$JIndexSticky->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndexSticky);
$JIndex_Hot = new Typecho_Widget_Helper_Form_Element_Radio(
'JIndex_Hot',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启首页热门文章',
'介绍:开启后,网站首页将会显示浏览量最多的4篇热门文章'
);
$JIndex_Hot->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Hot->multiMode());
$JIndex_Ad = new Typecho_Widget_Helper_Form_Element_Textarea(
'JIndex_Ad',
NULL,
NULL,
'首页大屏广告',
'介绍:请务必填写正确的格式 <br />
格式:广告图片 || 广告链接 (中间使用两个竖杠分隔,限制一个)<br />
例如:https://puui.qpic.cn/media_img/lena/PICykqaoi_580_1680/0 || https://baidu.com'
);
$JIndex_Ad->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Ad);
$JIndex_Notice = new Typecho_Widget_Helper_Form_Element_Textarea(
'JIndex_Notice',
NULL,
NULL,
'首页通知文字(非必填)',
'介绍:请务必填写正确的格式 <br />
格式:通知文字 || 跳转链接(中间使用两个竖杠分隔,限制一个)<br />
例如:欢迎加入Joe官方QQ群 || https://baidu.com'
);
$JIndex_Notice->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Notice);
$JFriends = new Typecho_Widget_Helper_Form_Element_Textarea(
'JFriends',
NULL,
'Joe的博客 || https://78.al || https://npm.elemecdn.com/typecho-joe-latest/assets/img/link.png || Eternity is not a distance but a decision',
'友情链接(非必填)',
'介绍:用于填写友情链接 <br />
注意:您需要先增加友链链接页面(新增独立页面-右侧模板选择友链),该项才会生效 <br />
格式:博客名称 || 博客地址 || 博客头像 || 博客简介 <br />
其他:一行一个,一行代表一个友链'
);
$JFriends->setAttribute('class', 'joe_content joe_other');
$form->addInput($JFriends);
$JMaccmsAPI = new Typecho_Widget_Helper_Form_Element_Text(
'JMaccmsAPI',
NULL,
NULL,
'苹果CMS开放API',
'介绍:请填写苹果CMS V10开放API,用于视频页面使用<br />
例如:https://v.ini0.com/api.php/provide/vod/ <br />
如果您搭建了苹果cms网站,那么用你自己的即可,如果没有,请去网上找API <br />
'
);
$JMaccmsAPI->setAttribute('class', 'joe_content joe_other');
$form->addInput($JMaccmsAPI);
$JCustomPlayer = new Typecho_Widget_Helper_Form_Element_Text(
'JCustomPlayer',
NULL,
NULL,
'自定义视频播放器(非必填)',
'介绍:用于修改主题自带的默认播放器 <br />
例如:https://v.ini0.com/player/?url= <br />
注意:主题自带的播放器只能解析M3U8的视频格式'
);
$JCustomPlayer->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCustomPlayer);
$JSensitiveWords = new Typecho_Widget_Helper_Form_Element_Textarea(
'JSensitiveWords',
NULL,
'你妈死了 || 傻逼 || 操你妈 || 射你妈一脸',
'评论敏感词(非必填)',
'介绍:用于设置评论敏感词汇,如果用户评论包含这些词汇,则将会把评论置为审核状态 <br />
例如:你妈死了 || 你妈炸了 || 我是你爹 || 你妈坟头冒烟 (多个使用 || 分隔开)'
);
$JSensitiveWords->setAttribute('class', 'joe_content joe_other');
$form->addInput($JSensitiveWords);
$JLimitOneChinese = new Typecho_Widget_Helper_Form_Element_Select(
'JLimitOneChinese',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启评论至少包含一个中文',
'介绍:开启后如果评论内容未包含一个中文,则将会把评论置为审核状态 <br />
其他:用于屏蔽国外机器人刷的全英文垃圾广告信息'
);
$JLimitOneChinese->setAttribute('class', 'joe_content joe_other');
$form->addInput($JLimitOneChinese->multiMode());
$JTextLimit = new Typecho_Widget_Helper_Form_Element_Text(
'JTextLimit',
NULL,
NULL,
'限制用户评论最大字符',
'介绍:如果用户评论的内容超出字符限制,则将会把评论置为审核状态 <br />
其他:请输入数字格式,不填写则不限制'
);
$JTextLimit->setAttribute('class', 'joe_content joe_other');
$form->addInput($JTextLimit->multiMode());
$JSiteMap = new Typecho_Widget_Helper_Form_Element_Select(
'JSiteMap',
array(
'off' => '关闭(默认)',
'100' => '显示最新 100 条链接',
'200' => '显示最新 200 条链接',
'300' => '显示最新 300 条链接',
'400' => '显示最新 400 条链接',
'500' => '显示最新 500 条链接',
'600' => '显示最新 600 条链接',
'700' => '显示最新 700 条链接',
'800' => '显示最新 800 条链接',
'900' => '显示最新 900 条链接',
'1000' => '显示最新 1000 条链接',
),
'off',
'是否开启主题自带SiteMap功能',
'介绍:开启后博客将享有SiteMap功能 <br />
其他:链接为博客最新实时链接 <br />
好处:无需手动生成,无需频繁提交,提交一次即可 <br />
开启后SiteMap访问地址:<br />
http(s)://域名/sitemap.xml (开启了伪静态)<br />
http(s)://域名/index.php/sitemap.xml (未开启伪静态)
'
);
$JSiteMap->setAttribute('class', 'joe_content joe_other');
$form->addInput($JSiteMap->multiMode());
$JBTPanel = new Typecho_Widget_Helper_Form_Element_Text(
'JBTPanel',
NULL,
NULL,
'宝塔面板地址',
'介绍:用于统计页面获取服务器状态使用 <br>
例如:http://192.168.1.245:8888/ <br>
注意:结尾需要带有一个 / 字符!<br>
该功能需要去宝塔面板开启开放API,并添加白名单才可使用'
);
$JBTPanel->setAttribute('class', 'joe_content joe_other');
$form->addInput($JBTPanel->multiMode());
$JBTKey = new Typecho_Widget_Helper_Form_Element_Text(
'JBTKey',
NULL,
NULL,
'宝塔开放接口密钥',
'介绍:用于统计页面获取服务器状态使用 <br>
例如:thVLXFtUCCNzBShBweKTPBmw8296q8R8 <br>
该功能需要去宝塔面板开启开放API,并添加白名单才可使用'
);
$JBTKey->setAttribute('class', 'joe_content joe_other');
$form->addInput($JBTKey->multiMode());
/* 评论发信 */
$JCommentMail = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentMail',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启评论邮件通知',
'介绍:开启后评论内容将会进行邮箱通知 <br />
注意:此项需要您完整无错的填写下方的邮箱设置!! <br />
其他:下方例子以QQ邮箱为例,推荐使用QQ邮箱'
);
$JCommentMail->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMail->multiMode());
$JCommentMailHost = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailHost',
NULL,
NULL,
'邮箱服务器地址',
'例如:smtp.qq.com'
);
$JCommentMailHost->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailHost->multiMode());
$JCommentSMTPSecure = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentSMTPSecure',
array('ssl' => 'ssl(默认)', 'tsl' => 'tsl'),
'ssl',
'加密方式',
'介绍:用于选择登录鉴权加密方式'
);
$JCommentSMTPSecure->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentSMTPSecure->multiMode());
$JCommentMailPort = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailPort',
NULL,
NULL,
'邮箱服务器端口号',
'例如:465'
);
$JCommentMailPort->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailPort->multiMode());
$JCommentMailFromName = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailFromName',
NULL,
NULL,
'发件人昵称',
'例如:帅气的象拔蚌'
);
$JCommentMailFromName->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailFromName->multiMode());
$JCommentMailAccount = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailAccount',
NULL,
NULL,
'发件人邮箱',
'例如:[email protected]'
);
$JCommentMailAccount->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailAccount->multiMode());
$JCommentMailPassword = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailPassword',
NULL,
NULL,
'邮箱授权码',
'介绍:这里填写的是邮箱生成的授权码 <br>
获取方式(以QQ邮箱为例):<br>
QQ邮箱 > 设置 > 账户 > IMAP/SMTP服务 > 开启 <br>
其他:这个可以百度一下开启教程,有图文教程'
);
$JCommentMailPassword->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailPassword->multiMode());
$JBaiduToken = new Typecho_Widget_Helper_Form_Element_Text(
'JBaiduToken',
NULL,
NULL,
'百度推送Token',
'介绍:填写此处,前台文章页如果未收录,则会自动将当前链接推送给百度加快收录 <br />
其他:Token在百度收录平台注册账号获取'
);
$JBaiduToken->setAttribute('class', 'joe_content joe_post');
$form->addInput($JBaiduToken);
$JOverdue = new Typecho_Widget_Helper_Form_Element_Select(
'JOverdue',
array(
'off' => '关闭(默认)',
'3' => '大于3天',
'7' => '大于7天',
'15' => '大于15天',
'30' => '大于30天',
'60' => '大于60天',
'90' => '大于90天',
'120' => '大于120天',
'180' => '大于180天'
),
'off',
'是否开启文章更新时间大于多少天提示(仅针对文章有效)',
'介绍:开启后如果文章在多少天内无任何修改,则进行提示'
);
$JOverdue->setAttribute('class', 'joe_content joe_post');
$form->addInput($JOverdue->multiMode());
$JEditor = new Typecho_Widget_Helper_Form_Element_Select(
'JEditor',
array(
'on' => '开启(默认)',
'off' => '关闭',
),
'on',
'是否启用Joe自定义编辑器',
'介绍:开启后,文章编辑器将替换成Joe编辑器 <br>
其他:目前编辑器处于拓展阶段,如果想继续使用原生编辑器,关闭此项即可'
);
$JEditor->setAttribute('class', 'joe_content joe_post');
$form->addInput($JEditor->multiMode());
$JPrismTheme = new Typecho_Widget_Helper_Form_Element_Select(
'JPrismTheme',
array(
'//npm.elemecdn.com/[email protected]/themes/prism.min.css' => 'prism(默认)',
'//npm.elemecdn.com/[email protected]/themes/prism-dark.min.css' => 'prism-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-okaidia.min.css' => 'prism-okaidia',
'//npm.elemecdn.com/[email protected]/themes/prism-solarizedlight.min.css' => 'prism-solarizedlight',
'//npm.elemecdn.com/[email protected]/themes/prism-tomorrow.min.css' => 'prism-tomorrow',
'//npm.elemecdn.com/[email protected]/themes/prism-twilight.min.css' => 'prism-twilight',
'//npm.elemecdn.com/[email protected]/themes/prism-a11y-dark.min.css' => 'prism-a11y-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-atom-dark.min.css' => 'prism-atom-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-base16-ateliersulphurpool.light.min.css' => 'prism-base16-ateliersulphurpool.light',
'//npm.elemecdn.com/[email protected]/themes/prism-cb.min.css' => 'prism-cb',
'//npm.elemecdn.com/[email protected]/themes/prism-coldark-cold.min.css' => 'prism-coldark-cold',
'//npm.elemecdn.com/[email protected]/themes/prism-coldark-dark.min.css' => 'prism-coldark-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-darcula.min.css' => 'prism-darcula',
'//npm.elemecdn.com/[email protected]/themes/prism-dracula.min.css' => 'prism-dracula',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-dark.min.css' => 'prism-duotone-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-earth.min.css' => 'prism-duotone-earth',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-forest.min.css' => 'prism-duotone-forest',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-light.min.css' => 'prism-duotone-light',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-sea.min.css' => 'prism-duotone-sea',
'//npm.elemecdn.com/[email protected]/themes/prism-duotone-space.min.css' => 'prism-duotone-space',
'//npm.elemecdn.com/[email protected]/themes/prism-ghcolors.min.css' => 'prism-ghcolors',
'//npm.elemecdn.com/[email protected]/themes/prism-gruvbox-dark.min.css' => 'prism-gruvbox-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-hopscotch.min.css' => 'prism-hopscotch',
'//npm.elemecdn.com/[email protected]/themes/prism-lucario.min.css' => 'prism-lucario',
'//npm.elemecdn.com/[email protected]/themes/prism-material-dark.min.css' => 'prism-material-dark',
'//npm.elemecdn.com/[email protected]/themes/prism-material-light.min.css' => 'prism-material-light',
'//npm.elemecdn.com/[email protected]/themes/prism-material-oceanic.min.css' => 'prism-material-oceanic',
'//npm.elemecdn.com/[email protected]/themes/prism-night-owl.min.css' => 'prism-night-owl',
'//npm.elemecdn.com/[email protected]/themes/prism-nord.min.css' => 'prism-nord',
'//npm.elemecdn.com/[email protected]/themes/prism-pojoaque.min.css' => 'prism-pojoaque',
'//npm.elemecdn.com/[email protected]/themes/prism-shades-of-purple.min.css' => 'prism-shades-of-purple',
'//npm.elemecdn.com/[email protected]/themes/prism-synthwave84.min.css' => 'prism-synthwave84',