aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/assemblies/header.phtml2
-rw-r--r--template/assemblies/upcoming.phtml21
2 files changed, 22 insertions, 1 deletions
diff --git a/template/assemblies/header.phtml b/template/assemblies/header.phtml
index f57054c..a213dd3 100644
--- a/template/assemblies/header.phtml
+++ b/template/assemblies/header.phtml
@@ -15,7 +15,7 @@
</a>
<? endif ?>
- <? if(!$conference->hasEnded() && $feedback->isEnabled()): ?>
+ <? if(!$conference->hasEnded() && isset($feedback) && $feedback->isEnabled()): ?>
<a class="form-control btn btn-default" href="<?=h($feedback->getUrl())?>">
<span class="fa fa-bullhorn"></span>
</a>
diff --git a/template/assemblies/upcoming.phtml b/template/assemblies/upcoming.phtml
new file mode 100644
index 0000000..7d9ffac
--- /dev/null
+++ b/template/assemblies/upcoming.phtml
@@ -0,0 +1,21 @@
+<? 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">
+ <? 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>
+<? endforeach ?>