Full-project rename. `git grep -i aksrt` is now empty apart from the
DBMigrator 3.3.0 changelog note that documents the rename itself.
Code identifiers
- PHP namespace AKSRT\ -> Jio\ (composer PSR-4 + 378 declarations)
- global constants AKSRT_* -> JIO_* (VERSION/DIR/URI, PAY_TYPE_*, CAPTCHA_*)
- procedural functions, hooks, options, meta keys, table names,
cookies, query vars, ajax actions and nonces: aksrt_ -> jio_
- text domain aksrt -> jio; Theme Name -> Jio
- JS globals: aksrtData/aksrtAdminData/... -> jioData/jioAdminData/...,
window.AKSRTCaptcha & friends -> window.JioCaptcha, Aksrt* -> Jio*
- Vue components Aks*.vue -> Jio*.vue (15 files renamed + imports)
- CSS classes/data-attrs/custom properties: aksrt- -> jio-
- REST namespace aksrt/v1 -> jio/v1 (incl. payment gateway callbacks)
Storage layer
- DB tables {prefix}aksrt_* -> {prefix}jio_*; SCHEMA_VERSION 3.2.0 -> 3.3.0
so dbDelta creates the new names on install
- widget id_base aksrt_widget_* -> jio_widget_*
- uninstall.php drop list rebuilt from the actual migrator tables
(dropped 3 stale entries, added the 17 missing ones)
Removed
- hardcoded https://api.aksrt.com/version.json default update endpoint;
get_endpoint() now reads the 「更新端点」 setting and do_check() no-ops
when it is empty
Files renamed: inc/helpers/aksrt-*.php -> jio-*.php (54),
assets/admin/src/components/form/Aks*.vue -> Jio*.vue (15).
Build artifacts regenerated: assets/css/build, assets/js/runtime,
assets/admin/build.
Verified: audit-psr4-paths errors=0, audit-admin-contracts errors=0
(warnings=56, unchanged baseline), 813/813 widget-system tests,
44/44 phpunit, php -l clean across all PHP.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
57 lines
2.4 KiB
PHP
57 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* 外链跳转中间页
|
|
*
|
|
* @package Jio
|
|
*/
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
$target_url = (string) get_query_var('jio_go_target_url', '');
|
|
$target_domain = (string) get_query_var('jio_go_target_domain', '');
|
|
$target_protocol = (string) get_query_var('jio_go_target_protocol', 'https');
|
|
|
|
if ($target_url === '') {
|
|
wp_safe_redirect(home_url('/'));
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<main id="main-content" class="container page-content-default jio-go-page" tabindex="-1">
|
|
<div class="content-wrap">
|
|
<div class="content-layout content-layout--no-sidebar">
|
|
<div class="content-layout__primary">
|
|
<article class="theme-box box-body radius8 main-shadow jio-go-card">
|
|
<div class="text-center muted-3-color em09"><?php esc_html_e('安全跳转提醒', 'jio'); ?></div>
|
|
<h1 class="article-title text-center"><?php esc_html_e('即将离开本站', 'jio'); ?></h1>
|
|
<div class="posts-copyright jio-go-card__target">
|
|
<div>
|
|
<span>🔗</span>
|
|
<text><?php echo esc_html($target_protocol . '://' . $target_domain); ?></text>
|
|
</div>
|
|
<div class="muted-2-color em09 jio-go-card__url"><?php echo esc_html($target_url); ?></div>
|
|
</div>
|
|
<div class="theme-box box-body separator em09 muted-3-color jio-go-card__tips">
|
|
<?php esc_html_e('外部链接内容不受本站控制,请确认目标地址可信后再继续访问。', 'jio'); ?>
|
|
</div>
|
|
<div class="text-center post-actions jio-go-card__actions">
|
|
<a href="<?php echo esc_url($target_url); ?>" class="action action-share" target="_blank" rel="nofollow noopener noreferrer">
|
|
<i class="fa fas fa-external-link-alt" aria-hidden="true"></i>
|
|
<span><?php esc_html_e('继续访问', 'jio'); ?></span>
|
|
</a>
|
|
<a href="javascript:history.back()" class="action action-favorite">
|
|
<i class="fa fas fa-arrow-left" aria-hidden="true"></i>
|
|
<span><?php esc_html_e('返回上一页', 'jio'); ?></span>
|
|
</a>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<?php
|
|
get_footer();
|