aboutsummaryrefslogtreecommitdiff
path: root/room.php
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 12:12:20 +0200
committerMaZderMind2014-10-19 12:12:20 +0200
commitf652ae2be38e74796ed63ba72e23fcb632818118 (patch)
treefac87e88a3928b789c0d9b7f4a9a2ac5b6cbb77e /room.php
parentc2f7758004a9016910168ad47c1a4300e107f2c2 (diff)
restructure room site to produce a unique room/player/formats page
Diffstat (limited to '')
-rw-r--r--room.php (renamed from player.php)11
1 files changed, 7 insertions, 4 deletions
diff --git a/player.php b/room.php
index f41c0a2..0750cdc 100644
--- a/player.php
+++ b/room.php
@@ -38,12 +38,13 @@ switch($format) {
$tpl = new PhpTemplate('template/page.phtml');
echo $tpl->render(array(
- 'page' => 'player',
- 'playertype' => $type,
+ 'page' => 'room',
'baseurl' => baseurl(),
- 'title' => $GLOBALS['CONFIG']['ROOMS'][$room],
- 'subtitle' => $GLOBALS['CONFIG']['FORMATS'][$format],
+ 'title' => $GLOBALS['CONFIG']['ROOMS'][$room].' – '.$GLOBALS['CONFIG']['FORMATS'][$format],
+
+ 'rooms' => $GLOBALS['CONFIG']['ROOMS'],
+ 'formats' => $GLOBALS['CONFIG']['FORMATS'],
'room' => $room,
'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room],
@@ -51,4 +52,6 @@ echo $tpl->render(array(
'type' => $type,
'width' => @$width,
'height' => @$height,
+ 'language' => $language,
+ 'format' => $format,
));