feat: 升级版本至1.4.0并添加外部资源备用机制

- 版本号从1.3.5升级至1.4.0
- 创建外部资源备用加载系统,解决国内访问问题
- 添加Google Fonts本地备用字体文件
- 集成Geetest验证码本地备用版本
- 实现QRCode.js本地备用功能
- 创建智能资源加载器,自动切换到本地资源
- 修改所有外部资源引用,支持自动备用机制
- 添加资源配置文件,便于管理和维护
This commit is contained in:
2026-01-11 20:03:15 +08:00
parent 31d8fde308
commit a01f161bca
14 changed files with 414 additions and 10 deletions

View File

@@ -780,7 +780,19 @@ $author_desc = get_option('argon_sidebar_author_description');
?>
<div class="todo-captcha-container" style="display:none; margin-top: 10px;">
<?php if ($captcha_type == 'geetest') : ?>
<script src="https://static.geetest.com/v4/gt4.js"></script>
<script>
// TODO Geetest 备用加载
function loadTodoGeetest() {
if (typeof ArgonResourceLoader !== 'undefined') {
ArgonResourceLoader.smartLoad('https://static.geetest.com/v4/gt4.js', 'js');
} else {
var script = document.createElement('script');
script.src = '<?php echo get_template_directory_uri(); ?>/assets/vendor/external/geetest/gt4.js';
document.head.appendChild(script);
}
}
loadTodoGeetest();
</script>
<div id="todo-geetest-captcha"></div>
<?php else : ?>
<div class="input-group input-group-sm">