init
This commit is contained in:
27
site/templates/calendar.php
Normal file
27
site/templates/calendar.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<div class="bg-white-green container" style="padding-left: 179pt; padding-bottom: 79pt">
|
||||
<h4 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 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('footer') ?>
|
||||
Reference in New Issue
Block a user