主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 織夢(mèng)dedecms上一篇 下一篇調(diào)用圖片的方法

織夢(mèng)dedecms上一篇 下一篇調(diào)用圖片的方法

POST TIME:2017-12-13 23:13

織夢(mèng)dedecms上一篇 下一篇調(diào)用圖片的方法:

找到修改文件目錄:/include/arc.archives.class.php
查找:arc.money,arc.filename, 在后面添加arc.litpic,
查找:$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";

替換:if(empty($preRow['litpic']))
{
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
}else{
$preimage = str_replace('/photo-img', 'http://www.genban.org',trim($preRow['litpic']));
$this->PreNext['pre'] = "<div class=\&;photo_article_pre\&;>
<div class=\&;pre_photo\&;><a href=\&;$mlink\&;><img src=\&;$preimage\&; alt=\&;上一篇:{$preRow['title']}\&;></a></div>
<div class=\&;pre_right\&;>
<p>上一篇:{$preRow['title']}</p>
<div class=\&;photo_textlink\&;>?<a href=\&;$mlink\&;>瀏覽上一張圖片</a></div>
</div></div>";
}

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

替換:if(empty($nextRow['litpic']))
{
$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
}else{
$nextimage = str_replace('/photo-img', 'http://www.genban.org',trim($nextRow['litpic']));
$this->PreNext['next'] = "<div class=\&;photo_article_next\&;>
<div class=\&;pre_photo\&;><a href=\&;$mlink\&;><img src=\&;$nextimage\&; alt=\&;下一篇:{$nextRow['title']}\&;></a></div>
<div class=\&;pre_right\&;>
<p>下一篇:{$nextRow['title']}</p>
<div class=\&;photo_textlink\&;>?<a href=\&;$mlink\&;>瀏覽下一張圖片</a></div>
</div></div>";
}



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢(xún)

  • 400-1100-266