Better-looking comment counter
This commit is contained in:
parent
379674d027
commit
73050f159f
1 changed files with 3 additions and 2 deletions
|
@ -238,10 +238,11 @@
|
|||
<?php endif ?>
|
||||
|
||||
<div class="comments footer-unit">
|
||||
<h1>comments (<?php echo $this->context->transport->post->countOwn('comment') ?>)</h1>
|
||||
<?php if (empty($this->context->transport->post->ownComment)): ?>
|
||||
<p class="alert alert-warning">No comments to show.</p>
|
||||
<h1>comments</h1>
|
||||
None yet.
|
||||
<?php else: ?>
|
||||
<h1>comments (<?php echo $this->context->transport->post->countOwn('comment') ?>)</h1>
|
||||
<div class="comments">
|
||||
<?php foreach ($this->context->transport->post->ownComment as $comment): ?>
|
||||
<?php $this->context->comment = $comment ?>
|
||||
|
|
Loading…
Reference in a new issue