Add "Kalender" button to /hendelser
Makes navigation a bit more intuitive. The label is subject to change. It might even be changed from a button style link to a normal link.
This commit is contained in:
parent
32cc4ec27f
commit
8dcc899c34
|
@ -15,11 +15,17 @@ $translation = ['I dag', 'I morgen', 'Denne uka', 'Neste uke', 'Denne måneden',
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<nav>
|
||||||
|
<?= navbar(1, 'hendelser'); ?>
|
||||||
|
<?= loginbar($sp, $pdo); ?>
|
||||||
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
<h2>Hendelser</h2>
|
<h2 style="pointer-events:none;">Hendelser</h2>
|
||||||
|
<div style="text-align: center; margin-top: -2.5em;">
|
||||||
|
<a style="padding-left: 2em; padding-right: 2em;" class="btn" style="" href="../kalender/">Kalender</a>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$description_paragraphs = 1; //description length
|
$description_paragraphs = 2; //description length
|
||||||
foreach($agenda->getNextDays() as $period => $events) {
|
foreach($agenda->getNextDays() as $period => $events) {
|
||||||
if ($events) { ?>
|
if ($events) { ?>
|
||||||
<h2><?= $translation[$period] ?></h2>
|
<h2><?= $translation[$period] ?></h2>
|
||||||
|
@ -36,7 +42,7 @@ $translation = ['I dag', 'I morgen', 'Denne uka', 'Neste uke', 'Denne måneden',
|
||||||
|
|
||||||
<?php $description = $event->getDescription(); ?>
|
<?php $description = $event->getDescription(); ?>
|
||||||
<?php if ($description_paragraphs) array_splice($description, $description_paragraphs); ?>
|
<?php if ($description_paragraphs) array_splice($description, $description_paragraphs); ?>
|
||||||
<p><?= implode($description, "<br>") ?></p>
|
<p><?= implode("<br>", $description) ?></p>
|
||||||
|
|
||||||
<ul class="subtext">
|
<ul class="subtext">
|
||||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong></li>
|
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong></li>
|
||||||
|
@ -48,10 +54,10 @@ $translation = ['I dag', 'I morgen', 'Denne uka', 'Neste uke', 'Denne måneden',
|
||||||
</ul>
|
</ul>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<div style="text-align: center; margin-bottom: 2em;">
|
||||||
|
<a style="padding-left: 2em; padding-right: 2em;" class="btn" style="" href="../kalender/">Kalender</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<nav>
|
|
||||||
<?= navbar(1, 'hendelser'); ?>
|
|
||||||
<?= loginbar($sp, $pdo); ?>
|
|
||||||
</nav>
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h2 style="text-align:center;">Aktiviteter for <?=$months_translations[$month-1]?> <?=$year?></h2>
|
<h2 style="text-align:center;">PVV Kalender for <?=$months_translations[$month-1]?> <?=$year?></h2>
|
||||||
|
|
||||||
<p><?php
|
<p><?php
|
||||||
$pmonth = $month-1;
|
$pmonth = $month-1;
|
||||||
|
|
Loading…
Reference in New Issue