diff options
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/player/audio.phtml | 6 | ||||
-rw-r--r-- | template/assemblies/switcher/party.phtml | 12 | ||||
-rw-r--r-- | template/party.phtml | 10 |
3 files changed, 23 insertions, 5 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> diff --git a/template/party.phtml b/template/party.phtml index 1ec4b44..bbbf8d7 100644 --- a/template/party.phtml +++ b/template/party.phtml @@ -1,7 +1,13 @@ -<div class="container-fluid rooms"> +<div class="container-fluid room party audio"> <h1><?=h($title)?></h1> + <div class="player-wrap"> + <? include("assemblies/player/audio.phtml") ?> + </div> + <div class="tab-content"> - <? include("players/audio.phtml") ?> + <div class="tab-pane active" id="switcher"> + <? include("assemblies/switcher/party.phtml") ?> + </div> </div> </div> |