diff options
author | MaZderMind | 2015-04-06 15:03:38 +0200 |
---|---|---|
committer | MaZderMind | 2015-04-06 15:03:38 +0200 |
commit | fd374f8b627bde637112cd90aee92e5c84301bbf (patch) | |
tree | c6b95970abaf8baadf3a5472cc1a8b7ee128da21 /template | |
parent | c7c528ba8787acbdc4ba84d71cf6c4e502e57e68 (diff) |
Show all upcoming Events in closed View
Diffstat (limited to '')
-rw-r--r-- | template/closed.phtml | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/template/closed.phtml b/template/closed.phtml index 6b41f29..6cb86c4 100644 --- a/template/closed.phtml +++ b/template/closed.phtml @@ -1,25 +1,35 @@ <div class="container about"> <h1><?=h($conference->getTitle())?> is over!</h1> - <? if($upcoming): ?> - <h2>See you soon at <?=h($upcoming['name'])?></h2> + <? if($next): ?> + <h2>See you soon at <?=h($next['name'])?></h2> <? endif ?> <p> - Lecture recording and streaming at <strong><?=h($conference->getTitle())?></strong> was organized and performed by the <a href="http://c3voc.de">Chaos Computer Club Video Operation Center</a>. The next Event we'll attend will be + Lecture recording and streaming at <strong><?=h($conference->getTitle())?></strong> was organized and performed by the <a href="http://c3voc.de">Chaos Computer Club Video Operation Center</a>. The next Events we'll attend will be </p> <br><br><br> - <div class="col-xs-10 col-xs-offset-1 col-md-6 col-md-offset-3"> + <? foreach($events as $event): ?> + <div class="col-xs-10 col-xs-offset-1 col-md-6 col-md-offset-3"> - <div class="panel panel-default"> - <div class="panel-heading"><?=h($upcoming['name'])?></div> - <div class="panel-body"> - <?=h($upcoming['location'])?><br /> - <?=h($upcoming['start_date'])?> – <?=h($upcoming['end_date'])?> + <div class="panel panel-default"> + <div class="panel-heading"> + <? if($event['description']): ?> + <a href="<?=h($event['description'])?>"> + <?=h($event['name'])?> + </a> + <? else: ?> + <?=h($event['name'])?> + <? endif ?> + </div> + <div class="panel-body"> + <?=h($event['location'])?><br /> + <?=h($event['start_date'])?> – <?=h($event['end_date'])?> + </div> </div> - </div> - </div> + </div> + <? endforeach ?> </div> |