aboutsummaryrefslogtreecommitdiff
path: root/template/relive.phtml
blob: b26dd2096bf7e314456ae216187e85f16f155f25 (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
61
62
63
64
65
<div class="container">
	<h1><?=h($title)?></h1>

	<div class="row">
		<div class="col-xs-12">
			<div class="alert alert-danger" role="alert">
				<i class="fa fa-exclamation-circle"></i>
				<strong>Danger!</strong> Extreme Beta!!!
			</div>
		</div>
	</div>

	<div class="row">

		<? if(!$talks): ?>
			<div class="col-xs-10 col-xs-offset-1">
				<div class="alert alert-warning" role="alert">
					<i class="fa fa-bug"></i>
					No ReLive-Talks avaiable, check your config!
				</div>
			</div>
		<? else: ?>
			<? foreach ($talks as $talk): ?>
				<? $url = ($talk['status'] == 'released') ? $talk['release_url'] : link_vod($talk['id']) ?>
				<div class="col-xs-12 recording">
					<div class="panel panel-default">
						<div class="panel-heading">

							<h3 class="panel-title">
								<a href="<?=h($url)?>">
									<?=h($talk['title'])?>
								</a>
							</h3>

						</div>
						<div class="panel-body">
							<a href="<?=h($url)?>">
								<img class="preview" alt="<?=h($talk['title'])?>" class="video-thumbnail" src="<?=h($talk['thumbnail'])?>" width="213" height="120" />
							</a>


							<ul class="metadata">
								<li>
									<span class="fa fa-clock-o"></span>
									<?=h(round($talk['duration']/60))?> min
								</li>
								<li>
									<span class="fa fa-cogs"></span>
									<?=h($talk['status'])?>
								</li>
								<li>
									<span class="fa fa-sign-in"></span>
									<?=h($talk['room'])?>
								</li>
							</ul>


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

</div>