diff options
Diffstat (limited to '')
-rw-r--r-- | lib/bootstrap.php | 1 | ||||
-rw-r--r-- | template/page.phtml | 6 | ||||
-rw-r--r-- | template/party.phtml | 4 | ||||
-rw-r--r-- | template/room.phtml | 11 | ||||
-rw-r--r-- | template/rooms.phtml | 2 |
5 files changed, 13 insertions, 11 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 297144b..63d429c 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -7,4 +7,5 @@ require_once('lib/config.php'); $tpl = new PhpTemplate('template/page.phtml'); $tpl->set(array( 'baseurl' => baseurl(), + 'assemblies' => './template/assemblies/', )); diff --git a/template/page.phtml b/template/page.phtml index c78db36..07bc7df 100644 --- a/template/page.phtml +++ b/template/page.phtml @@ -1,6 +1,6 @@ <!DOCTYPE html> -<? include('assemblies/motd.phtml') ?> +<? include("$assemblies/motd.phtml") ?> <html> <head> @@ -40,8 +40,8 @@ <script type="text/javascript" src="assets/js/lustiges-script.js"></script> </head> <body class="<?=h($page)?>"> - <? include('assemblies/header.phtml') ?> + <? include("$assemblies/header.phtml") ?> <? include("$page.phtml") ?> - <? include('assemblies/footer.phtml') ?> + <? include("$assemblies/footer.phtml") ?> </body> </html> diff --git a/template/party.phtml b/template/party.phtml index bbbf8d7..9b22ce1 100644 --- a/template/party.phtml +++ b/template/party.phtml @@ -2,12 +2,12 @@ <h1><?=h($title)?></h1> <div class="player-wrap"> - <? include("assemblies/player/audio.phtml") ?> + <? include("$assemblies/player/audio.phtml") ?> </div> <div class="tab-content"> <div class="tab-pane active" id="switcher"> - <? include("assemblies/switcher/party.phtml") ?> + <? include("$assemblies/switcher/party.phtml") ?> </div> </div> </div> diff --git a/template/room.phtml b/template/room.phtml index 18f1407..fb917ec 100644 --- a/template/room.phtml +++ b/template/room.phtml @@ -20,7 +20,7 @@ </ul> <div class="player-wrap"> - <? include("assemblies/player/$type.phtml") ?> + <? include("$assemblies/player/$type.phtml") ?> </div> <? if(!$miniroom): ?> @@ -39,18 +39,19 @@ <div class="tab-content"> <div class="tab-pane active" id="switcher"> + <? if($miniroom): ?> - <? include("assemblies/switcher/miniroom-$type.phtml") ?> + <? include("$assemblies/switcher/miniroom-$type.phtml") ?> <? else: ?> - <? include("assemblies/switcher/$type.phtml") ?> + <? include("$assemblies/switcher/$type.phtml") ?> <? endif ?> </div> <? if(!$miniroom): ?> <div class="tab-pane" id="irc"> - <? include("assemblies/irc.phtml") ?> + <? include("$assemblies/irc.phtml") ?> </div> <div class="tab-pane" id="program"> - <? include("assemblies/program.phtml") ?> + <? include("$assemblies/program.phtml") ?> </div> <? endif ?> </div> diff --git a/template/rooms.phtml b/template/rooms.phtml index e7375ae..0a351e0 100644 --- a/template/rooms.phtml +++ b/template/rooms.phtml @@ -1,4 +1,4 @@ -<? include('assemblies/banner.phtml') ?> +<? include("$assemblies/banner.phtml") ?> <div class="container-fluid rooms"> <h1>Live-Streams</h1> |