VIP福利
主页 > 建站问题 > 程序开发 > 织梦DEDECMS上一篇下一篇调用图片的方法

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

修改文件:/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样式修必为自己的。
 
 

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!