fix(comments): match avatar identity layout

This commit is contained in:
kate522 committed 2026-09-27 00:37:00 +08:00
1 parent 47bf9c8f0b
commit 26ac8167f3
14 files changed
+51 -176

No files matched your search

+4 -4
View File
@@ -68,8 +68,8 @@ if (!function_exists('aksrt_render_user_identity_chips')) {
'skip_level' => false,
]);
$html = '';
if (!empty($args['include_vip']) && function_exists('aksrt_render_vip_badge')) {
$vip = aksrt_render_vip_badge($user_id, 'sm');
if (!empty($args['include_vip']) && function_exists('aksrt_get_vip_icon')) {
$vip = aksrt_get_vip_icon($user_id);
if (is_string($vip) && $vip !== '') {
$html .= $vip;
}
@@ -216,8 +216,8 @@ if (!function_exists('aksrt_get_user_name')) {
$vip_html = function_exists('aksrt_get_user_ban_name_badge')
? aksrt_get_user_ban_name_badge($user_id)
: '';
if ($vip_html === '' && function_exists('aksrt_render_vip_badge')) {
$vip_html = (string) aksrt_render_vip_badge($user_id, 'sm');
if ($vip_html === '' && function_exists('aksrt_get_vip_icon')) {
$vip_html = (string) aksrt_get_vip_icon($user_id);
}
}
$name_class = trim('display-name text-ellipsis ' . (string) $args['name_class']);