diff options
author | MaZderMind | 2015-11-08 20:36:34 +0100 |
---|---|---|
committer | MaZderMind | 2015-11-08 20:36:34 +0100 |
commit | 61c9cf52b0c015951351b47148cdecb47c680bfa (patch) | |
tree | 29caf16cbbbd2b7fb408ddecd7e787fc711e77c5 /index.php | |
parent | 25ebd325dbde526d97c25abb2f905b3bb5920e19 (diff) |
global streams api
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -29,13 +29,21 @@ try { $route = @$_GET['route']; $route = rtrim($route, '/'); - // GLOBAL CSS (for conferences overview) + // GLOBAL ROUTES if($route == 'gen/main.css') { + // global css (for conferences overview) handle_lesscss_request('assets/css/main.less', '../assets/css/'); exit; } + else if($route == 'streams/v1.json') + { + require('view/streams-json-v1.php'); + exit; + } + + // generic template $tpl = new PhpTemplate('template/page.phtml'); $tpl->set(array( @@ -136,11 +144,6 @@ try { require('view/schedule-json.php'); } - else if($route == 'streams/v1.json') - { - require('view/streams-json-v1.php'); - } - else if($route == 'gen/main.css') { if(Conferences::hasCustomStyles($mandator)) |