#7 - don't show section if empty field
This commit is contained in:
parent
6eba8122ea
commit
ee1e020b7e
1 changed files with 4 additions and 3 deletions
|
|
@ -48,10 +48,11 @@
|
|||
</section>
|
||||
|
||||
<?php snippet('calendar-strip') ?>
|
||||
|
||||
<?php
|
||||
<?php if ($site->events()->isNotEmpty()): ?>
|
||||
<?php
|
||||
snippet('events-grid', ['title' => 'Prochainement', 'events' => $site->events()->toPages(), 'columns' => $site->events()->toPages()->count() === 1 ? 2 : $site->events()->toPages()->count()])
|
||||
?>
|
||||
?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php snippet('newsletter-section') ?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue