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

@@ -1,6 +1,6 @@
<?php
/**
* User center sidebar: creation and revenue center pair.
* User center sidebar: creation center card.
*
* @package AKSRT
*/
@@ -8,9 +8,8 @@
defined('ABSPATH') || exit;
$creation_url = isset($dashboard_tabs['creator']) ? aksrt_get_user_center_tab_url('creator') : '';
$revenue_url = (string) ($revenue_url ?? '');
if ($creation_url === '' && $revenue_url === '') {
if ($creation_url === '') {
return;
}
?>
@@ -22,11 +21,4 @@ if ($creation_url === '' && $revenue_url === '') {
<i class="fas fa-angle-right" aria-hidden="true"></i>
</a>
<?php endif; ?>
<?php if ($revenue_url !== '') : ?>
<a class="uc-center-card uc-center-card--revenue" href="<?php echo esc_url($revenue_url); ?>" data-tab="revenue">
<span class="uc-center-card__icon"><i class="fas fa-chart-line" aria-hidden="true"></i></span>
<span><strong><?php esc_html_e('推广收益', 'aksrt'); ?></strong><small><?php esc_html_e('返佣与收益提现', 'aksrt'); ?></small></span>
<i class="fas fa-angle-right" aria-hidden="true"></i>
</a>
<?php endif; ?>
</div>