fix(frontend): align search and header components with reference

This commit is contained in:
kate522 committed 2026-10-29 22:21:01 +08:00
1 parent 4c13ef478c
commit 542daca457
34 files changed
+803 -705

No files matched your search

+5 -1
View File
@@ -186,6 +186,7 @@ if (!function_exists('aksrt_get_user_name')) {
'auth' => true,
'level' => true,
'follow' => false,
'highlight_query' => '',
];
if (is_numeric($args)) {
$defaults['id'] = (int) $args;
@@ -221,7 +222,10 @@ if (!function_exists('aksrt_get_user_name')) {
}
}
$name_class = trim('display-name text-ellipsis ' . (string) $args['name_class']);
$name_link = '<a class="' . esc_attr($name_class) . '" href="' . esc_url($home) . '">' . esc_html($display) . '</a>';
$name_markup = !empty($args['highlight_query']) && function_exists('aksrt_renderer_highlight_text')
? aksrt_renderer_highlight_text((string) $display, (string) $args['highlight_query'])
: esc_html($display);
$name_link = '<a class="' . esc_attr($name_class) . '" href="' . esc_url($home) . '">' . $name_markup . '</a>';
$auth_html = '';
$medal_html = '';