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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user