aboutsummaryrefslogtreecommitdiff
path: root/pages/relive.php
blob: 4f495cac9a21f9368d4415f0826e4656f27bbd8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

require_once('lib/bootstrap.php');

$talks = file_get_contents('http://vod.c3voc.de/relive/index.json');
$talks = utf8_decode($talks);
$talks = json_decode($talks, true);

usort($talks, function($a, $b) {
	$sort = array('live', 'recorded', 'released');
	return array_search($a['status'], $sort) > array_search($b['status'], $sort);
});

echo $tpl->render(array(
	'page' => 'relive',
	'title' => 'Relive!',
	'talks' => $talks,
));