在使用zblogPHP的时候可能某些用户,想让首页显示更多内容,而列表页调用按正常后台设置显示,此时就必须对首页进行修改了!
挂载:Add_Filter_Plugin('Filter_Plugin_ViewList_Core','ydqeeke_Filter_Plugin_ViewList_Core');
在include.php加入:function ydqeeke_Filter_Plugin_ViewList_Core(&$type,&$page,&$category,&$author,&$datetime,&$tag,&$w,&$pagebar) {
if($type == 'index'){
// $pagebar->PageCount = 30;
// $pagebar = new Pagebar($zbp->option['ZC_INDEX_REGEX']);
$pagebar->PageCount = 30;
// $pagebar->PageNow = $page;
// $pagebar->PageBarCount = $zbp->pagebarcount;
}
}