refactor: rename the theme brand and every identifier from AKSRT to Jio

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>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-11-01 20:05:04 +08:00
1 parent 5b16bc6e15
commit 35bb96e82f
997 files changed
+28216 -28188

No files matched your search

@@ -1,13 +1,13 @@
<?php
/** Render-level harness for the header multifunction component. */
namespace AKSRT\Core {
namespace Jio\Core {
final class Color {
public static function sanitize(string $value): string { return $value; }
}
}
namespace AKSRT\Settings {
namespace Jio\Settings {
final class Settings {
public static array $headerSlider = [];
public static function get_header_slider_settings(): array { return self::$headerSlider; }
@@ -16,8 +16,8 @@ namespace AKSRT\Settings {
namespace {
define('ABSPATH', __DIR__);
$GLOBALS['aksrt_mobile'] = false;
$GLOBALS['aksrt_lazy'] = true;
$GLOBALS['jio_mobile'] = false;
$GLOBALS['jio_lazy'] = true;
final class WP_Query {
public function get(string $key) { return 0; }
@@ -25,7 +25,7 @@ namespace {
$GLOBALS['wp_query'] = new WP_Query();
function is_admin(): bool { return false; }
function wp_is_mobile(): bool { return !empty($GLOBALS['aksrt_mobile']); }
function wp_is_mobile(): bool { return !empty($GLOBALS['jio_mobile']); }
function is_author(): bool { return false; }
function is_front_page(): bool { return true; }
function is_category(): bool { return false; }
@@ -44,19 +44,19 @@ namespace {
function esc_html($value): string { return htmlspecialchars((string) $value, ENT_QUOTES); }
function wp_strip_all_tags($value): string { return strip_tags((string) $value); }
function __($value, $domain = ''): string { return (string) $value; }
function get_bloginfo($show = ''): string { return 'AKSRT'; }
function get_bloginfo($show = ''): string { return 'Jio'; }
function home_url($path = ''): string { return 'https://example.test/' . ltrim((string) $path, '/'); }
function wp_kses($value, $allowed = []): string { return (string) $value; }
function aksrt_is_lazy(string $key): bool { return !empty($GLOBALS['aksrt_lazy']); }
function aksrt_get_lazy_thumb(string $size = ''): string { return 'https://example.test/placeholder.svg'; }
function aksrt_get_lazy_attr(string $key, string $src, string $class = '', string $lazy_src = ''): string {
if (aksrt_is_lazy($key)) {
function jio_is_lazy(string $key): bool { return !empty($GLOBALS['jio_lazy']); }
function jio_get_lazy_thumb(string $size = ''): string { return 'https://example.test/placeholder.svg'; }
function jio_get_lazy_attr(string $key, string $src, string $class = '', string $lazy_src = ''): string {
if (jio_is_lazy($key)) {
return ' class="lazyload ' . esc_attr($class) . '" src="' . esc_url($lazy_src) . '" data-src="' . esc_url($src) . '"';
}
return ' class="' . esc_attr($class) . '" src="' . esc_url($src) . '"';
}
function aksrt_get_search_box(array $args = []): string { return '<div class="search-input">search-box</div>'; }
function aksrt_icon_cover_card(array $card): string {
function jio_get_search_box(array $args = []): string { return '<div class="search-input">search-box</div>'; }
function jio_icon_cover_card(array $card): string {
return '<div class="icon-cover-card flex ac ' . esc_attr((string) ($card['class'] ?? '')) . '">' . esc_html((string) ($card['title'] ?? '')) . '</div>';
}
@@ -81,30 +81,30 @@ namespace {
'card_config' => ['show_widget_bg' => false, 'cards' => [['icon' => 'fa fas fa-star', 'title' => 'Card one']]],
'filter_blur' => ['pc_s', 'm_s'],
];
\AKSRT\Settings\Settings::$headerSlider = $settings;
\Jio\Settings\Settings::$headerSlider = $settings;
ob_start();
aksrt_header_slide();
jio_header_slide();
$desktop = (string) ob_get_clean();
$GLOBALS['aksrt_mobile'] = true;
$GLOBALS['jio_mobile'] = true;
ob_start();
aksrt_header_slide();
jio_header_slide();
$mobile = (string) ob_get_clean();
$settings['card_config']['show_widget_bg'] = true;
\AKSRT\Settings\Settings::$headerSlider = $settings;
\Jio\Settings\Settings::$headerSlider = $settings;
ob_start();
aksrt_header_slide();
jio_header_slide();
$module_background = (string) ob_get_clean();
$GLOBALS['aksrt_mobile'] = false;
$GLOBALS['aksrt_lazy'] = false;
$lazy_disabled = aksrt_get_header_slider_markup([
$GLOBALS['jio_mobile'] = false;
$GLOBALS['jio_lazy'] = false;
$lazy_disabled = jio_get_header_slider_markup([
'slides' => [['background' => 'https://example.test/eager.jpg']],
'class' => 'slide-index slide-header',
]);
$single_slide = aksrt_get_header_slider_markup([
$single_slide = jio_get_header_slider_markup([
'slides' => [['background' => 'https://example.test/single.jpg']],
'class' => 'slide-index slide-header',
'pagination' => true,
@@ -112,7 +112,7 @@ namespace {
]);
require_once dirname(__DIR__, 2) . '/src/Admin/PageConfigMetaBox.php';
$sanitize_cards = new \ReflectionMethod('AKSRT\\Admin\\PageConfigMetaBox', 'sanitize_card_options');
$sanitize_cards = new \ReflectionMethod('Jio\\Admin\\PageConfigMetaBox', 'sanitize_card_options');
$page_config_save = $sanitize_cards->invoke(null, ['show_widget_bg' => true, 'cards' => []]);
echo json_encode([