'; dynamic_sidebar('shop_home_top_fluid'); echo ''; } $term = get_queried_object(); $paged = max(1, (int) get_query_var('paged')); $orderby = ''; $order = ''; if (isset($_GET['orderby'])) { $orderby = sanitize_key(wp_unslash((string) $_GET['orderby'])); } elseif (isset($_GET['shop_orderby'])) { $orderby = sanitize_key(wp_unslash((string) $_GET['shop_orderby'])); } if (isset($_GET['order'])) { $order = sanitize_key(wp_unslash((string) $_GET['order'])); } $shop = class_exists('\AKSRT\Shop\Shop') ? \AKSRT\Shop\Shop::get_instance() : null; $view = $shop ? $shop->get_product_archive_view([ 'taxonomy' => 'aksrt_product_cat', 'term_id' => $term ? (int) $term->term_id : 0, 'paged' => $paged, 'orderby' => $orderby, 'order' => $order, ]) : ['products' => [], 'term' => null, 'total' => 0, 'max_pages' => 0, 'orderby' => 'date', 'order' => 'DESC', 'paging' => 'number']; $products = $view['products'] ?? []; $total = (int) ($view['total'] ?? 0); $max_pages = (int) ($view['max_pages'] ?? 0); $term_name = $term->name ?? ''; $term_desc = $term->description ?? ''; $active_orderby = (string) ($view['orderby'] ?? 'date'); $active_order = strtoupper((string) ($view['order'] ?? 'DESC')); $paging = (string) ($view['paging'] ?? 'number'); $ias_s = !empty($view['ias_s']); $ias_max = (int) ($view['ias_max'] ?? 5); $style = (string) ($view['style'] ?? 'default'); $sales_cfg = is_array($view['sales'] ?? null) ? $view['sales'] : []; $filter = is_array($view['filter'] ?? null) ? $view['filter'] : null; ?>

$product, 'sales_cfg' => $sales_cfg, ]); endforeach; ?>

' . esc_html__('内容空空如也', 'aksrt') . '

'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
1 && $paging === 'ajax') : ?>
1) : ?>
'; dynamic_sidebar('shop_product_bottom_fluid'); echo ''; } get_footer();