fix(frontend): align layouts posts and widgets with zibll
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user