mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19623905 Context 클래스 정리
Context 클래스를 정리 내역 1. get / _get 등과 같이 class method와 instance method 로 분리되어있던 사용방법을 get 으로 통일 (class method로 호출할 경우 내부에서 singletone instance를 가져오도록 수정) 2. space4칸 -> tab 1칸으로 변경 3. 줄 시작/줄 끝 공백 제거 위 작업을 모두 실행한 후의 결과. 파일 용량이 57932 bytes 에서 37703 bytes 로 약 35% 정도 감소했습니다. Context 클래스의 변경에 따라 HTMLDisplayHandler에서 JS,CSS파일 추가하는 방법 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8189 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6217d679d3
commit
8b64a98058
2 changed files with 1288 additions and 1582 deletions
|
|
@ -136,20 +136,20 @@ class HTMLDisplayHandler {
|
|||
{
|
||||
$oContext =& Context::getInstance();
|
||||
// add common JS/CSS files
|
||||
$oContext->_addJsFile("./common/js/jquery.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/x.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/common.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/js_app.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/xml_handler.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/xml_js_filter.js", '', -100000);
|
||||
$oContext->_addCSSFile("./common/css/default.css", 'all', '', -100000);
|
||||
$oContext->_addCSSFile("./common/css/button.css", 'all', '', -100000);
|
||||
$oContext->addJsFile("./common/js/jquery.js", '', -100000);
|
||||
$oContext->addJsFile("./common/js/x.js", '', -100000);
|
||||
$oContext->addJsFile("./common/js/common.js", '', -100000);
|
||||
$oContext->addJsFile("./common/js/js_app.js", '', -100000);
|
||||
$oContext->addJsFile("./common/js/xml_handler.js", '', -100000);
|
||||
$oContext->addJsFile("./common/js/xml_js_filter.js", '', -100000);
|
||||
$oContext->addCSSFile("./common/css/default.css", 'all', '', -100000);
|
||||
$oContext->addCSSFile("./common/css/button.css", 'all', '', -100000);
|
||||
|
||||
// for admin page, add admin css
|
||||
if(Context::get('module')=='admin' || strpos(Context::get('act'),'Admin')>0){
|
||||
$oContext->_addCSSFile("./modules/admin/tpl/css/font.css", 'all', '',10000);
|
||||
$oContext->_addCSSFile("./modules/admin/tpl/css/pagination.css", 'all', '', 100001);
|
||||
$oContext->_addCSSFile("./modules/admin/tpl/css/admin.css", 'all', '', 100002);
|
||||
$oContext->addCSSFile("./modules/admin/tpl/css/font.css", 'all', '',10000);
|
||||
$oContext->addCSSFile("./modules/admin/tpl/css/pagination.css", 'all', '', 100001);
|
||||
$oContext->addCSSFile("./modules/admin/tpl/css/admin.css", 'all', '', 100002);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue