feat: merge promotion and earnings center

This commit is contained in:
kate522 committed 2026-08-16 19:54:12 +08:00
1 parent f70eca09d1
commit 6dbb556d60
11 files changed
+65 -87

No files matched your search

@@ -10,31 +10,11 @@ defined('ABSPATH') || exit;
$level_url = isset($dashboard_tabs['level'])
? aksrt_get_user_center_tab_url('level')
: '';
$promotion_url = isset($dashboard_tabs['promotion'])
? aksrt_get_user_center_tab_url('promotion')
: '';
$revenue_url = isset($dashboard_tabs['revenue'])
? aksrt_get_user_center_tab_url('revenue')
: '';
$auth_url = isset($dashboard_tabs['auth']) ? aksrt_get_user_center_tab_url('auth') : '';
$orders_available = isset($dashboard_tabs['orders']);
$orders_url = $orders_available ? (string) ($orders_url ?? '') : '';
$services = array_values(array_filter([
[
'label' => __('推广中心', 'aksrt'),
'icon' => 'share-alt',
'tone' => 'promotion',
'url' => $promotion_url,
'tab' => 'promotion',
],
[
'label' => __('收益中心', 'aksrt'),
'icon' => 'chart-line',
'tone' => 'revenue',
'url' => $revenue_url,
'tab' => 'revenue',
],
[
'label' => __('我的等级', 'aksrt'),
'icon' => 'chart-line',