當(dāng)天顯示紅色代碼
[field:pubdate runphp='yes']
if(date("Y-m-d",@me)==date("Y-m-d")){
@me='<font color="#FF0000">'.GetDateTimeMK(@me).'</font>';
}
else{
@me=GetDateTimeMK(@me);
}
[/field:pubdate]
24小時(shí)內(nèi)發(fā)表的文章,顯示紅色的代碼
[field:pubdate runphp='yes']
$nowTime = time();
if($nowTime - (3600 * 24) < @me){
@me='<font color="#FF0000">'.GetDateTimeMK(@me).'</font>';
}else{
@me=GetDateTimeMK(@me);
}
[/field:pubdate]