diff options
Diffstat (limited to '')
-rw-r--r-- | .htaccess | 4 | ||||
-rw-r--r-- | formats.php (renamed from room.php) | 8 | ||||
-rw-r--r-- | index.php | 9 | ||||
-rw-r--r-- | template/formats.phtml | 8 | ||||
-rw-r--r-- | template/rooms.phtml | 8 |
5 files changed, 29 insertions, 8 deletions
@@ -7,8 +7,8 @@ RewriteCond %{REQUEST_FILENAME} !-l # / -> index.php - room/streams list -# /room/ -> room.php - list of qualities/formats -RewriteRule ^(saal1|saal2|saalg|saalz)/?$ room.php?room=$1 [L] +# /room/ -> formats.php - list of qualities/formats +RewriteRule ^(saal1|saal2|saalg|saalz)/?$ formats.php?room=$1 [L] # /room/format/ -> player.php - native av-player for room RewriteRule ^(saal1|saal2|saalg|saalz)/(hd|hq|lq|audio|slides)/?$ player.php?room=$1&format=$2&language=native [L] @@ -14,5 +14,11 @@ echo $tpl->render(array( 'subtitle' => ucfirst($room), 'room' => $room, - 'formats' => array('hd','hq','lq','audio','slides'), + 'formats' => array( + 'hd' => 'FullHD', + 'hq' => 'High Quality', + 'lq' => 'Low Quality', + 'audio' => 'Audio-Only', + 'slides' => 'Slide-Images + Audio', + ), )); @@ -10,5 +10,12 @@ echo $tpl->render(array( 'baseurl' => baseurl(), 'title' => 'Rooms', - 'rooms' => array('saal1','saal2','saalg','saalz','launge','sendezentrum'), + 'rooms' => array( + 'saal1' => 'Saal 1', + 'saal2' => 'Saal 2', + 'saalg' => 'Saal G', + 'saalz' => 'Saal Z', + 'launge' => 'Launge', + 'sendezentrum' => 'Sendezentrum', + ), )); diff --git a/template/formats.phtml b/template/formats.phtml new file mode 100644 index 0000000..d03913d --- /dev/null +++ b/template/formats.phtml @@ -0,0 +1,8 @@ +<ul> + <? foreach($formats as $format => $display): ?> + <li class="<?=h($format)?>"> + <a href="<?=h(link_player($room, $format))?>"><?=h($display)?></a> + (<a href="<?=h(link_player($room, $format, true))?>">translated</a>) + </li> + <? endforeach ?> +</ul> diff --git a/template/rooms.phtml b/template/rooms.phtml index e4e7227..e4d5f32 100644 --- a/template/rooms.phtml +++ b/template/rooms.phtml @@ -1,8 +1,8 @@ <ul> - <? foreach($formats as $format): ?> - <li class="<?=h($format)?>"> - <a href="<?=h(link_player($room, $format))?>"><?=h(ucfirst($format))?></a> - (<a href="<?=h(link_player($room, $format, true))?>">translated</a>) + <? foreach($rooms as $room => $display): ?> + <li class="<?=h($room)?>"> + <a href="<?=h(link_room($room))?>"><?=h($display)?></a> + (<a href="<?=h(link_room($room, true))?>">translated</a>) </li> <? endforeach ?> </ul> |