feat(users): add inline promotion center

This commit is contained in:
kate522 committed 2026-08-03 13:40:54 +08:00
1 parent aa958c7d01
commit d138c05f77
11 files changed
+76 -88

No files matched your search

@@ -11,6 +11,7 @@ $level_url = isset($dashboard_tabs['level'])
? aksrt_get_user_center_tab_url('level')
: '';
$auth_url = isset($dashboard_tabs['auth']) ? aksrt_get_user_center_tab_url('auth') : '';
$promotion_url = isset($dashboard_tabs['promotion']) ? aksrt_get_user_center_tab_url('promotion') : '';
$orders_available = isset($dashboard_tabs['orders']);
$orders_url = $orders_available ? (string) ($orders_url ?? '') : '';
@@ -28,6 +29,13 @@ $services = array_values(array_filter([
'url' => $auth_url,
'tab' => 'auth',
],
[
'label' => __('推广中心', 'aksrt'),
'icon' => 'user-plus',
'tone' => 'promotion',
'url' => $promotion_url,
'tab' => 'promotion',
],
[
'label' => __('我的订单', 'aksrt'),
'icon' => 'receipt',