fix(frontend): align layouts posts and widgets with zibll

This commit is contained in:
2026-08-17 21:47:40 +08:00
parent 526364b438
commit 5d45eb053b
27 changed files with 3222 additions and 2777 deletions
+3 -7
View File
@@ -21,13 +21,9 @@ get_header();
<?php
// Zibll dual-column: sidebar is a sibling of .content-wrap under main.container.
// A sidebar column is useful only when visibility is enabled and at least one
// of its global/page-specific widget zones has content.
$has_sidebar_widgets = function_exists('aksrt_has_current_sidebar_widgets')
? aksrt_has_current_sidebar_widgets()
: (is_active_sidebar('all_sidebar_top') || is_active_sidebar('home_sidebar') || is_active_sidebar('all_sidebar_bottom'));
$has_sidebar = (function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar() : true)
&& $has_sidebar_widgets;
// Settings and page metadata own visibility; widget activity never changes
// the body layout after render.
$has_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar() : true;
?>
<main id="main-content" class="site-main container" tabindex="-1">
<div class="content-wrap">