<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 | |
10 | 누리고 배송주소 신규등록후 발생하는 오류 | 2024/07/07 |
9 | [XE] 누리고 주문결제시 발생하는 오류 | 2024/07/07 |
8 | [XE] 누리고 결제 완료 후 발생하는 오류 | 2024/07/07 |
7 | [XE] 누리고 결제 완료 후 발생하는 오류2 [1] | 2024/07/07 |
6 | [XE] 누리고 결제 완료 후 발생하는 오류3 [1] | 2024/07/07 |
5 | [XE] 글작성시 발생하는 오류 [1] | 2024/07/11 |
4 | [XE] procFilter() 함수 교체하는 방법... [1] | 2024/08/21 |
3 | [XE] 임마뉴얼 글 중복 등록 오류 [2] | 2024/08/29 |
2 | [XE] 인기검색어 모듈+애드온+위젯 패키지 (PHP8수정버전) 문의 드립니다 [1] | 2025/01/06 |
1 | updateDocumentsSecret | 2025/01/30 |