diff options
author | MaZderMind | 2014-11-09 22:32:09 +0100 |
---|---|---|
committer | MaZderMind | 2014-11-09 22:32:09 +0100 |
commit | ffbff5eb16a30b673d0c8296068cce230c510ca3 (patch) | |
tree | 04a54623b7bcf4dc3f77c9da05682d013a2c6e8c /template | |
parent | 0575b7d60ec7ddf491461c28b0968a0a2b07cba6 (diff) |
party style & player
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> |