'; } else { $badge_html = 'LV' . esc_html((string) $current_level) . ''; } $avatar_html = function_exists('aksrt_get_avatar_html') ? aksrt_get_avatar_html($user_id, 48, ['class' => 'avatar-mini']) : get_avatar($user_id, 48); $next_need = max(0, (int) ($progress['next_need'] ?? 0)); $integral = max(0, (int) ($progress['integral'] ?? 0)); $remaining = max(0, (int) ($progress['remaining'] ?? 0)); $percentage = max(0, min(100, (int) ($progress['progress'] ?? 0))); ?>