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

江南的古屋主要以青砖为材料,砖与砖的缝隙里挤挤挨挨地塞满了苔藓与野草,几根木制的横梁点缀其间。
只限5.5的版本5.3的没看过,目录地址 /include/arc.archives.class.php 查找:arc.money,arc.filename, 在后面添加arc.litpic, 查找:$this-PreNext[
只限5.5的版本5.3的没看过
目录地址:/include/arc.archives.class.php
查找:arc.money,arc.filename, 在后面添加arc.litpic,
查找:$this->PreNext['pre'] = "上一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$preRow['title']}</a> ";
替换:〔上一篇〕
if(empty($preRow['litpic']))
{
$this->PreNext['pre'] = "上一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$preRow['title']}</a> ";
}else{
$preimage = str_replace('/photo-img', 'http://images.jiaju123.com',trim($preRow['litpic']));
$this->PreNext['pre'] = "<div class=\&;photo_article_pre\&;>
<div class=\&;pre_photo\&;><a rel="nofollow noopener noreferrer" href=\&;$mlink\&;><img src=\&;$preimage\&; alt=\&;上一篇:{$preRow['title']}\&;></a></div>
<div class=\&;pre_right\&;>
<p>上一篇:{$preRow['title']}</p>
<div class=\&;photo_textlink\&;>◀<a rel="nofollow noopener noreferrer" href=\&;$mlink\&;>浏览上一张图片</a></div>
织梦内容管理系统
</div></div>";
}
查找:$this->PreNext['next'] = "下一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$nextRow['title']}</a> ";
替换:if(empty($nextRow['litpic']))
{
$this->PreNext['next'] = "下一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$nextRow['title']}</a> ";
}else{
$nextimage = str_replace('/photo-img', 'http://images.jiaju123.com',trim($nextRow['litpic']));
$this->PreNext['next'] = "<div class=\&;photo_article_next\&;>
<div class=\&;pre_photo\&;><a rel="nofollow noopener noreferrer" href=\&;$mlink\&;><img src=\&;$nextimage\&; alt=\&;下一篇:{$nextRow['title']}\&;></a></div>
<div class=\&;pre_right\&;>
<p>下一篇:{$nextRow['title']}</p>
<div class=\&;photo_textlink\&;>▶<a rel="nofollow noopener noreferrer" href=\&;$mlink\&;>浏览下一张图片</a></div>
</div></div>"; dedecms.com
}

以上就是DEDECMS上一篇下一篇调用图片的方法。做有用的事,说勇敢的话,想美好的事,睡安稳的觉,把时间用在进步上,而不是抱怨上。更多关于DEDECMS上一篇下一篇调用图片的方法请关注haodaima.com其它相关文章!

您可能有感兴趣的文章
织梦后台文档列表添加复制文档功能支持所有模型

织梦无法上传ico图标格式文件的如何解决方法

dedecms如何实现任意页面调用当前会员信息的方

织梦dede:tag调用指定多个栏目的TAG标签

织梦栏目列表按附加表自定义字段排序