blob: dadabf63709ab208f5e350df2593a18f00062b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?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,
'relive' => true,
));
|