streaming-website/template/allconferences.phtml

35 lines
841 B
PHTML
Raw Normal View History

2015-11-08 15:31:29 +00:00
<div class="container">
<h1><?=h($title)?></h1>
2017-10-28 14:37:00 +00:00
<p>We are currently covering multiple events. Please choose which one you want to access.</p>
2015-11-08 15:31:29 +00:00
<br><br>
<div class="row clearfix">
<? $count = count($conferences) ?>
<? foreach($conferences as $idx => $conference): ?>
2015-11-08 15:31:29 +00:00
<?
// 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
2015-12-23 12:56:52 +00:00
col-sm-6
2015-11-08 15:31:29 +00:00
col-md-<?=h($w)?>
">
<div class="panel panel-default">
<div class="panel-body">
<a href="<?=h($conference->getLink())?>"><?=h($conference->getTitle())?></a>
<p><?=h($conference->getDescription())?></p>
2015-11-08 15:31:29 +00:00
</div>
</div>
</div>
<? endforeach ?>
</div>
</div>