<div class="cnb_n_list" style="display:none;"> <style> .cnb_n_list .cTab li ul{display:none;} .cnb_n_list .cTab li.on ul{display:block;} </style> {@ $cate_list = array(); $current_key = null; } <!--@foreach($category_list as $key=>$val)--> <!--@if(!$val->depth)--> {@ $cate_list[$key] = $val; $cate_list[$key]->children = array(); $current_key = $key; } <!--@elseif($current_key)--> {@ $cate_list[$current_key]->children[] = $val } <!--@end--> <!--@end--> <ul class="cTab clear"> <li class="home<!--@if(!$category)--> on<!--@end-->"><a href="{getUrl('category','','page','','document_srl','')}" title="{$lang->document_count} {number_format($total_count)}">{$lang->total}<small cond="$mi->cnb_count">({number_format($total_count)})</small></a></li> <li loop="$cate_list=>$key,$val" class="on"|cond="$category==$val->category_srl"> <a href="{getUrl(category,$val->category_srl,'document_srl','','page','')}" style="color:{$val->color}"|cond="$val->color!='transparent'">{$val->title}<small cond="$mi->cnb_count">({$val->document_count})</small></a> <ul cond="count($val->children)"> <li loop="$val->children=>$idx,$item" class="on"|cond="$category==$item->category_srl"><a href="{getUrl(category,$item->category_srl,'document_srl','','page','')}" style="color:{$item->color}"|cond="$item->color!='transparent'">{$item->title}</a></li> </ul> </li> </ul> </div> <div class="category-box" cond="$category_list && !$search_keyword" style="display:none;"> <div class="cat-root"> <!-- <a href="{getUrl('','mid',$mid,'category','','page','','document_srl','')}" class="on"|cond="!$category">전체 {$total_count} </a>--> <!--@foreach($category_list as $val)--> <a href="{getUrl('category',$val->category_srl,'page','','document_srl','')}" class="on"|cond="$val->selected" cond="$val->depth==0">{$val->title} {$count}{$val->category_srl} / 깊이{$val->depth}/ 부모:{$val->parent_srl}</a> <!--@endforeach--> </div> <div class="cat-sub" style="display:flex;"> <!-- $val->parent_srl==$category cond="$val->category_srl == $val->parent_srl" --> <!--@foreach($category_list as $val)--> <div style="padding: 1rem;display:flex;"><div style="flex:1;"><pre>{implode(',',$val->childs)}</pre></div></div> <a href="{getUrl('category',$val->category_srl,'page','','document_srl','')}" class="on"|cond="$val->selected" cond="$val->depth!==0">#{$val->title} {$count}{$val->category_srl} / 깊이{$val->depth} / 부모:{$val->parent_srl}</a> <!--@endforeach--> </div> </div> <div class="cate"> {@ $_cdepth = 0;} <block loop="$category_list => $key, $val"> <block cond="$_cdepth > $val->depth">{@ $_cdepth = $val->depth}</block> <block cond="$val->expand"><a href="{getUrl('category',$val->category_srl, 'document_srl', '')}">{$val->text}</a> > </block> <block cond="$val->category_srl==$oDocument->get('category_srl')"><a href="{getUrl('category',$val->category_srl, 'document_srl', '')}">{$val->text}</a></block> <block cond="$val->child_count">{@$_cdepth++}</block> </block> </div>
관련글
https://opentutorials.org/module/3774/24591
제목 | 날짜 | |
---|---|---|
본 게시판의 용도 | 2024/06/11 | |
106 | [XE] xe1 으로 아니면 xe3로 하는게 나을까요? [2] | 2020/05/12 |
105 | [XE] XEtown에 있는 지금 이 순간 구현하는 방법.. | 2020/05/02 |
104 | [XE] XE 최근게시물 갤러리 위젯 | 2020/05/02 |
103 | [XE] 크롤링 오류 | 2020/04/10 |
102 | [기타] 다음 지도 | 2020/03/28 |
101 | [XE] target_module 값은 필수입니다. [1] | 2020/02/20 |
100 | [XE] 학습도구 사이트 견적가가 얼마정도 할까요? [1] | 2019/12/19 |
99 | [XE] 입금확인부탁드립니다. [1] | 2019/01/29 |
98 | [XE] 이온디님~ [3] | 2018/05/06 |
97 | [XE] 문의드립니다 ! [2] | 2018/04/03 |
96 | [XE] 이온디루팡 로그인 애드온 관련문의! (첨부된 이미지 꼭 봐주세요) [2] | 2018/03/30 |
95 | [XE] 로그인 애드온 작동이 안됩니다. [3] | 2018/03/14 |