AI智能回复搜索中,请稍后...
if (! $_GET['sort_type'] AND !$_GET['is_recommend']) { $_GET['sort_type'] = 'new'; } if ($_GET['sort_type'] == 'hot') { $posts_list = $this->model('posts')->get_hot_posts(null, $category_info['id'], null, $_GET['day'], $_GET['page'], get_setting('contents_per_page')); } else { $posts_list = $this->model('posts')->get_posts_list(null, $_GET['page'], get_setting('contents_per_page'), $_GET['sort_type'], null, $category_info['id'], $_GET['answer_count'], $_GET['day'], $_GET['is_recommend']); } TPL::assign('posts_list', $posts_list);加到app/m/main.php里index_action函数里面, 把views/m/ajax/explore_list.tpl.htm文件里的模板拷贝到views/m/index.tpl.htm文件里id为explore_listview的ul里面, 再把此文件底部AWS.load_list_view函数的调用注释掉即可, 访问方式跟电脑版地址一样m/sort_type-unresponsive