blob: adc8d5f47205b060d98bb7c98ac3220299b8be0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
$schedule = $conference->getSchedule();
$talksPerRoom = $schedule->getSchedule();
$now = time() + $schedule->getSimulationOffset();
$upcomingTalksPerRoom = array_map(function($talks) use($now) {
return [
'current' => array_filter_last($talks, function($talk) use ($now) {
return $talk['start'] < $now && $talk['end'] > $now;
}),
'next' => array_filter_first($talks, function($talk) use ($now) {
return !isset($talk['special']) && $talk['start'] > $now;
}),
];
}, $talksPerRoom);
echo $tpl->render(array(
'page' => 'overview',
'title' => 'Live-Streams',
'overview' => $conference->getOverview(),
'upcomingTalksPerRoom' => $upcomingTalksPerRoom,
));
|