Assimilate hendelser into the new standard
This commit is contained in:
parent
ebe3ce0e1e
commit
5412414ce1
|
@ -5,51 +5,51 @@ $translation = ['I dag', 'I morgen', 'Denne uka', 'Neste uke', 'Denne måneden',
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="no">
|
<html lang="no">
|
||||||
<title>Hendelsesverkstedet</title>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<title>Hendelsesverkstedet</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<link rel="stylesheet" href="../css/normalize.css">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
<link rel="stylesheet" href="../css/style.css">
|
<link rel="stylesheet" href="../css/normalize.css">
|
||||||
<link rel="stylesheet" href="../css/events.css">
|
<link rel="stylesheet" href="../css/style.css">
|
||||||
|
<link rel="stylesheet" href="../css/events.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
<header>Hendelses­verk­stedet</header>
|
<body>
|
||||||
|
<main>
|
||||||
|
<h2>Hendelser</h2>
|
||||||
|
|
||||||
<main>
|
<?php
|
||||||
<article>
|
$description_paragraphs = 1; //description length
|
||||||
|
foreach($agenda->getNextDays() as $period => $events) {
|
||||||
|
if ($events) { ?>
|
||||||
|
<h2><?= $translation[$period] ?></h2>
|
||||||
|
<ul class="events">
|
||||||
|
<?php foreach($events as $event) {?>
|
||||||
|
<li style="border-color: <?= $event->getColor() ?>">
|
||||||
|
<h4><strong>
|
||||||
|
<?php if ($event->getURL()) { ?>
|
||||||
|
<a href="<?= $event->getURL() ?>"><?= $event->getName() ?></a>
|
||||||
|
<?php } else { ?>
|
||||||
|
<?= $event->getName() ?>
|
||||||
|
<?php } ?>
|
||||||
|
</strong></h4>
|
||||||
|
|
||||||
<?php
|
<?php $description = $event->getDescription(); ?>
|
||||||
$description_paragraphs = 1; //description length
|
<?php if ($description_paragraphs) array_splice($description, $description_paragraphs); ?>
|
||||||
foreach($agenda->getNextDays() as $period => $events) {
|
<p><?= implode($description, "<br>") ?></p>
|
||||||
if ($events) { ?>
|
|
||||||
<h2><?= $translation[$period] ?></h2>
|
<ul class="subtext">
|
||||||
<ul class="events">
|
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong></li>
|
||||||
<?php foreach($events as $event) {?>
|
<li>Sted: <strong><?= $event->getLocation() ?></strong></li>
|
||||||
<li style="border-color: <?= $event->getColor() ?>">
|
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong></li>
|
||||||
<h4><strong>
|
</ul>
|
||||||
<?php if ($event->getURL()) { ?>
|
</li>
|
||||||
<a href="<?= $event->getURL() ?>"><?= $event->getName() ?></a>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $event->getName() ?>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</strong></h4>
|
</ul>
|
||||||
|
<?php } ?>
|
||||||
<?php $description = $event->getDescription(); ?>
|
|
||||||
<?php if ($description_paragraphs) array_splice($description, $description_paragraphs); ?>
|
|
||||||
<p><?= implode($description, "<br>") ?></p>
|
|
||||||
|
|
||||||
<ul class="subtext">
|
|
||||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong>
|
|
||||||
<li>Sted: <strong><?= $event->getLocation() ?></strong>
|
|
||||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</main>
|
||||||
<?php } ?>
|
</body>
|
||||||
<?php } ?>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<?= navbar(1, 'hendelser'); ?>
|
<?= navbar(1, 'hendelser'); ?>
|
||||||
|
|
Loading…
Reference in New Issue