方法1:
效果:
打开functions.php,加入:
1 2 3 4 5 6 7 8 9 10 11 |
//添加老文章提示信息 function wpdaxue_old_content_message($content) { $modified = get_the_modified_time('U'); $current = current_time('timestamp'); $diffTime = ($current - $modified) / (60*60*24); if($diffTime > 365 ){ $content = '<div class="old-message">本文最后更新于'.get_the_modified_time('Y年n月j日').',已超过 1 年没有更新,如果文章内容失效,请反馈给我们,谢谢!</div>'.$content; } return $content; } add_filter( 'the_content', 'wpdaxue_old_content_message' ); |
CSS效果:
1 |
.old-message{padding:10px;color: #DB7C22;font-size: 14px;background: #FFFCEF;border: solid 1px #FFBB76;border-radius: 2px;box-shadow: 0 0 3px #ddd;} |
方法2:
效果:
functions.php:
1 2 3 4 5 6 7 8 9 10 11 12 |
//添加老文章提示信息 function old_content_message($content) { $modified = get_the_modified_time('U'); $current = current_time('timestamp'); $diffTime = ($current - $modified) / (60 * 60 * 24); if ($diffTime > 365) { $content = $content.'<div class="warn">本文最后更新于'.get_the_modified_time('Y年n月j日'). ',已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!</div>'; } return $content; } add_filter('the_content', 'old_content_message'); |
如果想出现在文章开头,则改为:
1 2 3 4 5 6 7 8 9 10 11 12 |
//添加老文章提示信息 function old_content_message($content) { $modified = get_the_modified_time('U'); $current = current_time('timestamp'); $diffTime = ($current - $modified) / (60 * 60 * 24); if ($diffTime > 365) { $content = '<div class="warn">本文最后更新于'.get_the_modified_time('Y年n月j日'). ',已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!</div>'.$content; } return $content; } add_filter('the_content', 'old_content_message'); |
CSS:
1 2 3 4 5 6 7 8 9 10 |
/* 提醒 */ .warn { color: #ad9948; background: #fff4b9 url(img/warn.png) -1px -1px no-repeat; border: 1px solid #eac946; overflow: hidden; margin: 10px 0; padding: 15px 15px 15px 35px; font-size: 14px; } |
本文最后更新于2019年11月11日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
大佬研究一下猩红,我装也也会掉
不是很理解,自己手机导出的ipa?意思是必须用手机下载的才行吗?
从github下载的windows下载,解压找到你说的@后面的内容,修改名字上传,再安装
已经改成zip解压后查看,按照你的提示,把下载下来的ipa改成Alock@net.darkce.app-locker.ipa这样后上传再安装,还是提示无法安装此app,因为无法验证其完整性。
试了一下,你这个链接进不去,但是https://one.machunjie.com这个跳转后的链接可以进去,另外ipa在windows上可以修改吗
大佬,我是12pm,15.7的系统,看了大佬的第一步,我发现自己么有苹果电脑啊,这个SideServer.dmg装不上啊
https://short.machunjie.com/6OzeD提示此网站无法提供安全连接,手机上没法打开
怎么交界