Update comments.php

This commit is contained in:
浪子 2024-05-18 22:34:27 +08:00
parent 98ef56dc3e
commit a13c1050e4
1 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,12 @@ function threadedComments($comments, $options) {
<div class="comment-body" id="<?php $comments->theId(); ?>"> <div class="comment-body" id="<?php $comments->theId(); ?>">
<div class="comment-meta"> <div class="comment-meta">
<div class="comment--avatar"> <div class="comment--avatar">
<?php echo $comments->gravatar('40', ''); ?> <?php if ($comments->url): ?>
<a href="<?php echo $comments->url ?>" target="_blank" rel="external nofollow"><?php echo $comments->gravatar('40', ''); ?> </a>
<?php else: ?>
<?php echo $comments->gravatar('40', ''); ?>
<?php endif; ?>
</div> </div>
<div class="comment--meta"> <div class="comment--meta">
<div class="comment--author"><?php echo $comments->author; ?><span class="dot"></span> <div class="comment--author"><?php echo $comments->author; ?><span class="dot"></span>