diff options
-rw-r--r-- | model/Conference.php | 7 | ||||
-rw-r--r-- | template/not-started.phtml | 4 |
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> |