PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > dedecms教程 > 正文

    dedecms runphp标签实现 24小时内发布的文章时间加红

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:dedecms runphp标签实现 24小时内发布的文章时间加红
    dedecms runphp标签实现 24小时内发布的文章时间加红

     
    复制代码 代码如下:

    [field:pubdate runphp='yes']
    $a="<font color=red>".strftime('%m-%d',@me)."</font>";
    $b=strftime('%m-%d',@me);
    $ntime = time();
    $day3 = 3600 * 24;
    if(($ntime - @me) < $day3) @me = $a;
    else @me =$b;
    [/field:pubdate] 

    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-102-1167-1.html
    相关热词搜索: