getGroups() as $group => $rooms): ?>

getSlug() ]; return isset($upcoming['next']); }); */ $count = count($rooms); $idx = 0; usort($rooms, function ($r_a, $r_b) { global $upcomingTalksPerRoom; $u_a = $upcomingTalksPerRoom[ $r_a->getSlug() ]; $a = @$u_a['current'] && !@$u_a['current']['special'] ? $u_a['current'] : $u_a['next']; $u_b = $upcomingTalksPerRoom[ $r_b->getSlug() ]; $b = @$u_b['current'] && !@$u_b['current']['special'] ? $u_b['current'] : $u_b['next']; // sort rooms without remaining schedule to end if ( $u_a['next'] === null || $u_b['next'] === null) { return -($u_a['next'] <=> $u_b['next']); } return @$a['start'] <=> @$b['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)) { $is_wide = 1; } elseif ($room->requestsWide()) { $is_wide = 1; $count++; /* Increase the index if we are using a whole line, this means when the room is * an even entry. Odd entries on the other hand steal one index from the * "previous" row which they originally belong to. */ if ($idx % 2 != 1) { $idx++; } } ?>
hasReleases() || $conference->hasRelive()): ?> hasReleases() && $conference->hasRelive()) ? // both enabled 'col-sm-6 col-xs-12' : // only one of both enabled 'col-xs-12'; ?>

Recordings

hasReleases()): ?> hasRelive()): ?>