From 29ef28066e2296361fc728daa89a1f099f52dd64 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Jul 2026 11:54:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E8=88=AA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=BC=B9=E5=B1=82=E8=AE=A4=E8=AF=81=E5=9B=BE=E6=A0=87=E5=90=8C?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/helpers/aksrt-header-userbox.php | 3 ++- inc/helpers/header/aksrt-header-navbar.php | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/inc/helpers/aksrt-header-userbox.php b/inc/helpers/aksrt-header-userbox.php index eed8feb6..41461a4b 100644 --- a/inc/helpers/aksrt-header-userbox.php +++ b/inc/helpers/aksrt-header-userbox.php @@ -91,8 +91,9 @@ if (!function_exists('aksrt_header_user_badges_row')) : if ($user_id <= 0 || !function_exists('aksrt_render_user_identity_chips')) { return ''; } - // VIP + level already shown next to display name in the header profile row. + // Certification is displayed beside the name and level icon in the profile row. $chips = aksrt_render_user_identity_chips($user_id, 'card', ['include_vip' => false, 'skip_level' => true]); + $chips = preg_replace('/'; + } + break; + } + } $payvip = function_exists('aksrt_header_payvip_bar') ? aksrt_header_payvip_bar($user_id) : ''; // nav_user_pay_vip gate: empty payvip when switch off for non-VIP CTA only — helper already handles VIP status. if (empty($ctx['nav_user_pay_vip']) && $payvip !== '' && strpos($payvip, 'is-vip') === false) { @@ -243,7 +257,7 @@ if (!function_exists('aksrt_header_user_box_html')) : $con .= $avatar; $con .= '
'; $con .= '
' - . '' . esc_html($display_name) . '' . $vip_badge . $level_badge + . '' . esc_html($display_name) . '' . $vip_badge . $level_badge . $certification_badge . '
' . esc_html($desc) . '
'; $con .= '
'; $con .= $msg_icon;