您当前的位置:首页 > 网络教程 > 帝国CMS教程

3.4 应用举例 显示“置顶”标识

参考代码

1
2
3
4
5
6
7
8
$istop='';
if($r[istop])
{
$istop='<b>【顶】</b>';
}
$listtemp='
        <li><h3 class="blogtitle">'.$istop.'<a href="[!--titleurl--]" target="_blank">[!--title--]</a></h3></li>
';

你觉得文章内容怎么样

  • 请先说点什么
    热门评论
    0人参与,0条评论
    正在载入评论列表...
    阿里云代金券 100 云产品通用

    有效期30天 首购用户

    立即领取
    阿里云代金券 100 云产品通用

    有效期30天 复购+升级

    立即领取