fix(user-home): 1:1 align public profile with Zibll author page

- Remove 主页概览/快捷入口/交易服务 private-dashboard sidebar from public home
- Full-width layout; counts live in tab bar (粉丝 = followers)
- Hero: 用户中心/消息 for self, 关注/私信 for others; drop body stats row
- Defaults: no sidebar, posts/favorites/comments/follow tabs
This commit is contained in:
2026-07-15 16:18:17 +08:00
parent bbe010f5b8
commit 50e9e83f68
10 changed files with 157 additions and 153 deletions
@@ -31,9 +31,10 @@ class AKSRT_Settings_User_Runtime {
return $clean;
};
$normalized_tabs = $parse_csv('user_home_tabs', 'posts,comments,favorites');
// Zibll author_main_tab_opt defaults: post, favorite, comment, plate, forum, follow.
$normalized_tabs = $parse_csv('user_home_tabs', 'posts,favorites,comments,follow');
if (empty($normalized_tabs)) {
$normalized_tabs = ['posts', 'comments', 'favorites'];
$normalized_tabs = ['posts', 'favorites', 'comments', 'follow'];
}
$raw_order = $parse_csv('user_home_tabs_order', '');
@@ -57,14 +58,16 @@ class AKSRT_Settings_User_Runtime {
'tabs_order' => $ordered,
'tabs_pc_hide' => $pc_hide,
'tabs_mobile_hide' => $mobile_hide,
'sidebar' => !isset($settings['user_home_sidebar']) || !empty($settings['user_home_sidebar']),
// Public author page is full-width (Zibll author.php). Sidebar option kept as no-op reserved key.
'sidebar' => false,
'cover' => !isset($settings['user_home_cover']) || !empty($settings['user_home_cover']),
'follow' => !isset($settings['user_home_follow']) || !empty($settings['user_home_follow']),
'posts_per_page' => max(5, min(50, (int) ($settings['user_home_posts_per_page'] ?? 10))),
'avatar' => !isset($settings['user_home_avatar']) || !empty($settings['user_home_avatar']),
'name' => !isset($settings['user_home_name']) || !empty($settings['user_home_name']),
'desc' => !isset($settings['user_home_desc']) || !empty($settings['user_home_desc']),
'stats' => !isset($settings['user_home_stats']) || !empty($settings['user_home_stats']),
// Body stats row removed; counts live in tabs like Zibll.
'stats' => false,
'social' => !isset($settings['user_home_social']) || !empty($settings['user_home_social']),
'tab_swiper' => !empty($settings['author_main_tab_swiper']),
'message' => !isset($settings['user_home_message']) || !empty($settings['user_home_message']),