dist
gammel dokumentasjon
inc
nix
src
www
.well-known
PNG
admin
aktiviteter
anime
index.php
brettspill
css
door
driftkveld
galleri
hendelser
js
kalender
kontakt
nerdepitsa
om
paamelding
prosjekt
sosiale
tjenester
favicon.ico
index.php
pvv-logo.png
pvv.svg
robots.txt
spaceapi.php
.envrc
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.php-cs-fixer.php
Dockerfile
README.md
composer.json
composer.lock
docker-compose.yaml
flake.lock
flake.nix
61 lines
1.5 KiB
PHP
Executable File
61 lines
1.5 KiB
PHP
Executable File
<?php
|
|
require_once dirname(__DIR__, 2) . implode(\DIRECTORY_SEPARATOR, ['', 'inc', 'include.php']);
|
|
use pvv\side\Agenda;
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="no">
|
|
<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="shortcut icon" href="favicon.ico">
|
|
<link rel="stylesheet" href="../css/normalize.css">
|
|
<link rel="stylesheet" href="../css/style.css">
|
|
<link rel="stylesheet" href="../css/nav.css">
|
|
<link rel="stylesheet" href="../css/events.css">
|
|
<meta name="theme-color" content="#024" />
|
|
<title>Animeverkstedet</title>
|
|
|
|
<header>Sosial­verk­stedet</header>
|
|
|
|
|
|
<main>
|
|
|
|
<?php
|
|
$activity = new pvv\side\social\AnimekveldActivity();
|
|
$nextEvent = $activity->getNextEventFrom(new DateTimeImmutable());
|
|
?>
|
|
|
|
<article>
|
|
<h2><em><?php echo $nextEvent->getRelativeDate(); ?></em> Animekveld
|
|
<?php if ($nextEvent->getImageURL()) { ?>
|
|
<img src="<?php echo $nextEvent->getImageURL(); ?>">
|
|
<?php } ?>
|
|
</h2>
|
|
<ul class="subtext">
|
|
<li>Tid:
|
|
<strong>
|
|
<?php echo Agenda::getFormattedDate($nextEvent->getStart()); ?>
|
|
</strong>
|
|
<li>Sted:
|
|
<strong>
|
|
<?php echo $nextEvent->getLocation(); ?>
|
|
</strong>
|
|
<li>Arrangør:
|
|
<strong>
|
|
<?php echo $nextEvent->getOrganiser(); ?>
|
|
</strong>
|
|
</ul>
|
|
|
|
<?php
|
|
$Parsedown = new Parsedown();
|
|
echo $Parsedown->text(implode("\n", $nextEvent->getDescription()));
|
|
?>
|
|
</article>
|
|
|
|
</main>
|
|
|
|
<nav>
|
|
<?php echo navbar(1, 'aktiviteter'); ?>
|
|
<?php echo loginbar($sp, $pdo); ?>
|
|
</nav>
|