Show message when the content is null
This commit is contained in:
parent
45d725c909
commit
eb3cf641ad
|
@ -25,6 +25,12 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<?php if (empty($content)): ?>
|
||||||
|
<div class="text-center p-4">
|
||||||
|
<?php $language->p('No pages found') ?>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<!-- Print all the content -->
|
<!-- Print all the content -->
|
||||||
<?php foreach ($content as $page): ?>
|
<?php foreach ($content as $page): ?>
|
||||||
<section class="home-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): ?>
|
<?php foreach ($content as $page): ?>
|
||||||
<!-- Post -->
|
<!-- Post -->
|
||||||
<div class="card my-5 border-0">
|
<div class="card my-5 border-0">
|
||||||
|
|
Loading…
Reference in New Issue