From 7a5c8ff018936ed7328042c88a2edae3c29d91be Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Wed, 2 Sep 2015 12:56:32 +0200 Subject: 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. --- template/assemblies/header.phtml | 2 +- template/assemblies/recordings.phtml | 41 ++++++++++++++++++++++++++++++++++++ template/not_started.phtml | 3 +++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 template/assemblies/recordings.phtml create mode 100644 template/not_started.phtml (limited to 'template') 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 @@ endif ?> - if(!$conference->isClosed() && $feedback->isEnabled()): ?> + if(!$conference->hasEnded() && $feedback->isEnabled()): ?> 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'; + ?> +