diff options
Diffstat (limited to 'template/page.phtml')
-rw-r--r-- | template/page.phtml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/template/page.phtml b/template/page.phtml index ae797c0..a358a27 100644 --- a/template/page.phtml +++ b/template/page.phtml @@ -42,6 +42,10 @@ <script type="text/javascript" src="<?=h($assets)?>mejs/mediaelement-and-player.min.js"></script> <script type="text/javascript" src="<?=h($assets)?>js/lustiges-script.js"></script> + + <? if(isset($subtitles) && $subtitles->isEnabled()): ?> + <script type="text/javascript" src="<?=h($assets)?>js/lustige-subtitles.js"></script> + <? endif ?> </head> <body class="<?=h(is_numeric($page[0]) ? 'e'.$page : $page)?>"> <? if(!@$naked): ?> @@ -54,10 +58,16 @@ <? include("$assemblies/footer.phtml") ?> <? endif ?> - <? if(isset($schedule)): ?> - <span class="js-settings" + <? if(isset($schedule) && $schedule->isEnabled()): ?> + <span class="js-schedule-settings" data-scheduleoffset="<?=h($schedule->getSimulationOffset())?>" ></span> <? endif ?> + <? if(isset($subtitles) && $subtitles->isEnabled()): ?> + <span class="js-subtitles-settings" + data-primus-url="<?=h($subtitles->getPrimusURL())?>" + data-frontend-url="<?=h($subtitles->getFrontendURL())?>" + ></span> + <? endif ?> </body> </html> |