' . (function_exists('aksrt_get_avatar_html') ? aksrt_get_avatar_html($user_id, 96) : get_avatar($user_id, 96)) . '';
if (function_exists('aksrt_render_user_identity_chips')) {
$html .= '
' . aksrt_render_user_identity_chips($user_id, 'widget') . '
';
}
$html .= '
' . esc_html(wp_trim_words($description, 24)) . '
' . number_format_i18n(count_user_posts($user_id, 'post', true)) . '' . esc_html__('文章', 'aksrt') . '' . number_format_i18n($followers) . '' . esc_html__('粉丝', 'aksrt') . '' . number_format_i18n($following) . '' . esc_html__('关注', 'aksrt') . '
';
if (!empty($i['show_buttons'])) {
$html .= '
' . self::action((string) $i['primary_action'], $user, true) . self::action((string) $i['secondary_action'], $user, false) . '
';
}
if (!$self_card && get_current_user_id() > 0 && get_current_user_id() !== $user_id) {
$active = class_exists('AKSRT\\User\\Follow') && \AKSRT\User\Follow::get_instance()->is_following(get_current_user_id(), $user_id);
$html .= '
';
}
$html .= '
';
if (!empty($i['show_posts']) && function_exists('aksrt_render_user_card_posts')) {
$html .= '' . aksrt_render_user_card_posts(['user_id' => $user_id, 'count' => 4, 'post_style' => 'mini', 'show_empty' => false]) . '
';
}
return $html . '