-
-
@@ -79,9 +79,9 @@ $has_filter = $current_orderby !== 'date' || $current_price !== 'all' || $price_
-
+
';
if ($has_sidebar) { get_sidebar(); }
diff --git a/assets/admin/extract-naive-styles.mjs b/assets/admin/extract-naive-styles.mjs
index 838de687..82be1608 100644
--- a/assets/admin/extract-naive-styles.mjs
+++ b/assets/admin/extract-naive-styles.mjs
@@ -104,7 +104,7 @@ const COMPONENT_STYLES = [
]
async function extractStyles() {
- console.log('\n[AKSRT] 开始提取 NaiveUI 组件样式...\n')
+ console.log('\n[Jio] 开始提取 NaiveUI 组件样式...\n')
const allCss = []
let successCount = 0
@@ -137,9 +137,9 @@ async function extractStyles() {
// 静默跳过的后果是组件样式整体缺失(取色器曾因此没有尺寸和边框,糊成一团),
// 而页面不报错,只能靠肉眼发现。
if (code === 'ERR_MODULE_NOT_FOUND' || code === 'MODULE_NOT_FOUND') {
- console.error(`[AKSRT] 样式路径不存在,已跳过: ${componentPath}`)
+ console.error(`[Jio] 样式路径不存在,已跳过: ${componentPath}`)
} else {
- console.error(`[AKSRT] 样式提取异常,已跳过: ${componentPath}: ${err && err.message}`)
+ console.error(`[Jio] 样式提取异常,已跳过: ${componentPath}: ${err && err.message}`)
}
failCount++
}
@@ -148,7 +148,7 @@ async function extractStyles() {
const cssOutput = allCss.join('\n\n')
if (!cssOutput.trim()) {
- console.warn('[AKSRT] 警告:未提取到任何 NaiveUI 样式!')
+ console.warn('[Jio] 警告:未提取到任何 NaiveUI 样式!')
return null
}
@@ -165,7 +165,7 @@ ${cssOutput}`
await writeFile(cssFile, fullContent, 'utf-8')
- console.log(`[AKSRT] NaiveUI 样式提取完成:`)
+ console.log(`[Jio] NaiveUI 样式提取完成:`)
console.log(` 成功: ${successCount} 个组件`)
console.log(` 跳过: ${failCount} 个组件`)
console.log(` 输出: ${cssFile}`)
@@ -176,6 +176,6 @@ ${cssOutput}`
// 执行
extractStyles().catch((err) => {
- console.error('[AKSRT] 样式提取失败:', err)
+ console.error('[Jio] 样式提取失败:', err)
process.exit(1)
})
diff --git a/assets/admin/index.html b/assets/admin/index.html
index 7418cf13..b5855ff6 100644
--- a/assets/admin/index.html
+++ b/assets/admin/index.html
@@ -3,10 +3,10 @@
-
-
+
-
$label) :
$args = $preserve;
@@ -105,7 +105,7 @@ $has_filter = $current_orderby !== 'date' || $current_price !== 'all' || $price_
-
+
-
$label) :
$args = $preserve;
@@ -139,43 +139,43 @@ $has_filter = $current_orderby !== 'date' || $current_price !== 'all' || $price_
}
?>
—
-
+
-
+
'archive',
'overrides' => ['type' => 'card'],
]);
- aksrt_render_post_list(array_merge($render_config, ['wrapper_class' => 'content-stream__list']));
- aksrt_render_pagination(null, [
+ jio_render_post_list(array_merge($render_config, ['wrapper_class' => 'content-stream__list']));
+ jio_render_pagination(null, [
'query_context' => 'archive',
'render_config' => $render_config,
]);
?>
diff --git a/archive.php b/archive.php
index d5bf9b3f..60199623 100644
--- a/archive.php
+++ b/archive.php
@@ -2,7 +2,7 @@
/**
* Generic archive template.
*
- * @package AKSRT
+ * @package Jio
*/
defined('ABSPATH') || exit;
@@ -11,31 +11,31 @@ get_header();
global $wp_query;
-$render_config = function_exists('aksrt_archive_get_render_config')
- ? aksrt_archive_get_render_config(['context' => 'archive'])
+$render_config = function_exists('jio_archive_get_render_config')
+ ? jio_archive_get_render_config(['context' => 'archive'])
: ['context' => 'archive', 'mode' => 'list'];
-$has_sidebar = function_exists('aksrt_archive_has_sidebar')
- ? aksrt_archive_has_sidebar()
- : (function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar() : false);
+$has_sidebar = function_exists('jio_archive_has_sidebar')
+ ? jio_archive_has_sidebar()
+ : (function_exists('jio_is_show_sidebar') ? jio_is_show_sidebar() : false);
$archive_description = trim(wp_strip_all_tags((string) get_the_archive_description()));
$archive_summary = '';
if (is_author()) {
$author = get_queried_object();
if ($author instanceof WP_User) {
- $archive_summary = sprintf(__('作者:%s', 'aksrt'), $author->display_name);
+ $archive_summary = sprintf(__('作者:%s', 'jio'), $author->display_name);
}
} elseif ($archive_description !== '') {
$archive_summary = $archive_description;
} elseif (isset($wp_query->found_posts)) {
$archive_summary = sprintf(
- esc_html(_n('共 %d 篇内容', '共 %d 篇内容', (int) $wp_query->found_posts, 'aksrt')),
+ esc_html(_n('共 %d 篇内容', '共 %d 篇内容', (int) $wp_query->found_posts, 'jio')),
(int) $wp_query->found_posts
);
}
-if (function_exists('aksrt_archive_open_shell')) {
- aksrt_archive_open_shell([
+if (function_exists('jio_archive_open_shell')) {
+ jio_archive_open_shell([
'main_class' => 'site-main container',
'has_sidebar' => $has_sidebar,
'page_kind' => 'archive',
@@ -45,16 +45,16 @@ if (function_exists('aksrt_archive_open_shell')) {
}
?>
-
+
__('内容归档', 'aksrt'),
+ 'eyebrow' => __('内容归档', 'jio'),
'title' => get_the_archive_title(),
'desc' => $archive_summary,
'extra' => $admin_link,
@@ -62,19 +62,19 @@ if (function_exists('aksrt_archive_open_shell')) {
?>
'archive',
'query_context' => 'archive',
'stream_class' => 'content-stream--archive',
- 'empty_text' => __('暂无文章', 'aksrt'),
+ 'empty_text' => __('暂无文章', 'jio'),
]);
}
?>
$has_sidebar]);
+if (function_exists('jio_archive_close_shell')) {
+ jio_archive_close_shell(['has_sidebar' => $has_sidebar]);
} else {
echo '