refactor(icons): converge every icon render on aksrt_icon_markup

aksrt_get_comment_icon(), aksrt_renderer_svg_icon() and the widget
renderer's private icon_markup() all delegate to the unified helper,
and the duplicated 24px empty-state SVGs in user-center/user-home now
come from one aksrt_empty_state_svgs(). Contract tests follow the
delegation (sprite <use> markup asserted in the helper).
This commit is contained in:
2026-09-06 12:59:44 +08:00
parent d599bbccd9
commit e4745d501e
8 changed files with 228 additions and 23 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ if (!function_exists('aksrt_renderer_meta_number')) {
if (!function_exists('aksrt_renderer_svg_icon')) {
function aksrt_renderer_svg_icon(string $name): string {
return '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-' . esc_attr($name) . '"></use></svg>';
return aksrt_icon_markup('zibsvg-' . $name);
}
}