글 개수에 CSS 클래스 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6390 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2009-05-25 08:35:57 +00:00
parent 159e29f59f
commit a72e94f11c

View file

@ -1,40 +1,40 @@
<!--%import("js/category.js")--> <!--%import("js/category.js")-->
{@ $_pDepth = 0;} {@ $_pDepth = 0;}
<!--@if($colorset == "black" || $colorset == "white")--> <!--@if($colorset == "black" || $colorset == "white")-->
<!--%import("./css/widget.css")--> <!--%import("./css/widget.css")-->
<!--@end--> <!--@end-->
<div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->"> <div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->">
<div class="widgetTree"> <div class="widgetTree">
<a href="{getSiteUrl($widget_info->domain,'','mid',$widget_info->module_info->mid?$widget_info->module_info->mid:$layout_info->target_mid)}" class="title <!--@if(!$category)-->strong<!--@end-->"><!--@if($widget_info->total_title)-->{$widget_info->total_title}<!--@else-->{$widget_info->module_info->browser_title}<!--@end--></a> <span>({$widget_info->total_document_count})</span> <a href="{getSiteUrl($widget_info->domain,'','mid',$widget_info->module_info->mid?$widget_info->module_info->mid:$layout_info->target_mid)}" class="title <!--@if(!$category)-->strong<!--@end-->"><!--@if($widget_info->total_title)-->{$widget_info->total_title}<!--@else-->{$widget_info->module_info->browser_title}<!--@end--></a> <span class="sum">({$widget_info->total_document_count})</span>
<ul> <ul>
<!--@foreach($widget_info->category_list as $key => $val)--> <!--@foreach($widget_info->category_list as $key => $val)-->
<!--@if($_pDepth > $val->depth)--> <!--@if($_pDepth > $val->depth)-->
<!--@for($i=$val->depth; $i<$_pDepth; $i++)--> <!--@for($i=$val->depth; $i<$_pDepth; $i++)-->
</li> </li>
</ul> </ul>
<!--@end--> <!--@end-->
{@ $_pDepth = $val->depth} {@ $_pDepth = $val->depth}
<!--@end--> <!--@end-->
<li class="<!--@if($val->last)-->nav_tree_last<!--@end--> <!--@if($val->expand)-->nav_tree_on<!--@else-->nav_tree_off<!--@end-->" id="category_parent_{$val->category_srl}"> <li class="<!--@if($val->last)-->nav_tree_last<!--@end--> <!--@if($val->expand)-->nav_tree_on<!--@else-->nav_tree_off<!--@end-->" id="category_parent_{$val->category_srl}">
<!--@if($val->child_count)--> <!--@if($val->child_count)-->
<!--@if($val->expand)--> <!--@if($val->expand)-->
<button type="button" class="category_{$val->category_srl}">+</button> <button type="button" class="category_{$val->category_srl}">+</button>
<!--@else--> <!--@else-->
<button type="button" class="category_{$val->category_srl}">-</button> <button type="button" class="category_{$val->category_srl}">-</button>
<!--@end--> <!--@end-->
<!--@end--> <!--@end-->
<a href="{getSiteUrl($widget_info->domain, '','mid',$widget_info->module_info->mid, 'category',$val->category_srl)}" class="nav_tree_label <!--@if($val->selected)-->selected<!--@end-->">{$val->text}</a> <a href="{getSiteUrl($widget_info->domain, '','mid',$widget_info->module_info->mid, 'category',$val->category_srl)}" class="nav_tree_label <!--@if($val->selected)-->selected<!--@end-->">{$val->text}</a>
<!--@if($val->document_count)--><span>({$val->document_count})</span><!--@end--> <!--@if($val->document_count)--><span class="sum">({$val->document_count})</span><!--@end-->
<!--@if($val->child_count)--> <!--@if($val->child_count)-->
{@$_pDepth++} {@$_pDepth++}
<ul> <ul>
<!--@else--> <!--@else-->
</li> </li>
<!--@end--> <!--@end-->
<!--@end--> <!--@end-->
</ul> </ul>
</div> </div>
</div> </div>