aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2015-11-08 20:36:34 +0100
committerMaZderMind2015-11-08 20:36:34 +0100
commit61c9cf52b0c015951351b47148cdecb47c680bfa (patch)
tree29caf16cbbbd2b7fb408ddecd7e787fc711e77c5 /index.php
parent25ebd325dbde526d97c25abb2f905b3bb5920e19 (diff)
global streams api
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/index.php b/index.php
index b7fe5da..c3199ee 100644
--- a/index.php
+++ b/index.php
@@ -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))