fix(nav): header publish menu + userbox card polish

Unpaint multi-type 发布 wrapper, fix light-menu ink, avatar unread
dot clipping, check-in REST double namespace, and user-card VIP/check-in layout.
This commit is contained in:
kate522 committed 2026-07-22 08:49:27 +08:00
1 parent df2874698c
commit 77164fee45
9 files changed
+126 -38

No files matched your search

+9 -22
View File
@@ -39,32 +39,17 @@ if (!function_exists('aksrt_header_user_checkin_btn')) :
$signed = false;
}
$details = '';
if (function_exists('aksrt_get_remote_modal_link')) {
$details = aksrt_get_remote_modal_link([
'tag' => 'a',
'class' => 'aksrt-header-checkin-details muted-2-color em09 mt6 block text-center',
'text' => __('签到详情', 'aksrt'),
'query_arg' => ['action' => 'aksrt_checkin_details_modal'],
'data_class' => 'modal-mini full-sm',
'height' => 420,
'mobile_bottom' => true,
]);
}
if ($signed) {
return '<button type="button" class="but block c-yellow aksrt-header-checkin is-done" disabled>'
. '<i class="fas fa-calendar-check" aria-hidden="true"></i> '
. esc_html__('今日已签到', 'aksrt')
. '</button>'
. $details;
. '</button>';
}
return '<button type="button" class="but block c-yellow aksrt-header-checkin" data-aksrt-checkin="1">'
. '<i class="fas fa-calendar-check" aria-hidden="true"></i> '
. esc_html__('签到领取今日奖励', 'aksrt')
. '</button>'
. $details;
. '</button>';
}
endif;
@@ -106,7 +91,8 @@ if (!function_exists('aksrt_header_user_badges_row')) :
if ($user_id <= 0 || !function_exists('aksrt_render_user_identity_chips')) {
return '';
}
$chips = aksrt_render_user_identity_chips($user_id, 'card');
// VIP already shown next to display name in the header profile row.
$chips = aksrt_render_user_identity_chips($user_id, 'card', ['include_vip' => false]);
if ($chips === '') {
return '';
}
@@ -140,13 +126,14 @@ if (!function_exists('aksrt_header_payvip_bar')) :
$info = aksrt_get_vip_info($user_id);
$exp_label = (string) ($info['expires_label'] ?? '');
}
$html = '<div class="mt10 em09 aksrt-header-payvip">';
$html .= '<span class="radius4 payvip-icon btn-block text-center vipbg-v2 level-' . (int) $level . '">';
$html = '<div class="mt10 em09 aksrt-header-payvip is-vip">';
$html .= '<span class="radius4 payvip-icon btn-block text-center vipbg-v2 level-' . (int) $level . ' aksrt-header-payvip__active">';
$html .= '<span class="aksrt-header-payvip__level">';
$html .= '<i class="fas fa-gem" aria-hidden="true"></i>';
$html .= '<span>' . esc_html($name) . '</span>';
$html .= '</span>';
if ($exp_label !== '') {
$html .= '<span class="ml10 badg jb-yellow vip-expdate-tag"><i class="fas fa-clock" aria-hidden="true"></i>'
. esc_html($exp_label) . '</span>';
$html .= '<span class="aksrt-header-payvip__exp">' . esc_html($exp_label) . '</span>';
}
$html .= '</span></div>';
return $html;