2016-08-26 22:52:59 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<?php
|
|
|
|
date_default_timezone_set('Europe/Oslo');
|
2018-02-10 18:08:53 +01:00
|
|
|
setlocale(LC_ALL, 'nb_NO');
|
2016-08-26 22:52:59 +02:00
|
|
|
require __DIR__ . '/../../src/_autoload.php';
|
|
|
|
require __DIR__ . '/../../sql_config.php';
|
2016-08-26 23:14:46 +02:00
|
|
|
use \pvv\side\Agenda;
|
2016-08-26 22:52:59 +02:00
|
|
|
?>
|
|
|
|
<html lang="no">
|
|
|
|
<title>Sosialverkstedet</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
|
|
<link rel="stylesheet" href="../css/normalize.css">
|
|
|
|
<link rel="stylesheet" href="../css/style.css">
|
2018-02-10 15:04:57 +01:00
|
|
|
<link rel="stylesheet" href="../css/nav.css">
|
2016-08-26 22:52:59 +02:00
|
|
|
<link rel="stylesheet" href="../css/events.css">
|
|
|
|
|
|
|
|
<header>Sosial­verk­stedet</header>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$activity = new \pvv\side\social\BrettspillActivity;
|
|
|
|
$nextEvent = $activity->getNextEventFrom(new DateTimeImmutable);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<article>
|
|
|
|
|
2016-08-31 18:34:45 +02:00
|
|
|
<h2><em><?= $nextEvent->getRelativeDate()?></em> Brettspillkveld
|
|
|
|
<?php if ($nextEvent->getImageURL()) { ?>
|
|
|
|
<img src="<?= $nextEvent->getImageURL() ?>">
|
|
|
|
<?php } ?>
|
|
|
|
</h2>
|
2016-08-26 22:52:59 +02:00
|
|
|
<ul class="subtext">
|
2016-08-26 23:17:59 +02:00
|
|
|
<li>Tid:
|
|
|
|
<strong>
|
|
|
|
<?= Agenda::getFormattedDate($nextEvent->getStart());?>
|
|
|
|
</strong>
|
2016-08-26 22:52:59 +02:00
|
|
|
<li>Sted:
|
2016-08-26 23:17:59 +02:00
|
|
|
<strong>
|
|
|
|
<?= $nextEvent->getLocation();?>
|
|
|
|
</strong>
|
2016-08-26 22:52:59 +02:00
|
|
|
<li>Arrangør:
|
2016-08-26 23:17:59 +02:00
|
|
|
<strong>
|
|
|
|
<?= $nextEvent->getOrganiser();?>
|
|
|
|
</strong>
|
2016-08-26 22:52:59 +02:00
|
|
|
</ul>
|
|
|
|
|
2018-08-12 03:52:55 +02:00
|
|
|
<?php
|
|
|
|
$Parsedown = new \Parsedown();
|
|
|
|
echo $Parsedown->text(implode("\n", $nextEvent->getDescription()));
|
|
|
|
?>
|
2016-08-26 22:52:59 +02:00
|
|
|
</article>
|
|
|
|
|
|
|
|
</main>
|
2016-08-29 19:37:49 +02:00
|
|
|
|
|
|
|
<nav><ul>
|
|
|
|
<li><a href="../">hjem</a></li>
|
2017-10-07 14:49:20 +02:00
|
|
|
<!--<li><a href="../prosjekt/">prosjekter</a></li>-->
|
2017-10-07 21:54:21 +02:00
|
|
|
<li><a href="../kalender/">kalender</a></li>
|
2017-10-07 14:49:20 +02:00
|
|
|
<li class="active"><a href="../aktiviteter/">aktiviteter</a></li>
|
2017-10-22 17:57:55 +02:00
|
|
|
<li><a href="../prosjekt/">prosjekter</a></li>
|
2017-10-22 13:33:14 +02:00
|
|
|
<li><a href="../kontakt/">kontakt</a></li>
|
2016-08-30 18:13:31 +02:00
|
|
|
<li><a href="../pvv/">wiki</a></li>
|
2016-08-29 19:37:49 +02:00
|
|
|
</nav>
|