diff options
author | MaZderMind | 2017-05-25 16:08:52 +0200 |
---|---|---|
committer | MaZderMind | 2017-05-25 16:08:52 +0200 |
commit | ad26c3038f99d7c4a042ccae65788424b182c9b6 (patch) | |
tree | dea43b953a1845fca04dd8f3e199bcaa8239189f | |
parent | c326e96dc0ccafe470c9877e7146e03775e4f980 (diff) |
support embedding additional html on all pages
-rw-r--r-- | model/Conference.php | 7 | ||||
-rw-r--r-- | template/page.phtml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/model/Conference.php b/model/Conference.php index 8d387a0..0ce0a55 100644 --- a/model/Conference.php +++ b/model/Conference.php @@ -225,4 +225,11 @@ class Conference extends ModelBase public function getExtraFiles() { return $this->get('EXTRA_FILES', []); } + + public function hasAdditionalHtml() { + return $this->has('CONFERENCE.ADDITIONAL_HTML'); + } + public function getAdditionalHtml() { + return $this->get('CONFERENCE.ADDITIONAL_HTML'); + } } diff --git a/template/page.phtml b/template/page.phtml index 016debf..93dfe02 100644 --- a/template/page.phtml +++ b/template/page.phtml @@ -85,5 +85,10 @@ data-frontend-url="<?=h($subtitles->getFrontendURL())?>" ></span> <? endif ?> + + + <? if($conference->hasAdditionalHtml()): ?> + <?= $conference->getAdditionalHtml() ?> + <? endif ?> </body> </html> |