From 26d9ab154c7bd55adbafbe85f4998fb8de867407 Mon Sep 17 00:00:00 2001 From: Andreas Hubel Date: Mon, 27 Dec 2021 05:16:36 +0100 Subject: [PATCH] order rooms in overview page by time of next talk --- template/overview.phtml | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/template/overview.phtml b/template/overview.phtml index d2f3c209..3fd03354 100644 --- a/template/overview.phtml +++ b/template/overview.phtml @@ -11,9 +11,19 @@
- - - getSlug() ]['next']['start'] + <=> + $upcomingTalksPerRoom[ $b->getSlug() ]['next']['start'] + ); + }); + + foreach($rooms as $room): $is_wide = 0; /* when the count is odd and this is the last item - make it full width */ if (($count % 2 == 1) && ($idx == $count - 1)) { @@ -77,18 +87,22 @@ - hasSchedule()): ?> - getSlug() ] ?: [] ?> + hasSchedule()): + $upcoming = @$upcomingTalksPerRoom[ $room->getSlug() ] ?: []; + $current = @$upcoming['current']; + $next = @$upcoming['next']; ?>
-
- Now (since ):
- + +
+ Now (since ):
+
- -
- Next Talk ():
- + +
+ Next Talk ():
+
+