feat(shop): wire product/cart widget zones and extra sidebars

Render shop_product top/sidebar/bottom and cart fluid areas; register
shop home/order sidebar slots for zibll shop layout parity.
This commit is contained in:
kate522 committed 2026-07-19 01:36:14 +08:00
1 parent 179474da3e
commit c102c9d16d
3 files changed
+24 -2

No files matched your search

+7 -1
View File
@@ -34,7 +34,10 @@ $address_book = is_array($cart_view['address_book'] ?? null) ? $cart_view['addre
?>
<main id="main-content" class="site-main content-shell" tabindex="-1">
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
<?php if (is_active_sidebar('shop_cart_top_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_cart_top_fluid'); ?></div>
<?php endif; ?>
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
<div
class="aksrt-cart-page container"
@@ -283,4 +286,7 @@ $address_book = is_array($cart_view['address_book'] ?? null) ? $cart_view['addre
</div>
</main>
<?php if (is_active_sidebar('shop_cart_bottom_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_cart_bottom_fluid'); ?></div>
<?php endif; ?>
<?php get_footer(); ?>
+13 -1
View File
@@ -38,11 +38,15 @@ $author = $author_id > 0 ? get_userdata($author_id) : null;
?>
<main id="main-content" class="site-main content-shell content-shell--stream content-shell--product" tabindex="-1">
<?php if (is_active_sidebar('shop_product_top_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_product_top_fluid'); ?></div>
<?php endif; ?>
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
<?php if (!empty($product)) : ?>
<div class="content-wrap container">
<div class="content-layout content-layout--no-sidebar">
<?php $has_shop_sidebar = is_active_sidebar('shop_product_sidebar'); ?>
<div class="content-layout <?php echo $has_shop_sidebar ? 'content-layout--with-sidebar' : 'content-layout--no-sidebar'; ?>">
<div class="content-layout__primary">
<div
class="aksrt-product-page"
@@ -431,8 +435,16 @@ $author = $author_id > 0 ? get_userdata($author_id) : null;
</div><!-- .aksrt-product-page -->
</div><!-- .content-layout__primary -->
<?php if (!empty($has_shop_sidebar)) : ?>
<aside class="content-layout__sidebar aksrt-shop-widget-zone">
<?php dynamic_sidebar('shop_product_sidebar'); ?>
</aside>
<?php endif; ?>
</div><!-- .content-layout -->
</div><!-- .content-wrap -->
<?php if (is_active_sidebar('shop_product_bottom_fluid')) : ?>
<div class="aksrt-fluid-widget aksrt-fluid-widget--shop"><?php dynamic_sidebar('shop_product_bottom_fluid'); ?></div>
<?php endif; ?>
<!-- Mobile purchase tabbar -->
<div class="aksrt-product-page__mobile-bar" data-aksrt-mobile-purchase>