fix(layout): restore Zibll float dual-column so content no longer overlaps sidebar
Align main shells to main.container > .content-wrap + .sidebar siblings, drop content-shell padding on dual-column hosts, and remove route flex overrides that disabled the negative-margin sidebar math.
This commit is contained in:
+4
-4
@@ -36,12 +36,12 @@ if (is_author()) {
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main content-shell content-shell--stream',
|
'main_class' => 'site-main container',
|
||||||
'has_sidebar' => $has_sidebar,
|
'has_sidebar' => $has_sidebar,
|
||||||
'page_kind' => 'archive',
|
'page_kind' => 'archive',
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
echo '<main id="main-content" class="site-main content-shell content-shell--stream" tabindex="-1"><div class="content-wrap"><div class="content-layout' . ($has_sidebar ? '' : ' content-layout--no-sidebar') . '"><div class="content-layout__primary">';
|
echo '<main id="main-content" class="site-main container" tabindex="-1"><div class="content-wrap"><div class="content-layout">';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="content-main content-main--archive">
|
<div class="content-main content-main--archive">
|
||||||
@@ -76,9 +76,9 @@ if (function_exists('aksrt_archive_open_shell')) {
|
|||||||
if (function_exists('aksrt_archive_close_shell')) {
|
if (function_exists('aksrt_archive_close_shell')) {
|
||||||
aksrt_archive_close_shell(['has_sidebar' => $has_sidebar]);
|
aksrt_archive_close_shell(['has_sidebar' => $has_sidebar]);
|
||||||
} else {
|
} else {
|
||||||
echo '</div>';
|
echo '</div></div>';
|
||||||
if ($has_sidebar) { get_sidebar(); }
|
if ($has_sidebar) { get_sidebar(); }
|
||||||
echo '</div></div></main>';
|
echo '</main>';
|
||||||
}
|
}
|
||||||
|
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|||||||
@@ -51,10 +51,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* Site shell — Zibll site-layout-1/2/3 float dual-column
|
* Site shell — Zibll site-layout-1/2/3 float dual-column (main.css 1:1)
|
||||||
|
* DOM: main.container > .content-wrap + .sidebar (siblings)
|
||||||
* body.site-layout-1 = no sidebar
|
* body.site-layout-1 = no sidebar
|
||||||
* body.site-layout-2 = sidebar right
|
* body.site-layout-2 = sidebar right
|
||||||
* body.site-layout-3 = sidebar left
|
* body.site-layout-3 = sidebar left
|
||||||
|
*
|
||||||
|
* Never put display:flex/grid on .content-wrap for dual-column pages —
|
||||||
|
* float is ignored under flex/grid and .sidebar negative-margin then overlaps.
|
||||||
* ============================================================ */
|
* ============================================================ */
|
||||||
|
|
||||||
main.container,
|
main.container,
|
||||||
@@ -63,6 +67,18 @@ main.content-shell,
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* content-shell is a padding shell for non-dual pages; when it also hosts
|
||||||
|
* the float dual-column, kill horizontal padding so negative-margin math matches Zibll. */
|
||||||
|
main.container.content-shell,
|
||||||
|
main.content-shell.container,
|
||||||
|
.site-main.container.content-shell {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
max-width: var(--container, var(--mian-max-width, 1200px));
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
main.container::after,
|
main.container::after,
|
||||||
main.content-shell::after,
|
main.content-shell::after,
|
||||||
.site-main.container::after {
|
.site-main.container::after {
|
||||||
@@ -71,10 +87,14 @@ main.content-shell::after,
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Zibll: .content-wrap { float:left; width:100%; } — display:block restores float
|
||||||
|
* if a route stylesheet accidentally set flex/grid on the wrap. */
|
||||||
.content-wrap {
|
.content-wrap {
|
||||||
float: left;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
display: block;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-layout {
|
.content-layout {
|
||||||
@@ -83,6 +103,7 @@ main.content-shell::after,
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-layout__primary {
|
.content-layout__primary {
|
||||||
@@ -97,6 +118,7 @@ main.content-shell::after,
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-layout__aside {
|
.content-layout__aside {
|
||||||
@@ -104,12 +126,14 @@ main.content-shell::after,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* No sidebar */
|
/* No sidebar */
|
||||||
body.site-layout-1 .sidebar {
|
body.site-layout-1 .sidebar,
|
||||||
|
.site-layout-1 .sidebar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-layout-1 .content-layout,
|
body.site-layout-1 .content-layout,
|
||||||
body.site-layout-1 .content-layout--no-sidebar {
|
body.site-layout-1 .content-layout--no-sidebar,
|
||||||
|
.site-layout-1 .content-layout {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
@@ -120,13 +144,15 @@ body.site-layout-1 .content-layout--no-sidebar {
|
|||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sidebar RIGHT (layout 2) — hard 311px like Zibll main.css (runtime var must match) */
|
/* Sidebar RIGHT (layout 2) — Zibll uses hard 311px; runtime --sidebar-width must match */
|
||||||
body.site-layout-2 .content-layout {
|
body.site-layout-2 .content-layout,
|
||||||
|
.site-layout-2 .content-layout {
|
||||||
margin-right: calc(var(--sidebar-width, 311px) + 15px);
|
margin-right: calc(var(--sidebar-width, 311px) + 15px);
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-layout-2 .sidebar {
|
body.site-layout-2 .sidebar,
|
||||||
|
.site-layout-2 .sidebar {
|
||||||
float: left;
|
float: left;
|
||||||
width: var(--sidebar-width, 311px);
|
width: var(--sidebar-width, 311px);
|
||||||
margin-left: calc(0px - var(--sidebar-width, 311px));
|
margin-left: calc(0px - var(--sidebar-width, 311px));
|
||||||
@@ -134,12 +160,14 @@ body.site-layout-2 .sidebar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Sidebar LEFT (layout 3) */
|
/* Sidebar LEFT (layout 3) */
|
||||||
body.site-layout-3 .content-layout {
|
body.site-layout-3 .content-layout,
|
||||||
|
.site-layout-3 .content-layout {
|
||||||
margin-left: calc(var(--sidebar-width, 311px) + 15px);
|
margin-left: calc(var(--sidebar-width, 311px) + 15px);
|
||||||
margin-right: unset;
|
margin-right: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-layout-3 .sidebar {
|
body.site-layout-3 .sidebar,
|
||||||
|
.site-layout-3 .sidebar {
|
||||||
float: left;
|
float: left;
|
||||||
width: var(--sidebar-width, 311px);
|
width: var(--sidebar-width, 311px);
|
||||||
margin-left: -100%;
|
margin-left: -100%;
|
||||||
@@ -165,13 +193,17 @@ body.site-layout-3 .sidebar {
|
|||||||
/* Mobile collapse (Zibll max-width: 991px) */
|
/* Mobile collapse (Zibll max-width: 991px) */
|
||||||
@media (max-width: 991.98px) {
|
@media (max-width: 991.98px) {
|
||||||
body.site-layout-2 .content-layout,
|
body.site-layout-2 .content-layout,
|
||||||
body.site-layout-3 .content-layout {
|
body.site-layout-3 .content-layout,
|
||||||
|
.site-layout-2 .content-layout,
|
||||||
|
.site-layout-3 .content-layout {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-layout-2 .sidebar,
|
body.site-layout-2 .sidebar,
|
||||||
body.site-layout-3 .sidebar,
|
body.site-layout-3 .sidebar,
|
||||||
|
.site-layout-2 .sidebar,
|
||||||
|
.site-layout-3 .sidebar,
|
||||||
.sidebar {
|
.sidebar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,21 +4,7 @@
|
|||||||
* @package AKSRT
|
* @package AKSRT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.page-template-archives .content-wrap {
|
/* Dual-column geometry owned by layout.css site-layout float rules (Zibll). */
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-template-archives .content-layout {
|
|
||||||
flex: 1 1 0;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-template-archives .sidebar {
|
|
||||||
flex: 0 0 300px;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.archives-month-list {
|
.archives-month-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -76,8 +62,3 @@
|
|||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
.page-template-archives .sidebar {
|
|
||||||
flex: 1 1 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,22 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* header card */
|
/* header card */
|
||||||
.page-template-posts-navs .content-wrap,
|
/* Dual-column geometry owned by layout.css site-layout float rules (Zibll). */
|
||||||
main.page-template-posts-navs {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
main.page-template-posts-navs .content-wrap {
|
|
||||||
flex: 1 1 0;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
main.page-template-posts-navs .sidebar {
|
|
||||||
flex: 0 0 260px;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.posts-navs .title-theme h2 {
|
.posts-navs .title-theme h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -247,15 +232,4 @@ main.page-template-posts-navs .sidebar {
|
|||||||
outline: 2px dashed var(--focus-color, #f04494);
|
outline: 2px dashed var(--focus-color, #f04494);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
main.page-template-posts-navs .sidebar {
|
|
||||||
flex: 1 1 100%;
|
|
||||||
order: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#post-navs-sz .col-xs-6,
|
|
||||||
#post-navs-sz .col-sm-6 {
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -77,13 +77,4 @@
|
|||||||
color: #e74c3c;
|
color: #e74c3c;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template-user-auth .content-wrap {
|
/* Dual-column geometry owned by layout.css site-layout float rules (Zibll). */
|
||||||
display: flex;
|
|
||||||
gap: 20px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-template-user-auth .content-layout {
|
|
||||||
flex: 1 1 0;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|||||||
+1
-1
@@ -193,7 +193,7 @@ foreach ($custom_dimensions as $dim) {
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--stream',
|
'main_class' => 'site-main container',
|
||||||
'has_sidebar' => $has_sidebar,
|
'has_sidebar' => $has_sidebar,
|
||||||
'top_fluid' => ['cat_top_fluid'],
|
'top_fluid' => ['cat_top_fluid'],
|
||||||
'page_kind' => 'category',
|
'page_kind' => 'category',
|
||||||
|
|||||||
@@ -415,7 +415,14 @@ if (!function_exists('aksrt_archive_open_shell')) :
|
|||||||
'page_kind' => 'archive',
|
'page_kind' => 'archive',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Force container; strip content-shell* so float dual-column is not padded/max-width nested.
|
||||||
$main_class = trim((string) $args['main_class']);
|
$main_class = trim((string) $args['main_class']);
|
||||||
|
if ($main_class === '') {
|
||||||
|
$main_class = 'site-main container';
|
||||||
|
} elseif (strpos($main_class, 'container') === false) {
|
||||||
|
$main_class .= ' container';
|
||||||
|
}
|
||||||
|
$main_class = trim((string) preg_replace('/\bcontent-shell(?:--[a-z0-9-]+)?\b/i', '', $main_class));
|
||||||
?>
|
?>
|
||||||
<main id="main-content" class="<?php echo esc_attr($main_class); ?>" tabindex="-1">
|
<main id="main-content" class="<?php echo esc_attr($main_class); ?>" tabindex="-1">
|
||||||
<?php
|
<?php
|
||||||
@@ -424,8 +431,7 @@ if (!function_exists('aksrt_archive_open_shell')) :
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="content-wrap">
|
<div class="content-wrap">
|
||||||
<div class="content-layout<?php echo !empty($args['has_sidebar']) ? '' : ' content-layout--no-sidebar'; ?>">
|
<div class="content-layout">
|
||||||
<div class="content-layout__primary">
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
@@ -445,7 +451,6 @@ if (!function_exists('aksrt_archive_close_shell')) :
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php if (!empty($args['has_sidebar'])) : ?>
|
<?php if (!empty($args['has_sidebar'])) : ?>
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@@ -1026,8 +1026,7 @@ if (!function_exists('aksrt_homepage_render_layout')) {
|
|||||||
?>
|
?>
|
||||||
<main id="main-content" role="main" class="container site-main aksrt-homepage" tabindex="-1">
|
<main id="main-content" role="main" class="container site-main aksrt-homepage" tabindex="-1">
|
||||||
<div class="content-wrap aksrt-homepage__shell">
|
<div class="content-wrap aksrt-homepage__shell">
|
||||||
<div class="content-layout<?php echo $has_sidebar ? '' : ' content-layout--no-sidebar'; ?> aksrt-homepage__content-layout">
|
<div class="content-layout aksrt-homepage__content-layout aksrt-homepage__primary">
|
||||||
<div class="content-layout__primary aksrt-homepage__primary">
|
|
||||||
<?php
|
<?php
|
||||||
aksrt_homepage_render_widget_zone(
|
aksrt_homepage_render_widget_zone(
|
||||||
['home_top_content'],
|
['home_top_content'],
|
||||||
@@ -1128,7 +1127,6 @@ if (!function_exists('aksrt_homepage_render_layout')) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php aksrt_homepage_render_sidebar(); ?>
|
<?php aksrt_homepage_render_sidebar(); ?>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -19,11 +19,16 @@ get_header();
|
|||||||
// Fallback: when homepage shell is unavailable, keep a standard archive loop.
|
// Fallback: when homepage shell is unavailable, keep a standard archive loop.
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// Zibll dual-column: sidebar is a sibling of .content-wrap under main.container.
|
||||||
|
// Visibility is driven by body.site-layout-* (aksrt_is_show_sidebar), not widget presence.
|
||||||
|
$has_sidebar = function_exists('aksrt_is_show_sidebar')
|
||||||
|
? aksrt_is_show_sidebar()
|
||||||
|
: is_active_sidebar('sidebar-blog');
|
||||||
|
?>
|
||||||
<main id="main-content" class="site-main container" tabindex="-1">
|
<main id="main-content" class="site-main container" tabindex="-1">
|
||||||
<?php $has_sidebar = is_active_sidebar('sidebar-blog'); ?>
|
|
||||||
<div class="content-wrap">
|
<div class="content-wrap">
|
||||||
<div class="content-layout<?php echo $has_sidebar ? '' : ' content-layout--no-sidebar'; ?>">
|
<div class="content-layout">
|
||||||
<div class="content-layout__primary">
|
|
||||||
<?php
|
<?php
|
||||||
$render_config = function_exists('aksrt_resolve_post_list_render_config')
|
$render_config = function_exists('aksrt_resolve_post_list_render_config')
|
||||||
? aksrt_resolve_post_list_render_config(['context' => 'archive'])
|
? aksrt_resolve_post_list_render_config(['context' => 'archive'])
|
||||||
@@ -39,12 +44,10 @@ get_header();
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<?php if ($has_sidebar) : ?>
|
<?php if ($has_sidebar) : ?>
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -22,17 +22,19 @@ $show_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar
|
|||||||
<div id="reading-progress-global" class="reading-progress-bar" role="progressbar" aria-label="<?php esc_attr_e('阅读进度', 'aksrt'); ?>" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"></div>
|
<div id="reading-progress-global" class="reading-progress-bar" role="progressbar" aria-label="<?php esc_attr_e('阅读进度', 'aksrt'); ?>" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<main id="main-content" class="site-main container content-shell content-shell--page page-content-<?php echo esc_attr($page_content_style); ?> page-id-<?php echo esc_attr((string) $page_id); ?>" tabindex="-1">
|
<?php
|
||||||
|
// Zibll page.php: fluid top OUTSIDE main; main.container + content-wrap/layout + sidebar sibling.
|
||||||
|
// Do not put content-shell padding/max-width on the dual-column host (breaks float math).
|
||||||
|
?>
|
||||||
<?php if (is_active_sidebar('page_top_fluid_' . $page_id)) : ?>
|
<?php if (is_active_sidebar('page_top_fluid_' . $page_id)) : ?>
|
||||||
<div class="fluid-widget-wrap">
|
<div class="fluid-widget-wrap">
|
||||||
<?php dynamic_sidebar('page_top_fluid_' . $page_id); ?>
|
<?php dynamic_sidebar('page_top_fluid_' . $page_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<main id="main-content" class="site-main container page-content-<?php echo esc_attr($page_content_style); ?> page-id-<?php echo esc_attr((string) $page_id); ?>" tabindex="-1">
|
||||||
<div class="content-wrap">
|
<div class="content-wrap">
|
||||||
<div class="content-layout<?php echo $show_sidebar ? '' : ' content-layout--no-sidebar'; ?>">
|
<div class="content-layout">
|
||||||
<div class="content-layout__primary">
|
|
||||||
<?php if (is_active_sidebar('page_top_content_' . $page_id)) : ?>
|
<?php if (is_active_sidebar('page_top_content_' . $page_id)) : ?>
|
||||||
<?php dynamic_sidebar('page_top_content_' . $page_id); ?>
|
<?php dynamic_sidebar('page_top_content_' . $page_id); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@@ -92,18 +94,16 @@ $show_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if ($show_sidebar) : ?>
|
<?php if ($show_sidebar) : ?>
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</main>
|
||||||
|
|
||||||
<?php if (is_active_sidebar('page_bottom_fluid_' . $page_id)) : ?>
|
<?php if (is_active_sidebar('page_bottom_fluid_' . $page_id)) : ?>
|
||||||
<div class="fluid-widget-wrap">
|
<div class="fluid-widget-wrap">
|
||||||
<?php dynamic_sidebar('page_bottom_fluid_' . $page_id); ?>
|
<?php dynamic_sidebar('page_bottom_fluid_' . $page_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</main>
|
|
||||||
|
|
||||||
<?php if (!empty($page_settings['lightbox'])) : ?>
|
<?php if (!empty($page_settings['lightbox'])) : ?>
|
||||||
<div class="lightbox-overlay" id="lightbox-overlay" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e('图片预览', 'aksrt'); ?>">
|
<div class="lightbox-overlay" id="lightbox-overlay" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e('图片预览', 'aksrt'); ?>">
|
||||||
|
|||||||
+1
-1
@@ -118,7 +118,7 @@ $has_sidebar = function_exists('aksrt_archive_has_sidebar')
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--stream',
|
'main_class' => 'site-main container',
|
||||||
'has_sidebar' => $has_sidebar,
|
'has_sidebar' => $has_sidebar,
|
||||||
'top_fluid' => ['search_top_fluid'],
|
'top_fluid' => ['search_top_fluid'],
|
||||||
'page_kind' => 'search',
|
'page_kind' => 'search',
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ if (!empty($cat_filter_terms)) {
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--stream',
|
'main_class' => 'site-main container',
|
||||||
'has_sidebar' => $has_sidebar,
|
'has_sidebar' => $has_sidebar,
|
||||||
'top_fluid' => ['tag_top_fluid'],
|
'top_fluid' => ['tag_top_fluid'],
|
||||||
'page_kind' => 'tag',
|
'page_kind' => 'tag',
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ if ($page_title === '') {
|
|||||||
<?php
|
<?php
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--page',
|
'main_class' => 'site-main container ',
|
||||||
'has_sidebar' => false,
|
'has_sidebar' => false,
|
||||||
'page_kind' => 'categories',
|
'page_kind' => 'categories',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ $links = function_exists('aksrt_get_friend_links') ? aksrt_get_friend_links() :
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--page page-content-default',
|
'main_class' => 'site-main container page-content-default',
|
||||||
'has_sidebar' => false,
|
'has_sidebar' => false,
|
||||||
'page_kind' => 'friends',
|
'page_kind' => 'friends',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ $query = new WP_Query([
|
|||||||
|
|
||||||
if (function_exists('aksrt_archive_open_shell')) {
|
if (function_exists('aksrt_archive_open_shell')) {
|
||||||
aksrt_archive_open_shell([
|
aksrt_archive_open_shell([
|
||||||
'main_class' => 'site-main container content-shell content-shell--page page-content-default',
|
'main_class' => 'site-main container page-content-default',
|
||||||
'has_sidebar' => false,
|
'has_sidebar' => false,
|
||||||
'page_kind' => 'newposts',
|
'page_kind' => 'newposts',
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user