aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/formats.phtml8
-rw-r--r--template/rooms.phtml8
2 files changed, 12 insertions, 4 deletions
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>