diff options
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/header.phtml | 2 | ||||
-rw-r--r-- | template/assemblies/recordings.phtml | 41 | ||||
-rw-r--r-- | template/not_started.phtml | 3 |
3 files changed, 45 insertions, 1 deletions
diff --git a/template/assemblies/header.phtml b/template/assemblies/header.phtml index 68f4b6d..f57054c 100644 --- a/template/assemblies/header.phtml +++ b/template/assemblies/header.phtml @@ -15,7 +15,7 @@ </a> <? endif ?> - <? if(!$conference->isClosed() && $feedback->isEnabled()): ?> + <? if(!$conference->hasEnded() && $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/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 ?> diff --git a/template/not_started.phtml b/template/not_started.phtml new file mode 100644 index 0000000..a434f02 --- /dev/null +++ b/template/not_started.phtml @@ -0,0 +1,3 @@ +<div class="container about"> + <h1><?=h($conference->getTitle())?> has not started yet!</h1> +</div> |