Allow conference to override the not-started-yet page contents

This commit is contained in:
Ike 2019-10-11 23:08:02 +02:00
parent 3b3453fcc3
commit 06583183ab
2 changed files with 11 additions and 0 deletions

View file

@ -188,6 +188,13 @@ class Conference extends ModelBase
return $this->get('CONFERENCE.FOOTER_HTML');
}
public function hasNotStartedHtml() {
return $this->has('CONFERENCE.NOT_STARTED_HTML');
}
public function getNotStartedHtml() {
return $this->get('CONFERENCE.NOT_STARTED_HTML');
}
public function getRooms()
{

View file

@ -1,7 +1,11 @@
<div class="container about">
<? if($conference->hasNotStartedHtml()): ?>
<?= $conference->getNotStartedHtml() ?>
<? else: ?>
<h1><?=h($conference->getTitle())?> has not started yet</h1>
<p>
Live streams will be available here once it has started. Please check back later.
</p>
<? endif ?>
</div>