39 lines
969 B
PHP
39 lines
969 B
PHP
<?php snippet('header') ?>
|
|
|
|
<div class="bg-white-green headline" style="padding-bottom: 79pt">
|
|
<h3 class="uppercase font-kobata leading-none"><?= $page->title() ?></h4>
|
|
</div>
|
|
|
|
<?php $colors = [
|
|
'bg-pink-green',
|
|
'bg-green-white',
|
|
'bg-white-green',
|
|
'bg-orange-white',
|
|
'bg-lila-pink',
|
|
'bg-white-green',
|
|
]; $index = 0; ?>
|
|
|
|
<?php if ($page->text()->isNotEmpty()): ?>
|
|
<div class="container bg-white-green">
|
|
<div class="text-22">
|
|
<?= $page->text()->kirbytext() ?>
|
|
</div>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<?php foreach ($page->children()->listed() as $page): ?>
|
|
<?php $color = $colors[$index++ % 6] ; remember($color); ?>
|
|
<section class="container calendar-entry <?= $color ?>">
|
|
<div><?= $page->date()->text() ?></div>
|
|
<?php $entry = $page->page()->toPage() ?>
|
|
<a href="<?= $entry ? $entry->url() : '' ?>" class="link">
|
|
<?= $page->description()->text() ?>
|
|
</a>
|
|
</section>
|
|
<?php endforeach ?>
|
|
|
|
<?php snippet('inline_footer') ?>
|
|
|
|
</div>
|
|
|
|
<?php snippet('footer') ?>
|