diff --git a/assets/css/frontend/nav/header-userbox.css b/assets/css/frontend/nav/header-userbox.css index 88d8bc86..fea79320 100644 --- a/assets/css/frontend/nav/header-userbox.css +++ b/assets/css/frontend/nav/header-userbox.css @@ -231,7 +231,8 @@ max-width: 100%; } .sub-user-box .user-right .aksrt-user-level-icon, -.sub-user-box .user-right .aksrt-identity-medal { +.sub-user-box .user-right .aksrt-identity-medal, +.sub-user-box .user-right .aksrt-header-user-medal { height: 1em; vertical-align: -.12em; flex: 0 0 auto; diff --git a/inc/helpers/header/aksrt-header-navbar.php b/inc/helpers/header/aksrt-header-navbar.php index 73cf36ef..ea1a5976 100644 --- a/inc/helpers/header/aksrt-header-navbar.php +++ b/inc/helpers/header/aksrt-header-navbar.php @@ -155,7 +155,10 @@ if (!function_exists('aksrt_header_user_box_html')) : $level_badge = (class_exists('\AKSRT\User\Level') && method_exists('\AKSRT\User\Level', 'get_badge_html')) ? \AKSRT\User\Level::get_badge_html($user_id, 'aksrt-user-level-icon--header') : ''; - $certification_badge = ''; + $medal_badge = function_exists('aksrt_get_worn_medal_icon') + ? aksrt_get_worn_medal_icon($user_id, 'aksrt-header-user-medal') + : ''; + $certification_badge = ''; if (function_exists('aksrt_get_user_identity_signals')) { foreach (aksrt_get_user_identity_signals($user_id) as $signal) { if ((string) ($signal['type'] ?? '') !== 'verify') { @@ -238,7 +241,7 @@ if (!function_exists('aksrt_header_user_box_html')) : $con .= $avatar; $con .= '
'; $con .= '
' - . '' . esc_html($display_name) . '' . $vip_badge . $certification_badge . $level_badge + . '' . esc_html($display_name) . '' . $vip_badge . $medal_badge . $certification_badge . $level_badge . '
' . esc_html($desc) . '
'; $con .= '
'; $con .= $msg_icon;