mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
XE 코드 고도화
1. 위젯/ 에디터컴포넌트의 코드 컴파일을 Context가 아닌 각 모듈이 trigger로 동작하게 개선 : 관리자 페이지에서 모듈 업데이트 필요 2. IE7에서 버튼 이미지가 어긋나는 문제 수정 3. 페이지 모듈의 캐싱 기능 추가 : 페이지 자체 캐시 가능하도록 함 4. 에디터에서 파일업로드시 파일 크기가 제대로 적용되지 않던 문제 수정 및 파일을 올리는 중에 남은 용량을 체크하여 미리 파일 업로드가 되지 않도록 함 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6103 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1ee64389ab
commit
32c3e86b1b
42 changed files with 838 additions and 810 deletions
|
|
@ -134,9 +134,8 @@
|
|||
function dispLayoutAdminPreview() {
|
||||
$layout_srl = Context::get('layout_srl');
|
||||
$code = Context::get('code');
|
||||
|
||||
$code_css = Context::get('code_css');
|
||||
if(!$layout_srl || !$code) return new Object(-1, 'msg_invalid_request');
|
||||
//$code = str_replace(array('<','>','"'), array('<','>','"'), $code);
|
||||
|
||||
// 레이아웃 정보 가져오기
|
||||
$oLayoutModel = &getModel('layout');
|
||||
|
|
@ -144,13 +143,10 @@
|
|||
if(!$layout_info) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
// faceoff 레이아웃일 경우 별도 처리
|
||||
if($layout_info && $layout_info->type == 'faceoff') {
|
||||
$oLayoutModel->doActivateFaceOff($layout_info);
|
||||
}
|
||||
if($layout_info && $layout_info->type == 'faceoff') $oLayoutModel->doActivateFaceOff($layout_info);
|
||||
|
||||
// 관리자 레이아웃 수정화면에서 변경된 CSS가 있는지 조사
|
||||
$edited_layout_css = $oLayoutModel->getUserLayoutCss($layout_srl);
|
||||
if(file_exists($edited_layout_css)) Context::addCSSFile($edited_layout_css);
|
||||
// 직접 입력된 CSS 적용
|
||||
Context::addHtmlHeader("<style type=\"text/css\" charset=\"UTF-8\">".$code_css."</style>");
|
||||
|
||||
// 레이아웃 정보중 extra_vars의 이름과 값을 $layout_info에 입력
|
||||
if($layout_info->extra_var_count) {
|
||||
|
|
@ -185,7 +181,6 @@
|
|||
|
||||
// 위젯등을 변환
|
||||
$oContext = &Context::getInstance();
|
||||
$layout_tpl = $oContext->transContent($layout_tpl);
|
||||
Context::set('layout_tpl', $layout_tpl);
|
||||
|
||||
// 임시 파일 삭제
|
||||
|
|
@ -215,9 +210,6 @@
|
|||
* @brief faceoff의 관리자 layout 수정
|
||||
**/
|
||||
function dispLayoutAdminLayoutModify(){
|
||||
// widget 을 수정용으로 컴파일
|
||||
Context::setTransWidgetCodeIncludeInfo(true);
|
||||
|
||||
//layout_srl 를 가져온다
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$layout_srl = $current_module_info->layout_srl;
|
||||
|
|
@ -257,6 +249,10 @@
|
|||
$oTemplate = &TemplateHandler::getInstance();
|
||||
Context::set('content', $oTemplate->compile($this->module_path.'tpl','about_faceoff'));
|
||||
|
||||
// 위젯 코드를 Javascript 수정모드로 변경
|
||||
$oWidgetController = &getController('widget');
|
||||
$oWidgetController->setWidgetCodeInJavascriptMode();
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('faceoff_layout_edit');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue