File tree Expand file tree Collapse file tree 4 files changed +34
-4
lines changed Expand file tree Collapse file tree 4 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,9 @@ function comment_mark($comment)
343
343
//判断是不是站长我
344
344
if ($ comment ->comment_author_email == $ adminEmail ) {
345
345
$ comment_mark =
346
- '<a target="_blank" href="/about" title=" ' .
346
+ '<a target="_blank" href=" ' .
347
+ get_option ('origami_comment_admin_url ' , '/about ' ) .
348
+ '" title=" ' .
347
349
__ ('经鉴定,这货是站长 ' , 'origami ' ) .
348
350
'"> ' .
349
351
__ ('站长 ' , 'origami ' ) .
@@ -371,7 +373,9 @@ function comment_mark($comment)
371
373
$ comment_author_url_reg == $ url_re [2 ]
372
374
) {
373
375
$ comment_mark =
374
- '<a target="_blank" href="/links" title=" ' .
376
+ '<a target="_blank" href=" ' .
377
+ get_option ('origami_comment_friend_url ' , '/links ' ) .
378
+ '" title=" ' .
375
379
__ ('友情链接认证 ' , 'origami ' ) .
376
380
'"> ' .
377
381
__ ('友人 ' , 'origami ' ) .
Original file line number Diff line number Diff line change @@ -529,6 +529,8 @@ public function admin_init()
529
529
register_setting ('origami_fun ' , 'origami_mail_notice_title ' );
530
530
register_setting ('origami_fun ' , 'origami_mail_notice_salute ' );
531
531
register_setting ('origami_fun ' , 'origami_mail_notice_footer ' );
532
+ register_setting ('origami_fun ' , 'origami_comment_admin_url ' );
533
+ register_setting ('origami_fun ' , 'origami_comment_friend_url ' );
532
534
add_settings_section (
533
535
'origami_fun_comment ' ,
534
536
__ ('3.评论设置 ' , 'origami ' ),
@@ -700,6 +702,30 @@ public function admin_init()
700
702
'type ' => 'textarea '
701
703
]
702
704
);
705
+ add_settings_field (
706
+ 'origami_comment_admin_url ' ,
707
+ __ ('评论标记URL(admin) ' , 'origami ' ),
708
+ [&$ this , 'settings_field_input_text ' ],
709
+ 'origami_fun ' ,
710
+ 'origami_fun_comment ' ,
711
+ [
712
+ 'field ' => 'origami_comment_admin_url ' ,
713
+ 'value ' => '/about ' ,
714
+ 'type ' => 'text '
715
+ ]
716
+ );
717
+ add_settings_field (
718
+ 'origami_comment_friend_url ' ,
719
+ __ ('评论标记URL(friend) ' , 'origami ' ),
720
+ [&$ this , 'settings_field_input_text ' ],
721
+ 'origami_fun ' ,
722
+ 'origami_fun_comment ' ,
723
+ [
724
+ 'field ' => 'origami_comment_friend_url ' ,
725
+ 'value ' => '/links ' ,
726
+ 'type ' => 'text '
727
+ ]
728
+ );
703
729
704
730
// 其他
705
731
register_setting ('origami_fun ' , 'origami_copy_add_copyright ' );
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Theme URI: https://blog.ixk.me/theme-origami.html
5
5
Author: Otstar Lin
6
6
Author URI: https://www.ixk.me
7
7
Description: 简约平面化风格的主题
8
- Version: 2.2.0
8
+ Version: 2.2.1
9
9
License: GNU General Public License v3 or later
10
10
License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
11
Tags: black,cyan-blue,flat,responsive
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Theme URI: https://blog.ixk.me/theme-origami.html
4
4
Author: Otstar Lin
5
5
Author URI: https://www.ixk.me
6
6
Description: 简约平面化风格的主题
7
- Version: 2.2.0
7
+ Version: 2.2.1
8
8
License: GNU General Public License v3 or later
9
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
10
Tags: black,cyan-blue,flat,responsive
You can’t perform that action at this time.
0 commit comments