blob: 362af346666dcb1020b4a211addf98f54fe21bfa (
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(get('OVERVIEW.RELIVE_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,
));
|