fix(user-center): remove rebate detail title setting
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
487a63629c
commit
6897ddca4b
5 files changed
+5
-6
No files matched your search
@@ -45,7 +45,6 @@ if ($current_vip >= 2 && !empty($vip_ratios['vip2'])) {
|
||||
} elseif ($current_vip >= 1 && !empty($vip_ratios['vip1'])) {
|
||||
$commission_ratio = (int) $vip_ratios['vip1'];
|
||||
}
|
||||
$details_title = trim((string) ($affiliate['text']['details_title'] ?? '')) ?: __('返佣详解', 'aksrt');
|
||||
$details_text = trim((string) ($affiliate['text']['details'] ?? ''));
|
||||
if ($details_text === '') {
|
||||
$details_text = trim((string) ($affiliate['note'] ?? '')) ?: __('好友通过推广链接完成符合条件的订单后,系统会按当前佣金比例记录返佣,结算后进入可提现余额。', 'aksrt');
|
||||
@@ -152,7 +151,7 @@ $status_labels = [
|
||||
<div class="uc-total-commission"><strong><?php echo esc_html($format_amount($commission_stats['total_amount'] ?? 0)); ?></strong><span><?php printf(esc_html__('%d 笔佣金记录', 'aksrt'), (int) ($commission_stats['total'] ?? 0)); ?></span></div>
|
||||
</section>
|
||||
<section class="uc-reward-block" aria-labelledby="uc-details-title">
|
||||
<div class="uc-reward-block__heading"><h4 id="uc-details-title"><?php echo esc_html($details_title); ?></h4></div>
|
||||
<div class="uc-reward-block__heading"><h4 id="uc-details-title"><?php esc_html_e('返佣详解', 'aksrt'); ?></h4></div>
|
||||
<div class="uc-reward-richtext"><?php echo wp_kses_post(wpautop($details_text)); ?></div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user