feat(frontend): adopt zibll site-layout-1/2/3 float dual-column system

Wire settings-driven sidebar visibility and body site-layout classes,
replace content-layout CSS grid with Zibll float geometry, move sidebar
DOM to content-wrap sibling across single/archive/page/home, and add
post meta show_layout overrides.
This commit is contained in:
2026-07-15 00:30:26 +08:00
parent 232b6eb752
commit 12673fb819
15 changed files with 354 additions and 168 deletions
+6 -6
View File
@@ -3,6 +3,8 @@
* Sidebar template for generic pages.
*
* Single/home own their asides. This template only serves archive/page contexts.
* Callers only include this when aksrt_is_show_sidebar() is true.
* Keep the column even if widgets are empty (zibll parity).
*
* @package AKSRT
*/
@@ -16,12 +18,6 @@ if (wp_is_mobile()) {
$sidebar_id = function_exists('aksrt_resolve_sidebar_id')
? aksrt_resolve_sidebar_id()
: 'sidebar-blog';
if (!is_active_sidebar($sidebar_id)
&& !is_active_sidebar('all_sidebar_top')
&& !is_active_sidebar('all_sidebar_bottom')) {
return;
}
?>
<div class="sidebar" role="complementary" aria-label="<?php esc_attr_e('侧栏', 'aksrt'); ?>">
@@ -31,6 +27,10 @@ if (!is_active_sidebar($sidebar_id)
<?php if (is_active_sidebar($sidebar_id)) : ?>
<?php dynamic_sidebar($sidebar_id); ?>
<?php elseif ((is_home() || is_front_page()) && is_active_sidebar('home_sidebar')) : ?>
<?php dynamic_sidebar('home_sidebar'); ?>
<?php elseif ((is_home() || is_front_page()) && is_active_sidebar('sidebar-blog')) : ?>
<?php dynamic_sidebar('sidebar-blog'); ?>
<?php endif; ?>
<?php if (is_active_sidebar('all_sidebar_bottom')) : ?>