Open the /extend/function.php file and add the following code inside:

1. Determine whether to add an icon to the article of the day. The icon file needs to be prepared by yourself.

/*自定义时间戳当天加图片函数文件,调用代码:{$field.add_time|diy_MyDate=###}*/
 function diy_MyDate($add_time = 0)
{
    $str = $add_time;
    $time = strtotime(date('Y-m-d'));
    if (intval($str) > $time) {
        $pic = handle_subdir_pic('/public/static/admin/images/new.gif');
        $str ="<img src='{$pic}'/>";
    } else {
        $str = date('Y-m-d',$str);
    }
    return $str;
}

/public/static/admin/images/new.gif is the image path. Please add and modify the image path if you need the image.
Calling code: {$field.add_time|diy_MyDate=###}


2. Determine the red style of the article of the day

/*自定义时间戳当天标红函数文件,调用代码:{$field.add_time|diy_MyDate=###}*/function diy_MyDate($add_time = 0)
{
    $str = $add_time;
    $time = strtotime(date('Y-m-d'));
    if (intval($str) > $time) {
        $str = "<font color='red'>".date('Y-m-d', $str)."</font>";
    } else {
        $str = date('Y-m-d', $str);
    } 
    return $str;
}

<font color='red'></font> is the red code, if you need other colors, please modify it yourself

Calling code: {$field.add_time|diy_MyDate=###}

Note: The two functions cannot be used together