详情页

帝国cms最新文章显示红色日期的教程

时间:2023年07月15日

编辑:佚名

最新文章显示红色日期使用代码
$newimg='[!--newstime--]';
if(time()-$r[newstime]<=1*24*3600)
{
        $newimg='<FONT color=red>[!--newstime--]</FONT>';
}  
$listtemp='<LI><SPAN class=date>'.$newimg.'</SPAN> <a href="[!--titleurl--]" target=_blank>[!--title--]</A> </LI>';
相关文章
猜你需要