mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
47 lines
2 KiB
HTML
47 lines
2 KiB
HTML
<load target="board.default.css" />
|
|
<load target="board.default.js" type="body" />
|
|
|
|
{@
|
|
if (isset($order_type) && $order_type == 'desc'):
|
|
$order_type = 'asc';
|
|
else:
|
|
$order_type = 'desc';
|
|
endif;
|
|
|
|
$module_info->duration_new = intval($module_info->duration_new ?? 0);
|
|
if (!$module_info->duration_new):
|
|
$module_info->duration_new = 12;
|
|
endif;
|
|
|
|
$cate_list = [];
|
|
$current_key = null;
|
|
$category_list = $category_list ?? [];
|
|
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;
|
|
endif;
|
|
endforeach;
|
|
}
|
|
|
|
<div class="board">
|
|
<!--@if($m && $module_info->mobile_header_text)-->
|
|
{$module_info->mobile_header_text}
|
|
<!--@else-->
|
|
{$module_info->header_text}
|
|
<!--@end-->
|
|
<div class="board_header" cond="!empty($module_info->title_image) || $grant->manager">
|
|
<h2 cond="$module_info->title_image"><a href="{getUrl('','mid',$mid)}"><img src="{$module_info->title_image}" alt="{$module_info->title_alt}" /></a></h2>
|
|
<a cond="$grant->manager" class="setup" href="{getUrl('act','dispBoardAdminBoardInfo')}" title="{$lang->cmd_setup}">{$lang->cmd_setup}</a>
|
|
</div>
|
|
<ul class="cTab" cond="$module_info->use_category=='Y'">
|
|
<li class="on"|cond="empty($category)"><a href="{getUrl('category','','page','')}">{$lang->total}</a></li>
|
|
<li loop="$cate_list=>$key,$val" class="on"|cond="($category ?? 0) == $val->category_srl"><a href="{getUrl('category',$val->category_srl,'document_srl','', 'page', '')}">{$val->title}<!--<em cond="$val->document_count">[{$val->document_count}]</em>--></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', '')}">{$item->title}<!--<em cond="$val->document_count">[{$item->document_count}]</em>--></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|