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:
1 parent
5b16bc6e15
commit
35bb96e82f
997 files changed
+28216
-28188
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* Main column: cover + title + editor + status.
|
||||
*
|
||||
* @var array $ctx
|
||||
* @package AKSRT
|
||||
* @package Jio
|
||||
*/
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
@@ -27,7 +27,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
tabindex="1"
|
||||
rows="1"
|
||||
maxlength="<?php echo esc_attr((string) ((int) ($settings['title_max'] ?? 30) * 4)); ?>"
|
||||
placeholder="<?php echo esc_attr((string) ($settings['title_placeholder'] ?? __('请输入标题', 'aksrt'))); ?>"
|
||||
placeholder="<?php echo esc_attr((string) ($settings['title_placeholder'] ?? __('请输入标题', 'jio'))); ?>"
|
||||
data-auto-height
|
||||
data-max-height="<?php echo wp_is_mobile() ? '110' : '78'; ?>"
|
||||
><?php echo esc_textarea((string) $ctx['current_title']); ?></textarea>
|
||||
@@ -37,24 +37,24 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php if (!$is_can_new) : ?>
|
||||
<div class="flex jc newposts-nocan" style="min-height:50vh;">
|
||||
<div class="text-center"><div><i class="fa fas fa-lock"></i></div>
|
||||
<p><?php esc_html_e('无法发布', 'aksrt'); ?></p>
|
||||
<p class="muted-color"><?php esc_html_e('你当前没有前台投稿权限,请联系管理员开通。', 'aksrt'); ?></p></div>
|
||||
<p><?php esc_html_e('无法发布', 'jio'); ?></p>
|
||||
<p class="muted-color"><?php esc_html_e('你当前没有前台投稿权限,请联系管理员开通。', 'jio'); ?></p></div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="newposts-editor">
|
||||
<?php
|
||||
$toolbar1 = ['formatselect', 'bold', 'italic', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'link'];
|
||||
if (!empty($ctx['can_upload_img'])) {
|
||||
$toolbar1[] = 'aksrt_image';
|
||||
$toolbar1[] = 'jio_image';
|
||||
}
|
||||
$toolbar1[] = 'aksrt_video';
|
||||
$toolbar1[] = 'jio_video';
|
||||
if (!empty($ctx['can_upload_file'])) {
|
||||
$toolbar1[] = 'aksrt_file';
|
||||
$toolbar1[] = 'jio_file';
|
||||
}
|
||||
if (!empty($ctx['can_hide'])) {
|
||||
$toolbar1[] = 'aksrt_hide';
|
||||
$toolbar1[] = 'jio_hide';
|
||||
}
|
||||
$toolbar1 = implode(',', array_merge($toolbar1, ['aksrt_quote', 'aksrt_precode', 'fullscreen', 'wp_adv']));
|
||||
$toolbar1 = implode(',', array_merge($toolbar1, ['jio_quote', 'jio_precode', 'fullscreen', 'wp_adv']));
|
||||
$plugins = 'paste,link,lists,fullscreen,wordpress,wplink,charmap,colorpicker,textcolor';
|
||||
$editor_plugin_path = get_template_directory() . '/assets/js/front-submit-editor.js';
|
||||
$editor_plugin_url = get_template_directory_uri() . '/assets/js/front-submit-editor.js';
|
||||
@@ -68,7 +68,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
}
|
||||
$external_plugins = static function (array $external, string $editor_id) use ($editor_plugin_url): array {
|
||||
if ($editor_id === 'post_content') {
|
||||
$external['aksrt_editor_tools'] = $editor_plugin_url;
|
||||
$external['jio_editor_tools'] = $editor_plugin_url;
|
||||
}
|
||||
return $external;
|
||||
};
|
||||
@@ -100,20 +100,20 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="flex ac jsb mt10">
|
||||
<span class="view-btn aksrt-submit-view-btn">
|
||||
<span class="view-btn jio-submit-view-btn">
|
||||
<?php if ($edit_post) : ?>
|
||||
<a class="but c-blue" target="_blank" href="<?php echo esc_url(get_permalink($edit_post)); ?>">
|
||||
<i class="fa fas fa-file-alt"></i> <?php esc_html_e('预览文章', 'aksrt'); ?>
|
||||
<i class="fa fas fa-file-alt"></i> <?php esc_html_e('预览文章', 'jio'); ?>
|
||||
</a>
|
||||
<?php if (current_user_can('manage_options')) : ?>
|
||||
<a class="but c-yellow" href="<?php echo esc_url(get_edit_post_link($edit_post)); ?>">
|
||||
<?php esc_html_e('后台编辑', 'aksrt'); ?>
|
||||
<?php esc_html_e('后台编辑', 'jio'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php elseif (!empty($ctx['draft_count']) && $ctx['user_id'] > 0) : ?>
|
||||
<?php
|
||||
$draft_url = function_exists('aksrt_get_user_center_url')
|
||||
? add_query_arg('post_status', 'draft', aksrt_get_user_center_url('posts'))
|
||||
$draft_url = function_exists('jio_get_user_center_url')
|
||||
? add_query_arg('post_status', 'draft', jio_get_user_center_url('posts'))
|
||||
: '';
|
||||
?>
|
||||
<?php if ($draft_url !== '') : ?>
|
||||
@@ -121,7 +121,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %d: draft count */
|
||||
esc_html__('您已有 %d 篇草稿 点击查看', 'aksrt'),
|
||||
esc_html__('您已有 %d 篇草稿 点击查看', 'jio'),
|
||||
(int) $ctx['draft_count']
|
||||
);
|
||||
?>
|
||||
@@ -130,9 +130,9 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<span class="modified-time aksrt-submit-modified-time">
|
||||
<span class="modified-time jio-submit-modified-time">
|
||||
<?php if (!empty($ctx['post_modified'])) : ?>
|
||||
<span class="badg"><?php echo esc_html(sprintf(__('最后保存:%s', 'aksrt'), $ctx['post_modified'])); ?></span>
|
||||
<span class="badg"><?php echo esc_html(sprintf(__('最后保存:%s', 'jio'), $ctx['post_modified'])); ?></span>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user