mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1585 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7441412096
commit
e336df77c1
18 changed files with 55 additions and 42 deletions
|
|
@ -25,13 +25,6 @@
|
|||
$this->category_list = $oDocumentModel->getCategoryList($this->module_srl);
|
||||
Context::set('category_list', $this->category_list);
|
||||
|
||||
// 선택된 카테고리 목록이 있으면 zbxe_url을 변경하여 트리메뉴에서 카테고리까지 참조할 수 있도록 함
|
||||
$category_srl = Context::get('category');
|
||||
if($this->category_list[$category_srl]) {
|
||||
$this->category_srl = $category_srl;
|
||||
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->module_info->skin);
|
||||
$this->setTemplatePath($template_path);
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ function blogDrawNode(parent_node) {
|
|||
var text = node.getAttribute("text");
|
||||
var url = node.getAttribute("url");
|
||||
var expand = node.getAttribute("expand");
|
||||
|
||||
if(!text) continue;
|
||||
|
||||
// 자식 노드가 있는지 확인
|
||||
|
|
@ -132,8 +131,9 @@ function blogDrawNode(parent_node) {
|
|||
// zone_id 값을 세팅
|
||||
var zone_id = "blog_category_"+node_srl;
|
||||
blog_tree_menu_folder_list[blog_tree_menu_folder_list.length] = zone_id;
|
||||
|
||||
if(url && typeof(zbxe_url)!="undefined" && ( url.substr(url.length-zbxe_url.length, url.length) == zbxe_url)) {
|
||||
|
||||
var current_category = current_url.getQuery('category');
|
||||
if(current_category == node_srl) {
|
||||
selected = true;
|
||||
blog_menu_selected = true;
|
||||
}
|
||||
|
|
@ -221,7 +221,7 @@ function blogDrawNode(parent_node) {
|
|||
// 왼쪽 폴더/페이지와 텍스트 위치를 맞추기 위해;;; table태그 일단 사용. 차후 바꾸자..
|
||||
html += '<div id="'+zone_id+'" class="node_item">'+
|
||||
'<div id="'+zone_id+'_line" class="'+line_class+'">'+
|
||||
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="20"><img src="./common/tpl/images/blank.gif" width="18" height="18" alt="" id="'+zone_id+'_folder" '+click_str+' /></td>'+
|
||||
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="20"><img src="'+request_uri+'/common/tpl/images/blank.gif" width="18" height="18" alt="" id="'+zone_id+'_folder" '+click_str+' /></td>'+
|
||||
'<td><a href="#" id="'+zone_id+'_node" class="'+text_class+'" onclick="blogSelectNode(\''+url+'\');return false;">'+text+'</a>'+document_count_text+'</td></tr></table>'+
|
||||
'</div>';
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<!-- 블로그 카테고리를 js/blog_tree_menu.js를 이용해서 표시 -->
|
||||
<script type="text/javascript">
|
||||
blogLoadTreeMenu("./files/cache/blog_category/{$layout_info->layout_srl}.xml.php", "{$layout_info->category_name?$layout_info->category_name:'category'}", "./?mid={$layout_info->mid}");
|
||||
blogLoadTreeMenu("{getUrl()}/files/cache/blog_category/{$layout_info->layout_srl}.xml.php", "{$layout_info->category_name?$layout_info->category_name:'category'}", "{getUrl('','mid',$mid)}");
|
||||
</script>
|
||||
|
||||
|
||||
|
|
@ -58,7 +58,6 @@
|
|||
<!-- top_menu 시작 -->
|
||||
|
||||
<!--@foreach($top_menu->list as $key => $val)--><!--@if($val['text'])-->
|
||||
|
||||
<!--@if($val['selected'])-->
|
||||
{@ $class_name = 'first_menu_selected'}
|
||||
<!--@else-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue