mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1323 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0eca3f3575
commit
eb4e93063a
5 changed files with 27 additions and 26 deletions
|
|
@ -27,7 +27,6 @@
|
|||
$oModuleController->insertActionForward('blog', 'view', 'dispBlogAdminCategoryInfo');
|
||||
$oModuleController->insertActionForward('blog', 'view', 'dispBlogAdminMenuInfo');
|
||||
$oModuleController->insertActionForward('blog', 'view', 'dispBlogAdminGrantInfo');
|
||||
$oModuleController->insertActionForward('blog', 'view', 'dispBlogAdminLayoutSetup');
|
||||
$oModuleController->insertActionForward('blog', 'controller', 'procBlogAdminUpdateSkinInfo');
|
||||
|
||||
// 캐쉬로 사용할 디렉토리 생성
|
||||
|
|
|
|||
|
|
@ -62,16 +62,6 @@
|
|||
$this->list_count = $this->module_info->list_count?$this->module_info->list_count:1;
|
||||
$this->page_count = $this->module_info->page_count?$this->module_info->page_count:10;
|
||||
|
||||
// 스킨 경로 구함
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
|
||||
// 레이아웃 경로와 파일 지정 (블로그는 자체 레이아웃을 가지고 있음)
|
||||
$this->setLayoutPath($template_path);
|
||||
$this->setLayoutFile("layout");
|
||||
|
||||
// 템플릿 지정
|
||||
$this->setTemplatePath($template_path);
|
||||
|
||||
// 카테고리 목록을 가져오고 선택된 카테고리의 값을 설정
|
||||
$oDocumentModel = &getModel('document');
|
||||
$this->category_list = $oDocumentModel->getCategoryList($this->module_srl);
|
||||
|
|
@ -84,6 +74,25 @@
|
|||
Context::set('zbxe_url', sprintf("mid=%s&category=%d", $this->module_info->mid, $this->category_srl));
|
||||
}
|
||||
|
||||
// 스킨 경로 구함
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
$this->setTemplatePath($template_path);
|
||||
|
||||
// rss url
|
||||
if($this->module_info->open_rss != 'N') Context::set('rss_url', getUrl('','mid',$this->mid,'act','dispRss'));
|
||||
|
||||
/**
|
||||
* 블로그는 자체 레이아웃을 관리하기에 이와 관련된 세팅을 해줌
|
||||
**/
|
||||
/*
|
||||
// 레이아웃 경로와 파일 지정 (블로그는 자체 레이아웃을 가지고 있음)
|
||||
$this->setLayoutPath($template_path);
|
||||
$this->setLayoutFile("layout");
|
||||
|
||||
// 수정된 레이아웃 파일이 있으면 지정
|
||||
$edited_layout = sprintf('./files/cache/layout/%d.html', $this->module_info->module_srl);
|
||||
if(file_exists($edited_layout)) $this->setEditedLayoutFile($edited_layout);
|
||||
|
||||
// 카테고리 xml 파일 위치 지정
|
||||
$this->module_info->category_xml_file = sprintf('./files/cache/blog_category/%d.xml.php', $this->module_info->module_srl);
|
||||
|
||||
|
|
@ -99,12 +108,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
// 모듈정보와 레이아웃에서 사용하기 위한 레이아웃 정보를 세팅
|
||||
Context::set('module_info',$this->module_info);
|
||||
// layout_info 변수 설정
|
||||
Context::set('layout_info',$this->module_info);
|
||||
*/
|
||||
|
||||
// rss url
|
||||
if($this->module_info->open_rss != 'N') Context::set('rss_url', getUrl('','mid',$this->mid,'act','dispRss'));
|
||||
// 모듈정보 세팅
|
||||
Context::set('module_info',$this->module_info);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -550,12 +559,5 @@
|
|||
|
||||
$this->setTemplateFile('grant_list');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 플러그인 설정
|
||||
**/
|
||||
function dispBlogAdminLayoutSetup() {
|
||||
$this->setTemplateFile('layout_setup');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
<action name="dispBlogAdminCategoryInfo" type="view" standalone="true" />
|
||||
<action name="dispBlogAdminSkinInfo" type="view" standalone="true" />
|
||||
<action name="dispBlogAdminGrantInfo" type="view" standalone="true" />
|
||||
<action name="dispBlogAdminPluginSetup" type="view" standalone="true" />
|
||||
|
||||
<action name="procBlogAdminInsertGrant" type="controller" standalone="true" />
|
||||
<action name="procBlogAdminUpdateSkinInfo" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -12,8 +12,9 @@
|
|||
$lang->cmd_manage_menu = '메뉴관리';
|
||||
$lang->cmd_make_child = '하위 카테고리 추가';
|
||||
$lang->cmd_enable_move_category = "카테고리 위치 변경 (선택후 위 메뉴를 드래그하세요)";
|
||||
$lang->cmd_remake_cache = "캐시파일 재생성";
|
||||
$lang->cmd_layout_setup = "레이아웃 설정";
|
||||
$lang->cmd_remake_cache = '캐시파일 재생성';
|
||||
$lang->cmd_layout_setup = '레이아웃 설정';
|
||||
$lang->cmd_layout_edit = '레이아웃 편집';
|
||||
|
||||
// 항목
|
||||
$lang->parent_category_name = '상위 카테고리명';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
'dispBlogAdminCategoryInfo'=>$lang->cmd_manage_category,
|
||||
'dispBlogAdminGrantInfo'=>$lang->cmd_manage_grant,
|
||||
'dispBlogAdminSkinInfo'=>$lang->cmd_manage_skin,
|
||||
'dispBlogAdminLayoutSetup'=>$lang->cmd_layout_setup,
|
||||
'dispLayoutAdminEdit'=>$lang->cmd_layout_edit,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue