Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Feb 7, 2019
1 parent c6ec39c commit 6f83ca2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function origami_comment($comment, $args, $depth)
$comment_mark = "";
$comment_mark_color = "#CBBBBA";
//站长邮箱
$adminEmail = 'syfxlin@gmail.com';
$adminEmail = get_option('admin_email');
//从数据库读取有人链接
$linkurls = $wpdb->get_results("SELECT link_url FROM wp_links");
//默认不是朋友,将标记为访客
Expand All @@ -383,6 +383,7 @@ function origami_comment($comment, $args, $depth)
|| $linkurl->link_url == ($comment->comment_author_url . "/")) {
$comment_mark = '<a target="_blank" href="/links" title="友情链接认证">友人</a>';
$comment_mark_color = "#5EBED2";
$is_friend = true;
}
}
}
Expand Down Expand Up @@ -412,7 +413,13 @@ function origami_comment($comment, $args, $depth)
</div>
<div class="comment-right">
<div class="comment-header">
<div class="comment-author"><?php echo $comment->comment_author; ?></div>
<div class="comment-author">
<?php if($comment->comment_author_url != "") {
echo '<a href="'.$comment->comment_author_url.'">'.$comment->comment_author.'</a>';
} else {
echo $comment->comment_author;
} ?>
</div>
<?php echo $comment_mark; ?>
</div>
<div class="comment-text">
Expand All @@ -436,7 +443,6 @@ function origami_comment($comment, $args, $depth)
</div>
<div class="clearfix"></div>
<?php

}

/**
Expand Down

0 comments on commit 6f83ca2

Please sign in to comment.