Added "no posts to show" warning
This commit is contained in:
parent
65e1a52b20
commit
1bbebfa640
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php if (!empty($this->context->transport->errorMessage)): ?>
|
||||
<p class="alert alert-error"><?php echo $this->context->transport->errorMessage ?></p>
|
||||
<?php elseif (empty($this->context->transport->posts)): ?>
|
||||
<p class="alert alert-warning">No posts to show.</p>
|
||||
<?php else: ?>
|
||||
<div class="posts">
|
||||
<?php foreach ($this->context->transport->posts as $post): ?>
|
||||
|
|
Loading…
Reference in a new issue