mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
Allow conference to override the not-started-yet page contents
This commit is contained in:
parent
3b3453fcc3
commit
06583183ab
2 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue