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://images.jiaju123.com',trim($preRow['litpic']));
    $this->PreNext['pre'] = "<div>
    <div><a href="$mlink"><img src="$preimage"></a></div>
    <div>
    <p>上一篇:{$preRow['title']}</p>
    <div>◀<a href="$mlink">瀏覽上一張圖片</a></div>
    </div></div>";
    }
    查找:$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
    DEDECMS父欄目替換:if(empty($nextRow['litpic']))
    {
    $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
    }else{
    $nextimage = str_replace('/photo-img', 'http://www.dedecms8.com',trim($nextRow['litpic']));
    $this->PreNext['next'] = "<div>
    <div><a href="$mlink"><img src="$nextimage"></a></div>
    <div><p>下一篇:{$nextRow['title']}</p>
    <div>▶<a href="$mlink">瀏覽下一張圖片</a></div>
    </div></div>";
    }