feat(orders): embed My Orders inside user center (zibll-style)

Register UC panel tab=orders with full order list/actions UI; route
aksrt_get_orders_page_url and /orders template to profile?tab=orders;
enqueue order assets when the UC orders tab is active.
This commit is contained in:
kate522 committed 2026-07-25 13:54:08 +08:00
1 parent dae85f0198
commit 354a1072ef
8 files changed
+598 -464

No files matched your search

+9 -2
View File
@@ -666,8 +666,15 @@ $hmb_js = get_template_directory() . '/assets/js/header-newadd.js';
}
}
// 订单中心页
if (is_page_template('templates/pages/page-orders.php') || (bool) get_query_var('aksrt_orders')) {
// 订单中心:独立页 / 虚拟 rewrite / 用户中心 tab=orders
$is_orders_surface = is_page_template('templates/pages/page-orders.php')
|| (bool) get_query_var('aksrt_orders')
|| (
(function_exists('aksrt_is_user_center_page') && aksrt_is_user_center_page())
&& isset($_GET['tab'])
&& sanitize_key((string) wp_unslash($_GET['tab'])) === 'orders'
);
if ($is_orders_surface) {
wp_enqueue_style(
'aksrt-orders',
$base_uri . '/assets/css/routes/orders.css',