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

+10 -2
View File
@@ -31,13 +31,21 @@ if (!function_exists('aksrt_render_user_identity_chips')) {
*
* @param int $user_id
* @param string $context author|comment|card
* @param array $args {
* Optional. Additional options.
*
* @type bool $include_vip Whether to prepend VIP badge. Default true.
* }
*/
function aksrt_render_user_identity_chips(int $user_id, string $context = 'author'): string {
function aksrt_render_user_identity_chips(int $user_id, string $context = 'author', array $args = []): string {
if ($user_id <= 0) {
return '';
}
$args = wp_parse_args($args, [
'include_vip' => true,
]);
$html = '';
if (function_exists('aksrt_render_vip_badge')) {
if (!empty($args['include_vip']) && function_exists('aksrt_render_vip_badge')) {
$vip = aksrt_render_vip_badge($user_id, 'sm');
if (is_string($vip) && $vip !== '') {
$html .= $vip;