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>
55 lines
2.2 KiB
PHP
55 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Routed message center shell.
|
|
*
|
|
* @package Jio
|
|
*/
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
if (!is_user_logged_in()) {
|
|
wp_safe_redirect(function_exists('jio_get_login_url') ? jio_get_login_url() : wp_login_url(jio_get_messages_page_url()));
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
\Jio\WidgetSystem\WidgetAreas::render('msg_top_fluid', 'fluid-widget-wrap');
|
|
|
|
$messages_enabled = !class_exists('\Jio\Settings\Settings') || \Jio\Settings\Settings::message_enabled();
|
|
$user_id = get_current_user_id();
|
|
$current_view = jio_normalize_message_view((string) get_query_var('jio_message_view'));
|
|
$paginate_type = jio_get_message_center_paginate_type();
|
|
?>
|
|
|
|
<main id="main-content" class="site-main content-shell" tabindex="-1">
|
|
<?php if (function_exists('jio_breadcrumbs')) { jio_breadcrumbs(); } ?>
|
|
<div class="container">
|
|
<header class="messages-center__header">
|
|
<h1 class="messages-center__title"><?php esc_html_e('消息中心', 'jio'); ?></h1>
|
|
<p class="messages-center__subtitle"><?php esc_html_e('查看站内通知与互动提醒', 'jio'); ?></p>
|
|
</header>
|
|
|
|
<?php if (!$messages_enabled) : ?>
|
|
<div class="messages-center messages-center--disabled">
|
|
<div class="messages-empty">
|
|
<span class="messages-empty__icon"><i class="fa fas fa-bell-slash"></i></span>
|
|
<p class="messages-empty__text"><?php esc_html_e('站内消息功能未开启', 'jio'); ?></p>
|
|
<p class="messages-empty__hint"><?php esc_html_e('请联系管理员在后台「用户 → 消息通知」中启用。', 'jio'); ?></p>
|
|
</div>
|
|
</div>
|
|
<?php else : ?>
|
|
<div class="messages-center" data-message-center data-view="<?php echo esc_attr($current_view); ?>" data-paginate-type="<?php echo esc_attr($paginate_type); ?>">
|
|
<aside class="messages-center__nav" aria-label="<?php esc_attr_e('消息分类', 'jio'); ?>" data-message-nav>
|
|
<?php jio_render_message_center_nav($current_view, jio_get_message_center_counts($user_id)); ?>
|
|
</aside>
|
|
<section class="messages-center__content" data-message-content aria-live="polite" tabindex="-1">
|
|
<?php jio_render_message_center_list($user_id, $current_view); ?>
|
|
</section>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</main>
|
|
|
|
<?php \Jio\WidgetSystem\WidgetAreas::render('msg_bottom_fluid', 'fluid-widget-wrap'); ?>
|
|
<?php get_footer(); ?>
|