aboutsummaryrefslogtreecommitdiff
path: root/view/overview.php
blob: fb9d15d096706056bd8367ec4943175302a7adbb (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 = $schedule->getScheduleDisplayTime();
$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,
));