aboutsummaryrefslogtreecommitdiff
path: root/view/overview.php
blob: e5032c4328e38f5e64318ccd21b918f8932eaff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

$schedule = $conference->getSchedule();

$now = time() + $schedule->getSimulationOffset();
$upcomingTalksPerRoom = [];
foreach ($conference->getRooms() as $room) {
	$upcomingTalksPerRoom[$room->getSlug()] = [
		'current' => $room->getCurrentTalk($now),
		'next' => $room->getNextTalk($now),
	];
};

echo $tpl->render(array(
	'page' => 'overview',
	'title' => 'Live-Streams',

	'overview' => $conference->getOverview(),

	'upcomingTalksPerRoom' => $upcomingTalksPerRoom,
));