|
织梦pagebreak文章分页显示设置:
在include/arc.archives.class.php这个类,这个主是来解析文章内容的类
找到 function GetPagebreak(totalPage,nowPage,$aid)
function GetPagebreak($totalPage, $nowPage, $aid)
{
if($totalPage==1)
{
return "";
}
// $PageList = "[*,共".$totalPage."页: ";
$nPage = $nowPage-1;
$lPage = $nowPage+1;
if($nowPage==1)
{
// $PageList.="[url=#,上一页[/url]";
}
else
{
if($nPage==1)
{
// $PageList.="[url=".$this->NameFirst.".".$this->ShortName.",上一页[/url]";
}
else
{
// $PageList.="[url=".$this->NameFirst."_".$nPage.".".$this->ShortName.",上一页[/url]";
}
}
for($i=1;$iNameFirst.".".$this->ShortName.",1[/url]";
}
else
{
$PageList.="[url=#,1[/url]";
}
}
else
{
$n = $i;
if($nowPage!=$i)
{
$PageList.="[url=".$this->NameFirst."_".$i.".".$this->ShortName.",".$n."[/url]";
}
else
{
$PageList.="[url=#,{$n}[/url]";
}
}
}
if($lPage NameFirst."_".$lPage.".".$this->ShortName.",下一页[/url]";
}
else
{
// $PageList.= "[url=#,下一页[/url]";
}
return $PageList;
} |
|