카테고리 정보 불러오기
<pre> {print_r($category_list)} </pre>
[399342] => stdClass Object
(
[mid] => eondFlea
[module_srl] => 399192
[category_srl] => 399342
[parent_srl] => 399218
[text] => 프로그래밍
[title] => 프로그래밍
[description] =>
[expand] =>
[color] =>
[document_count] => 1
[depth] => 2
[child_count] => 0
[childs] => Array
(
)
[grant] => 1
[selected] =>
[first] => 1
[last] => 1
)
<!--@if(!$category)--> <li class="cat_parent">전체</li> <li loop="$cate_list=>$key,$val" class="cat_sub1"> <a href="{getUrl(category,$val->category_srl,'document_srl','', 'page', '', 'act', '')}"> <i class=" xe-angle-right" cond="$category_list[$category]->parent_srl"></i> {$val->title} <span class="fr cat_cnt">{$val->document_count}</span> </a> </li> <!--@elseif($category_list[$category]->parent_srl=='0')--> <li class="cat_parent"> <a href="{getUrl(category,$category,'document_srl','', 'page', '', 'act', '')}">{$category_list[$category]->text}</a> </li> <block loop="$cate_list=>$key,$val"> <li loop="$val->children=>$idx,$item" class="cat_sub1asdfasdf" cond="$category==$item->parent_srl"> <a href="{getUrl(category,$item->category_srl,'document_srl','', 'page', '', 'act', '')}"><i class=" xe-angle-right" cond="$category_list[$category]->parent_srl"></i> {$item->title} <span class="fr cat_cnt">{$item->document_count}</span> </a> </li> </block> <!--@else--> <li class="cat_parent"> <a href="{getUrl(category,$category_list[$category]->parent_srl,'document_srl','', 'page', '', 'act', '')}">{$category_list[$category_list[$category]->parent_srl]->title}</a> </li> <li class="cat_sub2"> <a href="{getUrl(category,$item->category_srl,'document_srl','', 'page', '', 'act', '')}"><i class=" xe-angle-right" cond="$category_list[$category]->parent_srl"></i> {$category_list[$category]->title} <span class="fr cat_cnt">{$category_list[$category]->document_count}</span> </a> </li> <!--@end-->