Better-looking comment counter

This commit is contained in:
Marcin Kurczewski 2013-10-18 00:01:58 +02:00
parent 379674d027
commit 73050f159f

View file

@ -238,10 +238,11 @@
<?php endif ?> <?php endif ?>
<div class="comments footer-unit"> <div class="comments footer-unit">
<h1>comments (<?php echo $this->context->transport->post->countOwn('comment') ?>)</h1>
<?php if (empty($this->context->transport->post->ownComment)): ?> <?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: ?> <?php else: ?>
<h1>comments (<?php echo $this->context->transport->post->countOwn('comment') ?>)</h1>
<div class="comments"> <div class="comments">
<?php foreach ($this->context->transport->post->ownComment as $comment): ?> <?php foreach ($this->context->transport->post->ownComment as $comment): ?>
<?php $this->context->comment = $comment ?> <?php $this->context->comment = $comment ?>