public static function load() { //Define Theme depend to session define('THEME_PATH', MPATH_THEMES . Mcfg::get('theme')); //exit(THEME_PATH); $ajax = MReq::tg('ajax') == 1 ? 1 : 0; if ($ajax == 1) { //Excute app on ajax ajax::load(); } else { //Excute app on theme $theme_path = THEME_PATH; $theme = session::get('userid') == FALSE ? $theme_path . '/mainns.php' : $theme_path . '/main.php'; include $theme; } }
?> /css/ace-ie.css" /> <![endif]--> <!-- inline styles related to this page --> <!-- ace settings handler --> <script src="<?php echo THEME_PATH; ?> /js/ace-extra.js"></script> <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries --> <!--[if lte IE 8]> <script src="<?php echo THEME_PATH; ?> /js/html5shiv.js"></script> <script src="<?php echo THEME_PATH; ?> /js/respond.js"></script> <![endif]--> <link rel="<?php echo Mcfg::get('sys_titre'); ?> " href="img/favicon.ico">