优化引用通告的显示
This commit is contained in:
parent
7519d871cd
commit
a65df1965a
57
comments.php
57
comments.php
|
@ -3,31 +3,42 @@
|
||||||
<?php function threadedComments($comments, $options) {
|
<?php function threadedComments($comments, $options) {
|
||||||
$commentClass = '';
|
$commentClass = '';
|
||||||
if ($comments->levels > 0) $commentClass .= ' ml-5';
|
if ($comments->levels > 0) $commentClass .= ' ml-5';
|
||||||
if ($comments->type == 'pingback' || $comments->type == 'traceback') $commentClass .= ' bg-secondary';
|
?>
|
||||||
?>
|
<?php if ($comments->type == 'pingback' || $comments->type == 'traceback'){?>
|
||||||
<!-- 评论列表区域 -->
|
<div id="<?php $comments->theId(); ?>">
|
||||||
<div id="<?php $comments->theId(); ?>" class="<?php echo $commentClass; ?>">
|
<div class="card">
|
||||||
<div class="d-flex align-items-center">
|
<div class="card-body">
|
||||||
<?php $comments->gravatar(64, '', '', 'avatar'); ?>
|
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
||||||
<div class="d-inline-block ml-1">
|
<br>
|
||||||
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
<span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span>
|
||||||
<?php if ($comments->authorId == $comments->ownerId): ?>
|
<!-- <p><?php #$comments->content(); ?></p> -->
|
||||||
<span class="badge badge-secondary ml-1 mr-1"><?php _e('博主') ?></span>
|
</div>
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($comments->status == 'waiting'): ?>
|
|
||||||
<span class="badge badge-warning ml-1 mr-1">
|
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
|
||||||
<?php _e('等待审核') ?>
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
<br>
|
|
||||||
<span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span>
|
|
||||||
<span class="small ml-1 mr-1"><?php $comments->reply('<i class="fa fa-reply"></i> Reply'); ?><span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p><?php $comments->content(); ?></p>
|
<?php } else { ?>
|
||||||
<?php if ($comments->children): $comments->threadedComments($options); endif; ?>
|
<div id="<?php $comments->theId(); ?>" class="mt-3 mb-3<?php echo $commentClass; ?>">
|
||||||
</div>
|
<div class="d-flex align-items-center">
|
||||||
|
<?php $comments->gravatar(64, '', '', 'avatar'); ?>
|
||||||
|
<div class="d-inline-block ml-1">
|
||||||
|
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
||||||
|
<?php if ($comments->authorId == $comments->ownerId): ?>
|
||||||
|
<span class="badge badge-secondary ml-1 mr-1"><?php _e('博主') ?></span>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($comments->status == 'waiting'): ?>
|
||||||
|
<span class="badge badge-warning ml-1 mr-1">
|
||||||
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
|
<?php _e('等待审核') ?>
|
||||||
|
</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
<br>
|
||||||
|
<span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span>
|
||||||
|
<span class="small ml-1 mr-1"><?php $comments->reply('<i class="fa fa-reply"></i> Reply'); ?><span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p><?php $comments->content(); ?></p>
|
||||||
|
<?php if ($comments->children): $comments->threadedComments($options); endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
|
|
Loading…
Reference in New Issue