Show message when the content is null
This commit is contained in:
parent
45d725c909
commit
eb3cf641ad
@ -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">
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user