feat(user-center): promote invite into standalone 推广中心 tab

Register a dedicated `promotion` dashboard panel gated by the existing
invite switches (credits + invite reward + invite registration), and move
the invite card out of the revenue tab so 收益中心 is pure earnings/withdrawal.

- src/User/Center.php: register promotion panel; revenue no longer depends
  on invite being on
- inc/helpers/user-center-renderers/profile-promotion.php: new panel body
  hosting the existing [data-aksrt-invite] card
- profile-revenue.php: drop the invite section; aksrt-user-center.php: drop
  unused show_invite_section context, add promotion to built-in tabs + view map
- repoint invite/promotion deep-link aliases from revenue to promotion across
  tab-url builder, tab resolver, runtime tabAliases, urls.php, and the
  revenue-JS enqueue gate
- sidebar-nav.php: add 推广中心 service entry; shell.css: entry icon color;
  sidebar-creator.php: reword revenue card
- UserRuntime.php: allow promotion in configurable tabs
This commit is contained in:
2026-08-05 16:45:47 +08:00
parent 644bafb35c
commit 51274fd00a
10 changed files with 69 additions and 21 deletions
+1 -1
View File
@@ -700,7 +700,7 @@ $hmb_js = get_template_directory() . '/assets/js/header-newadd.js';
|| (
(function_exists('aksrt_is_user_center_page') && aksrt_is_user_center_page())
&& isset($_GET['tab'])
&& in_array(sanitize_key((string) wp_unslash($_GET['tab'])), ['revenue', 'invite', 'promotion'], true)
&& 'revenue' === sanitize_key((string) wp_unslash($_GET['tab']))
);
if ($is_revenue_surface) {
$revenue_js = get_template_directory() . '/assets/js/revenue.js';