|
在文章标题的后面增加“(new)”最新发布的标志:
{dede:arclist row='5'titlelen='60' typeid='1'}
[*,[url=,[field:title/][/url]
[field:senddate runphp='yes',
$ntime = time();
$oneday = 3600 * 24;
if(($ntime – @me)
{/dede:arclist}
另一种php形式代码:
{dede:arclist titlelen='60'row='5'}
[*,[url=,[field:title/][/url]
[field:pubdate runphp='yes',
$a="";
$d="
[color=,";
$b="
";
$c=strftime("%m-%d","@me");
$ntime = time();
$oneday = 3600 * 24;
if(($ntime – @me)
{/dede:arclist} |
|