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:
1 parent
d599bbccd9
commit
e4745d501e
8 files changed
+228
-23
No files matched your search
@@ -20,6 +20,6 @@ if (!function_exists('aksrt_get_comment_icon')) :
|
||||
* @return string
|
||||
*/
|
||||
function aksrt_get_comment_icon(string $name, string $class = 'icon'): string {
|
||||
return '<svg class="' . esc_attr($class) . '" aria-hidden="true"><use xlink:href="#icon-' . esc_attr($name) . '"></use></svg>';
|
||||
return aksrt_icon_markup('zibsvg-' . $name, $class);
|
||||
}
|
||||
endif;
|
||||
Reference in new issue
Block a user