mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
change cdn feature
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9017 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b45522cdc4
commit
8062daecf3
5 changed files with 59 additions and 35 deletions
|
|
@ -162,30 +162,30 @@ class HTMLDisplayHandler {
|
|||
|
||||
// add common JS/CSS files
|
||||
if(__DEBUG__) {
|
||||
$oContext->loadFile(array('./common/js/jquery.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/x.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/common.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/js_app.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/xml_handler.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/xml_js_filter.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/css/xe.css', 'all', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/jquery.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/x.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/common.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/js_app.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/xml_handler.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/xml_js_filter.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/css/xe.css', 'all', '', -100000), true);
|
||||
} else {
|
||||
$oContext->loadFile(array('./common/js/jquery.min.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/x.min.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/xe.min.js', 'head', '', -100000));
|
||||
$oContext->loadFile(array('./common/css/xe.min.css', 'all', '', -100000));
|
||||
$oContext->loadFile(array('./common/js/jquery.min.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/x.min.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/js/xe.min.js', 'head', '', -100000), true);
|
||||
$oContext->loadFile(array('./common/css/xe.min.css', 'all', '', -100000), true);
|
||||
}
|
||||
|
||||
// for admin page, add admin css
|
||||
if(Context::get('module')=='admin' || strpos(Context::get('act'),'Admin')>0){
|
||||
if(__DEBUG__) {
|
||||
$oContext->loadFile(array('./modules/admin/tpl/css/admin.css', 'all', '', 100000));
|
||||
$oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.css", 'all', '', 100000));
|
||||
$oContext->loadFile('./modules/admin/tpl/js/admin.js');
|
||||
$oContext->loadFile(array('./modules/admin/tpl/css/admin.css', 'all', '', 100000), true);
|
||||
$oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.css", 'all', '', 100000), true);
|
||||
$oContext->loadFile('./modules/admin/tpl/js/admin.js', true);
|
||||
} else {
|
||||
$oContext->loadFile(array('./modules/admin/tpl/css/admin.min.css', 'all', '', 100000));
|
||||
$oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.min.css", 'all', '',10000));
|
||||
$oContext->loadFile('./modules/admin/tpl/js/admin.js');
|
||||
$oContext->loadFile(array('./modules/admin/tpl/css/admin.min.css', 'all', '', 100000), true);
|
||||
$oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.min.css", 'all', '',10000), true);
|
||||
$oContext->loadFile('./modules/admin/tpl/js/admin.js', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue