refactor(assets): vendor 资产迁入标准目录并全仓去除 zibll 标识

- assets/vendor 全量迁移: fontawesome5→assets/fontawesome5, css→assets/css,
  js→assets/js/runtime(避开 14 个同名自有文件), img 合并去重→assets/img,
  fonts→assets/fonts; 删除 assets/vendor
- libs 五个与 widgets/third-party 字节相同的库不重复入库, loader paths 改指向
- 运行时切换: _win.uri=assets 根, loader baseUrl=/js/runtime, enlighter 注入
  路径同步; PHP 7 个引用文件切换并改名 $zibll_*→$runtime_*
- 去品牌: Qinver 头注释/品牌 console.log/演示链接清除, 默认文案中性化
- 功能标识符改名: zib__→aksrt__, zib_ajax→aksrt_ajax, window.zib→
  window.aksrtLegacy, zibllblock/*→aksrtblock/*, .zib-widget→.aksrt-panel,
  .zib-slider→.aksrt-slider, zib_menu_options meta 键等
- 自有 CSS 改名: legacy-utilities/compat-vars/footer shell
- admin SPA 重建; 契约测试同步(路径/断言/文件更名)
- 例外保留: tests/visual 对照环境与 fixtures 前缀(外部 Zibll 产品引用)

验证: php -l 133 个改动文件通过; runtime 86 个 JS node --check 通过;
契约测试 68/70(2 个失败经 stash 对照确认为存量问题)
This commit is contained in:
kate522 committed 2026-08-22 16:16:30 +08:00
1 parent 4f2391fb64
commit 9375b1c30c
591 files changed
+1690 -11041

No files matched your search

+13 -13
View File
@@ -1,6 +1,6 @@
<?php
/**
* Single post render helpers (Zibll-style composition pieces).
* Single post render helpers (legacy-style composition pieces).
*
* @package AKSRT
*/
@@ -9,7 +9,7 @@ defined('ABSPATH') || exit;
if (!function_exists('aksrt_single_render_cover')) :
/**
* Cover / slide / video header (Zibll single-head-cover).
* Cover / slide / video header (legacy single-head-cover).
*
* @param array<string,mixed> $ctx Single context.
*/
@@ -167,7 +167,7 @@ if (!function_exists('aksrt_single_render_box_header')) :
<?php endif; ?>
<?php
// Author bar always shows in header (Zibll zib_single_box_header).
// Author bar always shows in header (legacy).
// `authordesc` only controls the after-box author card.
aksrt_single_render_author_bar([
'show_actions' => true,
@@ -405,7 +405,7 @@ if (!function_exists('aksrt_single_render_author_card')) :
|| !empty($aksrt_post_settings['post_rewards_enabled'])
|| !empty($aksrt_post_settings['post_rewards_s']);
?>
<div class="user-card author zib-widget">
<div class="user-card author aksrt-panel">
<div class="card-content mt10 relative">
<div class="user-content">
<div class="user-avatar"><?php echo $avatar; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
@@ -507,7 +507,7 @@ endif;
if (!function_exists('aksrt_single_render_prevnext')) :
/**
* Previous / next navigation (Zibll .article-nav).
* Previous / next navigation (legacy .article-nav).
*
* @param array<string,mixed> $ctx Single context.
*/
@@ -520,7 +520,7 @@ if (!function_exists('aksrt_single_render_prevnext')) :
return;
}
// Zibll: constrain to current category when available.
// legacy: constrain to current category when available.
$in_same_term = !empty(get_the_category());
$prev = get_previous_post($in_same_term, '', 'category');
$next = get_next_post($in_same_term, '', 'category');
@@ -560,7 +560,7 @@ endif;
if (!function_exists('aksrt_single_related_query_args')) :
/**
* Build related-posts WP_Query args (Zibll-like multi-tax OR + orderby).
* Build related-posts WP_Query args (legacy-like multi-tax OR + orderby).
*
* @param int $post_id Post ID.
* @param array<string,mixed> $settings Single display settings.
@@ -652,7 +652,7 @@ endif;
if (!function_exists('aksrt_single_render_related')) :
/**
* Related posts — Zibll-like list + optional shared mini renderer.
* Related posts — legacy-like list + optional shared mini renderer.
*
* @param array<string,mixed> $ctx Single context.
*/
@@ -718,7 +718,7 @@ if (!function_exists('aksrt_single_render_related')) :
<div class="box-body notop">
<div class="title-theme"><?php echo esc_html($title); ?></div>
</div>
<div class="zib-widget">
<div class="aksrt-panel">
<?php if ($style === 'img') : ?>
<div class="swiper-container swiper-scroll">
<div class="swiper-wrapper"><?php echo $posts_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
@@ -737,7 +737,7 @@ endif;
if (!function_exists('aksrt_single_render_pay_box')) :
/**
* Unified single pay module (Zibll zibpay_posts_pay_content equivalent).
* Unified single pay module (legacy aksrtpay_posts_pay_content equivalent).
*
* @param array<string,mixed> $ctx Single context.
*/
@@ -761,7 +761,7 @@ if (!function_exists('aksrt_single_render_pay_box')) :
$pay_type = (string) ($ctx['pay_type'] ?? 'no');
if (!empty($ctx['has_download']) || $pay_type === 'download') {
echo '<div class="zib-widget pay-box pay-type-download" id="posts-pay">';
echo '<div class="aksrt-panel pay-box pay-type-download" id="posts-pay">';
get_template_part('templates/parts/resource-download-box');
echo '</div>';
return;
@@ -773,7 +773,7 @@ if (!function_exists('aksrt_single_render_pay_box')) :
$has_access = function_exists('aksrt_has_paid_access') ? aksrt_has_paid_access($post) : false;
$paid_class = $has_access ? 'paid-box' : 'pay-box';
echo '<div class="zib-widget ' . esc_attr($paid_class) . ' pay-type-' . esc_attr($pay_type) . '" id="posts-pay">';
echo '<div class="aksrt-panel ' . esc_attr($paid_class) . ' pay-type-' . esc_attr($pay_type) . '" id="posts-pay">';
if ($has_access) {
if ($pay_type === 'gallery' && function_exists('aksrt_render_paid_gallery')) {
echo aksrt_render_paid_gallery($post); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
@@ -807,7 +807,7 @@ endif;
if (!function_exists('aksrt_single_render_article')) :
/**
* Main article box (Zibll zib_single_content order).
* Main article box (legacy order).
*
* @param array<string,mixed> $ctx Single context.
*/