DEDECMS上一篇下一篇調(diào)用圖片的方法
時間: 2019-07-17 22:36
閱讀: 次
作者:素材無憂網(wǎng)
只限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 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://images.jiaju123.com',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>
織夢內(nèi)容管理系統(tǒng)
</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://images.jiaju123.com',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>"; dedecms.com
}
標簽: