修改文件:/include/arc.archives.class.php 查找:arc.arcrank,arc.filename, 在后面添加arc.litpic, 查找:$this-PreNext[pre] = 上一篇:a href=$mlink{$preRow[title]}/a ; 替换: if(empty($preRow[litpic])) { $this-PreNext[pr […]
修改文件:/include/arc.archives.class.php
查找:arc.arcrank,arc.filename, 在后面添加arc.litpic,
查找:$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
替换:
if(empty($preRow['litpic']))
{
$this->PreNext['pre'] = "<a href='$mlink'class="post-prev" > ";
}else{
$this->PreNext['pre'] = "<a href='$mlink' class="post-prev" >
<div class="img-wrap"> <img src="{$preRow['litpic']}"> </div>
<div class="infor-wrap"> <span class="title">{$preRow['title']}</span> <span class="subtitle">{$preRow['shorttitle']}</span> </div>
<i class="details"></i> </a> " ;
}
查找:$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
替换:
if(empty($nextRow['litpic']))
{
$this->PreNext['next'] = "<a href='$mlink' class=\"post-next\" > ";
}else{
$this->PreNext['next'] = "<a href='$mlink' class=\"post-next\" >
<div class=\"img-wrap\"> <img src=\"{$nextRow['litpic']}\"> </div>
<div class=\"infor-wrap\"> <span class=\"title\">{$nextRow['title']}</span> <span class=\"subtitle\">{$nextRow['shorttitle']}</span> </div>
<i class=\"details\"></i> </a> " ;
}
注:CSS样式修必为自己的。