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

+9 -9
View File
@@ -1,6 +1,6 @@
<?php
/**
* Single-post component helpers (Zibll parity).
* Single-post component helpers (legacy parity).
*
* Meta box, subtitle, status badge, allow-view gate, colored tags, related cards.
*
@@ -11,7 +11,7 @@ defined('ABSPATH') || exit;
if (!function_exists('aksrt_get_the_subtitle')) :
/**
* Post subtitle (meta `_subtitle`), Zibll get_the_subtitle style.
* Post subtitle (meta `_subtitle`), legacy get_the_subtitle style.
*
* @param bool $span Wrap in focus-color span.
* @param string $class Extra class on the span.
@@ -53,7 +53,7 @@ endif;
if (!function_exists('aksrt_get_posts_meta_items_html')) :
/**
* Zibll-like post meta pills: comment + views + likes.
* legacy-like post meta pills: comment + views + likes.
*
* @param int|null $post_id Post ID.
*/
@@ -97,7 +97,7 @@ endif;
if (!function_exists('aksrt_get_single_meta_box')) :
/**
* Zibll zib_get_single_meta_box equivalent.
* legacy equivalent.
*
* @param string $class Extra class on wrapper.
* @param string $direction Unused (kept for API parity).
@@ -150,7 +150,7 @@ endif;
if (!function_exists('aksrt_get_post_status_badge')) :
/**
* Non-publish status badge (text badge, Zibll-compatible classes).
* Non-publish status badge (text badge, legacy-compatible classes).
*/
function aksrt_get_post_status_badge($post = null): string {
$post = get_post($post);
@@ -221,7 +221,7 @@ if (!function_exists('aksrt_get_single_article_tags_html')) :
$tags_html = '';
$tags = get_the_tags($post_id) ?: [];
if (!empty($tags) && is_array($tags)) {
// Sort by count desc like Zibll.
// Sort by count desc like legacy.
usort($tags, static function ($a, $b) {
return (int) $b->count <=> (int) $a->count;
});
@@ -243,7 +243,7 @@ endif;
if (!function_exists('aksrt_get_post_allow_view_data')) :
/**
* Category/post reading permission gate (Zibll zib_get_post_allow_view_data subset).
* Category/post reading permission gate (legacy subset).
*
* Supported term meta keys (first match wins, walks parents):
* - term meta `post_cat_config` array with `allow_view` = signin|login|roles
@@ -448,7 +448,7 @@ endif;
if (!function_exists('aksrt_get_allow_view_deny_shell')) :
function aksrt_get_allow_view_deny_shell(string $title, string $body_html): string {
return '<div class="zib-widget text-center allow-view-deny">'
return '<div class="aksrt-panel text-center allow-view-deny">'
. '<div class="box-body">'
. '<p class="em12 muted-2-color mb10"><i class="fa fas fa-lock fa-2x" aria-hidden="true"></i></p>'
. '<h3 class="em12">' . esc_html($title) . '</h3>'
@@ -478,7 +478,7 @@ add_filter('the_content', 'aksrt_single_content_allow_view', 8);
if (!function_exists('aksrt_render_related_graphic_card')) :
/**
* Minimal Zibll style-3 related thumb card.
* Minimal legacy style-3 related thumb card.
*/
function aksrt_render_related_graphic_card(WP_Post $post): string {
$subtitle = class_exists('\AKSRT\Core\PostMetaBox')