diff options
author | MaZderMind | 2015-12-20 15:29:09 +0100 |
---|---|---|
committer | MaZderMind | 2015-12-20 15:29:09 +0100 |
commit | a439f454df31093157aaa773e549f5bacc5584c1 (patch) | |
tree | fe533d042b76213d0029753a7054090a2a8c5494 /template/page.phtml | |
parent | 82fcef7c4cd257c0ee3b666899542e033269af32 (diff) |
implement new subtitles L2S2 interface
Diffstat (limited to '')
-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> |