在文章标题的后面增加“(new)”最新发布的标志:
{dede:arclist row='5'titlelen='60' typeid='1'}
<li><a href="http://www.dev f S @ p J [ {de58.com/a/dedejq/[field:arcurl/]">[field:title/]</a>
<span>
[field:senddate runphp='yes']
$ntime = tiw J W nme();
$oneday = 3600 * 24;
if(($ntime – @me)<$oneday) @me = "<font color='#c00'>(new)</fo* h K f Hnt>";
else @me = "";
[/field:senddate]
</span>
</li>
{/dede:arclist}
另一种php形式代码:
{dede:= r _ , 9 o Uarclist titlelen='60'row='5'}
<li><a href="http://www.dede58.com/a/dedejq/[field:arcurl/]" rel="external nofollow" >[field:title/]</a>
<span>
[field:pubdate runphp='yes']
$a="<font color='#ccc'>";
$d=P M ( 4 I { n"<font color='#c00'>";
$b="&l` ~ U 5 e I z A ct;/fP y % j e ^ Z \ont>";
$c=strftimE s K ! + h We("%m-%d","@me");
$ntime = time();
$on+ K )eday = 3600 * 24;
if((p Z { f$ntime – @me)<+ 8 g 1 };$oneday) @me = $a.$c.$5 C 3b;
else @me = $d.$c.$b;
[/field:pubdate]
</span&! Y O ^ u Ggt;
</li>
{/dede:ar= # Wclist}