The formattening, part 2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
require_once dirname(dirname(__DIR__)) . implode(DIRECTORY_SEPARATOR, ['', 'inc', 'include.php']);
|
||||
use \pvv\side\Agenda;
|
||||
require_once dirname(__DIR__, 2) . implode(\DIRECTORY_SEPARATOR, ['', 'inc', 'include.php']);
|
||||
use pvv\side\Agenda;
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="no">
|
||||
@@ -20,40 +21,40 @@ use \pvv\side\Agenda;
|
||||
<main>
|
||||
|
||||
<?php
|
||||
$activity = new \pvv\side\social\DriftkveldActivity;
|
||||
$nextEvent = $activity->getNextEventFrom(new DateTimeImmutable);
|
||||
$activity = new pvv\side\social\DriftkveldActivity();
|
||||
$nextEvent = $activity->getNextEventFrom(new DateTimeImmutable());
|
||||
?>
|
||||
|
||||
<article>
|
||||
<h2><em><?= $nextEvent->getRelativeDate()?></em> Driftkveld
|
||||
<h2><em><?php echo $nextEvent->getRelativeDate(); ?></em> Driftkveld
|
||||
<?php if ($nextEvent->getImageURL()) { ?>
|
||||
<img src="<?= $nextEvent->getImageURL() ?>">
|
||||
<img src="<?php echo $nextEvent->getImageURL(); ?>">
|
||||
<?php } ?>
|
||||
</h2>
|
||||
<ul class="subtext">
|
||||
<li>Tid:
|
||||
<strong>
|
||||
<?= Agenda::getFormattedDate($nextEvent->getStart());?>
|
||||
<?php echo Agenda::getFormattedDate($nextEvent->getStart()); ?>
|
||||
</strong>
|
||||
<li>Sted:
|
||||
<strong>
|
||||
<?= $nextEvent->getLocation();?>
|
||||
<?php echo $nextEvent->getLocation(); ?>
|
||||
</strong>
|
||||
<li>Arrangør:
|
||||
<strong>
|
||||
<?= $nextEvent->getOrganiser();?>
|
||||
<?php echo $nextEvent->getOrganiser(); ?>
|
||||
</strong>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
$Parsedown = new \Parsedown();
|
||||
echo $Parsedown->text(implode("\n", $nextEvent->getDescription()));
|
||||
?>
|
||||
$Parsedown = new Parsedown();
|
||||
echo $Parsedown->text(implode("\n", $nextEvent->getDescription()));
|
||||
?>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'aktiviteter'); ?>
|
||||
<?= loginbar($sp, $pdo); ?>
|
||||
<?php echo navbar(1, 'aktiviteter'); ?>
|
||||
<?php echo loginbar($sp, $pdo); ?>
|
||||
</nav>
|
||||
|
Reference in New Issue
Block a user