aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
authorMaZderMind2014-11-09 22:32:09 +0100
committerMaZderMind2014-11-09 22:32:09 +0100
commitffbff5eb16a30b673d0c8296068cce230c510ca3 (patch)
tree04a54623b7bcf4dc3f77c9da05682d013a2c6e8c /template/assemblies
parent0575b7d60ec7ddf491461c28b0968a0a2b07cba6 (diff)
party style & player
Diffstat (limited to '')
-rw-r--r--template/assemblies/player/audio.phtml6
-rw-r--r--template/assemblies/switcher/party.phtml12
2 files changed, 15 insertions, 3 deletions
diff --git a/template/assemblies/player/audio.phtml b/template/assemblies/player/audio.phtml
index 690a0cd..3c46085 100644
--- a/template/assemblies/player/audio.phtml
+++ b/template/assemblies/player/audio.phtml
@@ -4,15 +4,15 @@
style="width: 960px;"
>
<source
- src="<?=h(link_stream('audio', $room, 'mp3', $translated))?>"
+ src="<?=h(link_stream('audio', $room, 'mp3', @$translated))?>"
type="audio/mp3"
/>
<source
- src="<?=h(link_stream('audio', $room, 'ogg', $translated))?>"
+ src="<?=h(link_stream('audio', $room, 'ogg', @$translated))?>"
type="audio/ogg"
/>
<source
- src="<?=h(link_stream('audio', $room, 'opus', $translated))?>"
+ src="<?=h(link_stream('audio', $room, 'opus', @$translated))?>"
type="audio/opus"
/>
</audio>
diff --git a/template/assemblies/switcher/party.phtml b/template/assemblies/switcher/party.phtml
new file mode 100644
index 0000000..f7e7bd7
--- /dev/null
+++ b/template/assemblies/switcher/party.phtml
@@ -0,0 +1,12 @@
+<h3>Directlinks</h3>
+<ul>
+ <? foreach(array('mp3', 'ogg', 'opus') as $iter): ?>
+ <li>
+ <span class="label filetype"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_stream('audio', $room, $iter))?>">
+ <span class="fa fa-music"></span>
+ livemusic
+ </a>
+ </li>
+ <? endforeach ?>
+</ul>