{@
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;
}
{$module_info->mobile_header_text}
{$module_info->header_text}