aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/recordings.phtml
blob: 71b78668cb8cd495587f026544686b734d667ecd (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
<? if($conference->hasReleases() || $conference->hasRelive()): ?>
	<?
		$class = ($conference->hasReleases() && $conference->hasRelive()) ?
			// both enabled
			'col-sm-6 col-xs-12' :

			// only one of both enabled
			'col-xs-12';
	?>
	<div class="row recordings">

		<div class="col-xs-12">
			<h2>Recordings</h2>
		</div>

		<? if($conference->hasReleases()): ?>
			<div class="<?=h($class)?>">
				<div class="panel panel-primary">
					<div class="panel-body">
						<a href="<?=h($conference->getReleasesUrl())?>">
							<span class="fa fa-video-camera"></span> Releases
						</a>
					</div>
				</div>
			</div>
		<? endif ?>

		<? if($conference->hasRelive()): ?>
			<div class="<?=h($class)?>">
				<div class="panel panel-primary">
					<div class="panel-body">
						<a href="<?=h($conference->getReliveUrl())?>">
							<span class="fa fa-play-circle"></span> ReLive
						</a>
					</div>
				</div>
			</div>
		<? endif ?>

	</div>
<? endif ?>