优化引用通告的显示
This commit is contained in:
parent
7519d871cd
commit
a65df1965a
17
comments.php
17
comments.php
|
@ -3,10 +3,20 @@
|
||||||
<?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(); ?>" class="<?php echo $commentClass; ?>">
|
<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">
|
<div class="d-flex align-items-center">
|
||||||
<?php $comments->gravatar(64, '', '', 'avatar'); ?>
|
<?php $comments->gravatar(64, '', '', 'avatar'); ?>
|
||||||
<div class="d-inline-block ml-1">
|
<div class="d-inline-block ml-1">
|
||||||
|
@ -29,6 +39,7 @@
|
||||||
<?php if ($comments->children): $comments->threadedComments($options); endif; ?>
|
<?php if ($comments->children): $comments->threadedComments($options); endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
<?php $this->comments()->to($comments); ?>
|
<?php $this->comments()->to($comments); ?>
|
||||||
|
|
Loading…
Reference in New Issue