mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Clean up header scripts of XEDITION board skin
This commit is contained in:
parent
618d075a99
commit
cad050ad8d
1 changed files with 22 additions and 16 deletions
|
|
@ -2,25 +2,31 @@
|
|||
<load target="board.default.js" type="body" />
|
||||
<load target="../../../../common/xeicon/xeicon.min.css" />
|
||||
|
||||
<!--@if(isset($order_type) && $order_type == "desc")-->
|
||||
{@ $order_type = "asc"; }
|
||||
<!--@else-->
|
||||
{@ $order_type = "desc"; }
|
||||
<!--@end-->
|
||||
<block cond="!$module_info->duration_new = (int)$module_info->duration_new">{@ $module_info->duration_new = 12 }</block>
|
||||
{@ $cate_list = array(); $current_key = null; }
|
||||
{@ $category_list = $category_list ?? []}
|
||||
<!--@foreach($category_list as $key=>$val)-->
|
||||
<!--@if(!$val->depth)-->
|
||||
{@
|
||||
{@
|
||||
if (isset($order_type) && $order_type == 'desc'):
|
||||
$order_type = 'asc';
|
||||
else:
|
||||
$order_type = 'desc';
|
||||
endif;
|
||||
|
||||
if (!empty($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 }
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue