} else if ($top_cate == 45) {
header('Location:' . url('public_special', ['cate' => $cate]));
exit();
}
$top_cate_info = HomeModel::getNavigateInfo(['id' => $top_cate], ['name', 'id']);
$all_parent = HomeModel::getAllParents($cate_info['id']);
$center_menu = HomeModel::getCategoryTree($top_cate, ['name', 'id'], $all_parent);
$size = $cate_info['page_size'];
$news_list = HomeModel::getArticle(['category' => $cate_info['id']], ['title', 'thumb', 'source', 'author', 'click', 'created_at', 'abstract'], true, $size);
foreach ($news_list['list'] as $k => $list) {
$news_list['list'][$k]['thumb'] = $list['thumb'] ? str_replace('\\', '/', $list['thumb']) : ($cate_info['tpl'] != 'news_other' ? '/home/images/default.jpg' : '');
$news_list['list'][$k]['created_at'] = date('Y-m-d', strtotime($list['created_at']));
}
$position = HomeModel::position($cate_info['id']);
if (in_array($cate, [134, 138])) {
$this->assign('guidang', true);
}
return $this->fetch(HOME_VIEW_PATH . ($cate_info['tpl'] ?: 'news_text_list') . '.html', [
'top_cate_info' => $top_cate_info,