mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Modify administrative interface style. Add a selected language indicator
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8698 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c9203dc356
commit
4ead81754f
7 changed files with 33 additions and 22 deletions
|
|
@ -157,7 +157,9 @@ class HTMLDisplayHandler {
|
|||
|
||||
function _loadJSCSS()
|
||||
{
|
||||
$oContext =& Context::getInstance();
|
||||
$oContext =& Context::getInstance();
|
||||
$lang_type = Context::getLangType();
|
||||
|
||||
// add common JS/CSS files
|
||||
if(__DEBUG__) {
|
||||
$oContext->addJsFile('./common/js/jquery.js', false, '', -100000);
|
||||
|
|
@ -179,9 +181,11 @@ class HTMLDisplayHandler {
|
|||
if(Context::get('module')=='admin' || strpos(Context::get('act'),'Admin')>0){
|
||||
if(__DEBUG__) {
|
||||
$oContext->addCSSFile('./modules/admin/tpl/css/admin.css', false, 'all', '', 100000);
|
||||
$oContext->addCSSFile("./modules/admin/tpl/css/admin_{$lang_type}.css", false, 'all', '', 100000);
|
||||
$oContext->addJsFile('./modules/admin/tpl/js/admin.js');
|
||||
} else {
|
||||
$oContext->addCSSFile('./modules/admin/tpl/css/admin.min.css', false, 'all', '',10000);
|
||||
$oContext->addCSSFile('./modules/admin/tpl/css/admin.min.css', false, 'all', '', 100000);
|
||||
$oContext->addCSSFile("./modules/admin/tpl/css/admin_{$lang_type}.min.css", false, 'all', '',10000);
|
||||
$oContext->addJsFile('./modules/admin/tpl/js/admin.js');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue