代码
/**
* 判断是否最新文章
*/
function timeZone($from){
$now = new Typecho_Date(Typecho_Date::gmtTime());
return $now->timeStamp - $from < 24*60*60 ? true : false;
}
调用
<?php if(timeZone($this->date->timeStamp)) $this->commentsNum(('%d')); ?>
/**
* 判断是否最新文章
*/
function timeZone($from){
$now = new Typecho_Date(Typecho_Date::gmtTime());
return $now->timeStamp - $from < 24*60*60 ? true : false;
}
<?php if(timeZone($this->date->timeStamp)) $this->commentsNum(('%d')); ?>
评论已关闭
技术博主
你少来
真不错
不错不错
看看数量怎么说?