Zibll 主线收口:统一 single 并清退 compat 资源路径

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-09 20:30:49 +08:00
co-authored by Claude
parent 0a6f97af21
commit 09f1eec909
26 changed files with 158 additions and 1325 deletions
+20 -35
View File
@@ -2,45 +2,30 @@
/**
* Homepage entry template.
*
* Front page requests are always delegated to the fixed homepage skeleton so
* the site reads as a primary Zibll-style operation hub instead of a page body.
* The rebuild treats the fixed homepage skeleton as the only supported front-page
* experience. Static page-body fallback is intentionally removed so the site
* always lands on the Zibll-style operation hub.
*
* @package AKSRT
*/
if (function_exists('aksrt_render_fixed_homepage') && aksrt_render_fixed_homepage()) {
return;
get_header();
if (function_exists('aksrt_homepage_render_layout')) {
aksrt_homepage_render_layout();
} else {
?>
<main id="main-content" class="site-main content-shell" tabindex="-1">
<div class="content-layout content-layout--no-sidebar">
<div class="content-layout__primary">
<section class="widget widget-card box-body">
<h1 class="entry-title"><?php esc_html_e('首页骨架未加载', 'aksrt'); ?></h1>
<p><?php esc_html_e('固定首页骨架当前不可用,请检查主题加载链路。', 'aksrt'); ?></p>
</section>
</div>
</div>
</main>
<?php
}
get_header();
?>
<main id="main-content" class="site-main content-shell" tabindex="-1">
<?php $has_sidebar = is_active_sidebar('sidebar-blog'); ?>
<div class="content-layout<?php echo $has_sidebar ? '' : ' content-layout--no-sidebar'; ?>">
<div class="content-layout__primary">
<?php
while ( have_posts() ) :
the_post();
?>
<article <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
?>
</div>
<?php if ($has_sidebar) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</main>
<?php
get_footer();