优化引用通告的显示
This commit is contained in:
parent
7519d871cd
commit
a65df1965a
19
comments.php
19
comments.php
|
@ -3,10 +3,20 @@
|
|||
<?php function threadedComments($comments, $options) {
|
||||
$commentClass = '';
|
||||
if ($comments->levels > 0) $commentClass .= ' ml-5';
|
||||
if ($comments->type == 'pingback' || $comments->type == 'traceback') $commentClass .= ' bg-secondary';
|
||||
?>
|
||||
<!-- 评论列表区域 -->
|
||||
<div id="<?php $comments->theId(); ?>" class="<?php echo $commentClass; ?>">
|
||||
?>
|
||||
<?php if ($comments->type == 'pingback' || $comments->type == 'traceback'){?>
|
||||
<div id="<?php $comments->theId(); ?>">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
||||
<br>
|
||||
<span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span>
|
||||
<!-- <p><?php #$comments->content(); ?></p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="<?php $comments->theId(); ?>" class="mt-3 mb-3<?php echo $commentClass; ?>">
|
||||
<div class="d-flex align-items-center">
|
||||
<?php $comments->gravatar(64, '', '', 'avatar'); ?>
|
||||
<div class="d-inline-block ml-1">
|
||||
|
@ -28,6 +38,7 @@
|
|||
<p><?php $comments->content(); ?></p>
|
||||
<?php if ($comments->children): $comments->threadedComments($options); endif; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<div id="comments">
|
||||
|
|
Loading…
Reference in New Issue