fix(user-home): add reference tab loading skeletons
This commit is contained in:
@@ -190,6 +190,23 @@ if (!function_exists('aksrt_render_user_home_pagination')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('aksrt_get_user_home_follow_placeholder')) {
|
||||
/**
|
||||
* Skeleton cards used while the public home follow panel is loading.
|
||||
* Mirrors zib_get_author_tab_loader('follow').
|
||||
*/
|
||||
function aksrt_get_user_home_follow_placeholder(): string {
|
||||
$item = '<div class="author-minicard radius8 flex ac uh-follow__placeholder" aria-hidden="true">'
|
||||
. '<div class="avatar-img mr10"><div class="avatar placeholder"></div></div>'
|
||||
. '<div class="flex1"><div class="placeholder k1 mb6"></div>'
|
||||
. '<i><i class="placeholder s1"></i><i class="placeholder s1 ml10"></i></i></div></div>';
|
||||
|
||||
return '<div class="uh-follow__list uh-follow__list--placeholder" role="status" aria-label="' . esc_attr__('正在加载', 'aksrt') . '">'
|
||||
. str_repeat($item, 6)
|
||||
. '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('aksrt_capture_user_home_panel')) {
|
||||
/**
|
||||
* 捕获公开用户主页面板 body(templates/parts/user-home/panel-{tab}.php)。
|
||||
|
||||
Reference in New Issue
Block a user