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:
1 parent
6bcb16fb8a
commit
9643ce6d44
3 files changed
+28
No files matched your search
@@ -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">
|
<main id="main-content" class="site-main content-shell" tabindex="-1">
|
||||||
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
|
<?php if (function_exists('aksrt_breadcrumbs')) { aksrt_breadcrumbs(); } ?>
|
||||||
<div class="container aksrt-orders-page" data-aksrt-order-center>
|
<div class="container aksrt-orders-page" data-aksrt-order-center>
|
||||||
@@ -369,4 +372,7 @@ $tabs = [
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</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(); ?>
|
<?php get_footer(); ?>
|
||||||
@@ -9,6 +9,12 @@ defined('ABSPATH') || exit;
|
|||||||
|
|
||||||
get_header();
|
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();
|
$term = get_queried_object();
|
||||||
$paged = max(1, (int) get_query_var('paged'));
|
$paged = max(1, (int) get_query_var('paged'));
|
||||||
$orderby = '';
|
$orderby = '';
|
||||||
@@ -141,4 +147,9 @@ wp_enqueue_script(
|
|||||||
AKSRT_VERSION,
|
AKSRT_VERSION,
|
||||||
true
|
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();
|
get_footer();
|
||||||
@@ -9,6 +9,12 @@ defined('ABSPATH') || exit;
|
|||||||
|
|
||||||
get_header();
|
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();
|
$term = get_queried_object();
|
||||||
$paged = max(1, (int) get_query_var('paged'));
|
$paged = max(1, (int) get_query_var('paged'));
|
||||||
$orderby = '';
|
$orderby = '';
|
||||||
@@ -165,4 +171,9 @@ wp_enqueue_script(
|
|||||||
AKSRT_VERSION,
|
AKSRT_VERSION,
|
||||||
true
|
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();
|
get_footer();
|
||||||
Reference in new issue
Block a user