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

现实情况远非想的那么单纯容易清晰:当优越感逐渐转为失落感甚至挫败感时,当由坚信自己是一块金子到怀疑自己是一粒沙子时,愤怒,迷茫,自卑,焦急,躁动就开始与日俱增。

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

找到修改文件目录:/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://www.genban.org',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://www.genban.org',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>";
}

<script type="text/javascript"> document.body.oncopy = function (){ setTimeout(function (){ var text = clipboardData.getData("text"); if (text){ texttext = text + "rn本文转载于DeDeCms模板中心(genban.org)- 织梦模板 DEDECMS企业模板 DEDECMS仿站 dede模板下载:http://www.genban.org-原文链接:"+location.href; clipboardData.setData("text", text); } },100) } </script>



 

到此这篇关于织梦dedecms上一篇 下一篇调用图片的方法就介绍到这了。遇见你是命运的安排,成为了朋友是我的选择,爱上你是个意外。更多相关织梦dedecms上一篇 下一篇调用图片的方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

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

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

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

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

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