feat(shop): archive/order widget zones for home sidebar slots

Wire shop_home top/sidebar and product bottom fluid on product archives,
plus order center top/bottom fluid areas.
This commit is contained in:
2026-07-19 01:43:09 +08:00
parent 6bcb16fb8a
commit 9643ce6d44
3 changed files with 28 additions and 0 deletions
+6
View File
@@ -55,6 +55,9 @@ $tabs = [
];
?>
<?php if (is_active_sidebar('shop_order_top_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_order_top_fluid'); ?></div>
<?php endif; ?>
<main id="main-content" class="site-main content-shell" tabindex="-1">
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
<div class="container aksrt-orders-page" data-aksrt-order-center>
@@ -369,4 +372,7 @@ $tabs = [
</div>
</main>
<?php if (is_active_sidebar('shop_order_bottom_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_order_bottom_fluid'); ?></div>
<?php endif; ?>
<?php get_footer(); ?>
+11
View File
@@ -9,6 +9,12 @@ defined('ABSPATH') || exit;
get_header();
if (is_active_sidebar('shop_home_top_fluid')) {
echo '<div class="aksrt-fluid-widget aksrt-fluid-widget--shop">';
dynamic_sidebar('shop_home_top_fluid');
echo '</div>';
}
$term = get_queried_object();
$paged = max(1, (int) get_query_var('paged'));
$orderby = '';
@@ -141,4 +147,9 @@ wp_enqueue_script(
AKSRT_VERSION,
true
);
if (is_active_sidebar('shop_product_bottom_fluid')) {
echo '<div class="aksrt-fluid-widget aksrt-fluid-widget--shop">';
dynamic_sidebar('shop_product_bottom_fluid');
echo '</div>';
}
get_footer();
+11
View File
@@ -9,6 +9,12 @@ defined('ABSPATH') || exit;
get_header();
if (is_active_sidebar('shop_home_top_fluid')) {
echo '<div class="aksrt-fluid-widget aksrt-fluid-widget--shop">';
dynamic_sidebar('shop_home_top_fluid');
echo '</div>';
}
$term = get_queried_object();
$paged = max(1, (int) get_query_var('paged'));
$orderby = '';
@@ -165,4 +171,9 @@ wp_enqueue_script(
AKSRT_VERSION,
true
);
if (is_active_sidebar('shop_product_bottom_fluid')) {
echo '<div class="aksrt-fluid-widget aksrt-fluid-widget--shop">';
dynamic_sidebar('shop_product_bottom_fluid');
echo '</div>';
}
get_footer();