用灵动标签显示“当天”,适用新闻系统 – 帝国CMS

当天新闻旁边显示“当天”字样:

[e:loop={栏目ID,显示条数,操作类型,只显示有标题图片}]
<?
$newimg=””;
if(time()-$bqr[truetime]<=1*24*3600)
{
$newimg=”当天”;
}
?>
<?=$newimg?>
[/e:loop]

效果如 http://www.ninwo.org