ThinkCMF 文章详情页上一篇下一篇

2021-11-12 11:491229
<if condition="!empty($prev_article)">
    <p>
        上一篇:
        <a href="{:cmf_url('portal/Article/index',array('id'=>$prev_article['id'],'cid'=>$category['id']))}" title="{$prev_article['post_title']}">{$prev_article['post_title']}</a>
    </p>
</if>
<if condition="!empty($next_article)">
    <p>
        下一篇:
        <a href="{:cmf_url('portal/Article/index',array('id'=>$next_article['id'],'cid'=>$category['id']))}" title="{$next_article['post_title']}">{$next_article['post_title']}</a>
    </p>
</if>


上一篇: VUE API photos 相册 客户端提交发布文章

下一篇: PHP换行符转br