37 lines
No EOL
1.2 KiB
PHP
37 lines
No EOL
1.2 KiB
PHP
<?php snippet('header') ?>
|
|
<section class="hero">
|
|
<div class="hero__text">
|
|
<?= $site->heroText()->toBlocks() ?>
|
|
<?php if ($site->heroLinkUrl()->isNotEmpty() == 'true'): ?>
|
|
<a class="hero__link h3" href="<?= $site->heroLinkUrl()->toUrl() ?>"><?php e($site->heroLinkText()->isNotEmpty() == 'true', $site->heroLinkText(), $site->heroLinkUrl()->toUrl()) ?></a>
|
|
<?php endif ?>
|
|
</div>
|
|
<div class="hero__image">
|
|
<?php if ($site->heroLinkUrl()->isNotEmpty() == 'true'): ?>
|
|
<a href="<?= $site->heroLinkUrl()->toUrl() ?>" title="en savoir plus">
|
|
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>
|
|
</a>
|
|
<?php else: ?>
|
|
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>
|
|
<?php endif ?>
|
|
</div>
|
|
</section>
|
|
|
|
<?php snippet('calendar-strip') ?>
|
|
|
|
<?php
|
|
$orderedSeason = $kirby->collection('ordered-season');
|
|
$comingEvents = filterFutureEvents($orderedSeason);
|
|
?>
|
|
|
|
<?php
|
|
snippet('events-grid', ['title' => 'Prochainement', 'events' => $comingEvents->slice(0, 2), 'columns' => 2])
|
|
?>
|
|
|
|
<?php snippet('newsletter-section') ?>
|
|
|
|
<?php snippet('events-grid', ['events' => $comingEvents->slice(2, 3)]) ?>
|
|
|
|
<?php snippet('callout') ?>
|
|
|
|
<?php snippet('footer') ?>
|