前言
子比文章页添加更新时间时效性,方便备份
演示图

1.在zibll/functions.php插入代码-底部
//文章过期提示
function article_time_update() {
date_default_timezone_set('PRC');
$newdate=time();
$updated_date = get_the_modified_time('Y-m-d H:i:s');
$updatetime=strtotime($updated_date);
$custom_content = '';
if ( $newdate > $updatetime+86400) {
$custom_content= '<div class="article-timeout"><strong><i class="fa fa-bell" aria-hidden="true"></i> 温馨提示:</strong>本文最后更新于<code>'. $updated_date . '</code>,某些文章具有时效性,若有错误或已失效,请在下方<a href="#comment">留言</a>或联系<a target="_blank" title="52758绿软宝库" href="http://wpa.qq.com/msgrd?v=3&uin=428001830&site=qq&menu=yes"><b>站长</b></a>。</div >';
} echo $custom_content;
}
2.需要在子比主题后台的自定义css那里添加下面的样式
3.在主题目录zibll/inc/functions/zib-single.php文件中,文章分页函数行,里面的(具体在315行,这是在没有任何代码添加且是子比主题7.6版本的情况下)如果小伙伴有代码修改的话,需要自己寻找地方,具体位置如下:
在315行这个的前面
添加以下代码
© 版权声明
THE END
    


![【不忘初心游戏版】Windows11 LTSC2024 24H2 26100.2605 X64无更新 [精简版][2.4G](2024.12.20)推荐用于 游戏、办公、直播-52758绿软宝库](https://cos.52758.cn/images/2024/12/20241221123144568.jpg)


![【不忘初心美化版】[太阳谷] Windows7 旗舰版 专业版 SP1(7601. 27467)IE8 IE11 X64 [精简版][2.08G]-52758绿软宝库](https://cos.52758.cn/images/2024/12/20241221123348766.jpg)




请登录后查看评论内容