1)红色日期
[field:pubdate runphp='yes']
$a="".strftime('%m-%d',@me)."";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24 * 3;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
2)红色的new
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "(new)";
else @me = $aa;
[/field:pubdate]
3)加new.jif小图片
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "".$aa;
else @me = $aa;
[/field:pubdate]
http://www.bkjia.com/PHPjc/477231.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477231.htmlTechArticle1)红色日期 br[field:pubdate runphp=yes] br$a=lt;font color=redgt;.strftime(%m-%d,@me).lt;/fontgt;; br$b=strftime(%m-%d,@me); br$ntime = time(); br$day3 = 3600 * 24 * 3; brif(($...