织梦DEDECMS上一篇下一篇调用图片的方法

网站建设 2022-07-27 09:12www.1681989.com免费网站
修改文件/clude/arc.archives.class.php 查找arc.arcrank,arc.filename, 在后面添加arc.litpic, 查找$this-PreNext[pre] = 上一篇a href=$mlk{$preRow[title]}/a ; 替换 if(empty($preRow[litpic])) { $this-PreNext[pr […]



修改文件/clude/arc.archives.class.php
 
查找arc.arcrank,arc.filename, 在后面添加arc.litpic,
 
查找$this->PreNext['pre'] = "上一篇<a href='$mlk'>{$preRow['title']}</a> ";
 
替换

  if(empty($preRow['litpic'])) 

$this->PreNext['pre'] = "<a href='$mlk'class="post-prev" >  ";    
}else{ 
$this->PreNext['pre'] = "<a href='$mlk'  class="post-prev" >
<div class="img-wrap"> <img src="{$preRow['litpic']}"> </div>
<div class="for-wrap"> <span class="title">{$preRow['title']}</span> <span class="subtitle">{$preRow['shorttitle']}</span> </div>
<i class="details"></i> </a> " ; 
}

 

查找$this->PreNext['next'] = "下一篇<a href='$mlk'>{$nextRow['title']}</a> ";
 
替换

if(empty($nextRow['litpic'])) 
$this->PreNext['next'] = "<a href='$mlk' class=\"post-next\" >  ";    
}else{ 
$this->PreNext['next'] = "<a href='$mlk'  class=\"post-next\" >
<div class=\"img-wrap\"> <img src=\"{$nextRow['litpic']}\"> </div>
<div class=\"for-wrap\"> <span class=\"title\">{$nextRow['title']}</span> <span class=\"subtitle\">{$nextRow['shorttitle']}</span> </div>
<i class=\"details\"></i> </a> " ; 
}

注CSS样式修必为自己的。
 
 

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by