当前位置:首页 > 教程 > 帝国cms > 列表模板

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

参考代码

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

你觉得文章内容怎么样

阿里云代金券 100 云产品通用

有效期30天 首购用户

立即领取
推荐宝塔面板 0 安全高效的

服务器运维面板

立即领取