aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIke2019-10-11 23:08:02 +0200
committerIke2019-10-11 23:09:14 +0200
commit06583183ab51094b3bf38ec34503f907047c2fcb (patch)
tree161b137dd7004c2bf6343af8b7d89b0e97fb27b6
parent3b3453fcc331ad477651ca83e4144188bad1cfd8 (diff)
Allow conference to override the not-started-yet page contents
Diffstat (limited to '')
-rw-r--r--model/Conference.php7
-rw-r--r--template/not-started.phtml4
2 files changed, 11 insertions, 0 deletions
diff --git a/model/Conference.php b/model/Conference.php
index 099e3ce..26bcc8b 100644
--- a/model/Conference.php
+++ b/model/Conference.php
@@ -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()
{
diff --git a/template/not-started.phtml b/template/not-started.phtml
index 043474c..5149642 100644
--- a/template/not-started.phtml
+++ b/template/not-started.phtml
@@ -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>