帝国cms首页列表页最新文章显示红色日期应该怎么办
首页再列表模板处勾选使用程序代码
$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>'; 标签:
本文链接:https://www.xiaba.cc/html/202106/662.html
版权声明:站内所有文章皆来自网络转载,只供模板演示使用,并无任何其它意义!