手機端由于版面的特殊性,一般很少使用1,2,3,4這樣的分頁習慣,直接用上一篇,下一篇代替,代碼如下:
<li>{dede:prenext get=pre runphp=yes}$preurl = @me;preg_match('/aid=(/d*)/',$preurl,$match);$result = GetOneArchive($match[1]);@me = !empty($result) ? "上一篇:<a href=/"/m{$result['arcurl']}/">{$result['title']}</a>" : "上一篇:沒有了";{/dede:prenext}</li><li>{dede:prenext get=next runphp=yes}$preurl = @me;preg_match('/aid=(/d*)/',$preurl,$match);$result = GetOneArchive($match[1]);@me = !empty($result) ? "下一篇:<a href=/"/m{$result['arcurl']}/">{$result['title']}</a>" : "下一篇:沒有了";{/dede:prenext}</li> |
新聞熱點
疑難解答