aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/recordings.phtml
diff options
context:
space:
mode:
authorFlorian Larysch2015-09-02 12:56:32 +0200
committerFlorian Larysch2015-09-02 14:31:39 +0200
commit7a5c8ff018936ed7328042c88a2edae3c29d91be (patch)
tree23efc9fdb4e3c8fd1c44cc49a3f30be0a6ed1987 /template/assemblies/recordings.phtml
parent502371650e4e1fe99ec382104e2eba945925a459 (diff)
Automatically open/close conference based on time.
Toggle the 'closed' bit based on the current time, rather than manually setting it in the config. This patch also adds a distinction between the time before the conference and after: Different pages will be displayed as to not confuse the user.
Diffstat (limited to 'template/assemblies/recordings.phtml')
-rw-r--r--template/assemblies/recordings.phtml41
1 files changed, 41 insertions, 0 deletions
diff --git a/template/assemblies/recordings.phtml b/template/assemblies/recordings.phtml
new file mode 100644
index 0000000..71b7866
--- /dev/null
+++ b/template/assemblies/recordings.phtml
@@ -0,0 +1,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 ?>