Remove url on simpleevent

This commit is contained in:
Peder Bergebakken Sundt 2017-10-22 14:15:11 +02:00
parent c8ac8f7297
commit 473cd000d0
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class SimpleEvent extends Event {
}
public function getURL() {
return '/';
return '';
}
public function getImageURL() {

View File

@ -54,7 +54,11 @@ foreach($events as $event) {
<?php if (\pvv\side\Agenda::isToday($event->getStart())) { ?><strong><?php } ?>
<em><?= $event->getRelativeDate() ?></em>
<?php if (\pvv\side\Agenda::isToday($event->getStart())) { ?></strong><?php } ?>
<?php if ($event->getURL()) { ?>
<a href="<?= $event->getURL() ?>"><?= $event->getName() ?></a>
<?php } else { ?>
<?= $event->getName() ?>
<?php } ?>
</h2>
<ul class="subtext">
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong>