DEDE,24小时内发布的信息日期为红色
[field:pubdate runphp='yes']
$a="<font color=’#ff0000′>";
$d="<font color=’#858585′>";
$b="</font>";
$c=strftime("%m月%d日","@me");
$ntime = time();
$oneday = 3600 * 24;
if(($ntime – @me)<$oneday) @me = $a.$c.$b;
else @me = $d.$c.$b;
[/field:pubdate]
没有评论▼