aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher/audio.phtml
blob: 53131d386e2f09ce03eed681db8f4967cabbc99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<div class="container-fluid">
	<? if($has_translation): ?>
		<h3>Audio</h3>
		<div class="formats row">

			<div class="col-lg-3 col-md-4 col-lg-5 col-xs-12">
				<div class="btn-group" role="group">
					<div class="btn btn-primary" disabled>Audio</div>

					<a href="<?=h(link_player($room, 'audio'))?>" class="btn btn-default">
						<span class="fa fa-flag-o"></span>
						native
					</a>
					<a href="<?=h(link_player($room, 'audio', true))?>" class="btn btn-default">
						<span class="fa fa-flag"></span>
						translated
					</a>

				</div>
			</div>

		</div>
	<? endif ?>


	<h3>Directlinks</h3>
	<div class="formats row">

		<? foreach(array_intersect($formats, array('audio-mp3', 'audio-opus', 'audio-ogg')) as $format): ?>
			<div class="col-lg-3 col-md-4 col-lg-5 col-xs-12">
				<? $proto = substr($format, 6) ?>
				<div class="btn-group" role="group" title="<?=h(get("FORMAT.$format"))?>">
					<div class="btn btn-primary" disabled><?=h(strtoupper($proto))?></div>

						<? if($has_translation): ?>

							<a href="<?=h(link_stream('audio', $room, $proto))?>" class="btn btn-default">
								<span class="fa fa-flag-o"></span>
								native
							</a>
							<a href="<?=h(link_stream('audio', $room, $proto, true))?>" class="btn btn-default">
								<span class="fa fa-flag"></span>
								translated
							</a>

						<? else: ?>

							<a href="<?=h(link_stream('audio', $room, $proto))?>" class="btn btn-default">
								<span class="fa fa-volume-up"></span>
								audio
							</a>

						<? endif ?>

				</div>
			</div>
		<? endforeach ?>

	</div>
</div>