Show message when the content is null

This commit is contained in:
Diego Najar 2018-11-23 20:09:21 +01:00
parent 45d725c909
commit eb3cf641ad
2 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,12 @@
</div>
</header>
<?php if (empty($content)): ?>
<div class="text-center p-4">
<?php $language->p('No pages found') ?>
</div>
<?php endif ?>
<!-- Print all the content -->
<?php foreach ($content as $page): ?>
<section class="home-page">

View File

@ -1,3 +1,9 @@
<?php if (empty($content)): ?>
<div class="mt-4">
<?php $language->p('No pages found') ?>
</div>
<?php endif ?>
<?php foreach ($content as $page): ?>
<!-- Post -->
<div class="card my-5 border-0">