aboutsummaryrefslogtreecommitdiff
path: root/template/allconferences.phtml
blob: e1fb5e30ef6ab72f8fb3898267d0844f5089c7c7 (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
<div class="container">
	<h1><?=h($title)?></h1>
	<p>We are currently active on multiple Conferences. Please choose which one you want access.</p>

	<br><br>

	<div class="row clearfix">
		<? $count = count($conferences) ?>
		<? foreach($conferences as $idx => $info): ?>
			<?
				// when we have more then 3 conferences, all but the last 3 will be displayed with 1/3 width
				if($count - $idx <= ($count % 3))
					$w = 12/($count%3);
				else
					$w = 12/3;
			?>

			<div class="
				clearfix
				conference
				col-xs-12
				col-sm-6
				col-md-<?=h($w)?>
			">
				<div class="panel panel-default">
					<div class="panel-body">
						<a href="<?=h($info['link'])?>"><?=h($info['title'])?></a>
						<p><?=h($info['description'])?></p>
					</div>
				</div>
			</div>
		<? endforeach ?>
	</div>
</div>