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:
1 parent
bbe010f5b8
commit
50e9e83f68
10 files changed
+157
-153
No files matched your search
@@ -3,6 +3,7 @@
|
||||
* Public user homepage template.
|
||||
*
|
||||
* Thin shell: resolve user → build context → mount parts.
|
||||
* Layout matches Zibll author.php: full-width header + tabs (no commerce sidebar).
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
@@ -31,7 +32,7 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
||||
|
||||
<main id="main-content" class="site-main container content-shell content-shell--stream aksrt-user-home" tabindex="-1">
|
||||
<div class="content-wrap">
|
||||
<div class="content-layout<?php echo !empty($user_home_settings['sidebar']) ? '' : ' content-layout--no-sidebar'; ?> aksrt-user-home__layout">
|
||||
<div class="content-layout content-layout--no-sidebar aksrt-user-home__layout">
|
||||
<div class="content-layout__primary">
|
||||
<?php
|
||||
get_template_part('templates/parts/user/author-hero', null, [
|
||||
@@ -39,6 +40,7 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
||||
'dashboard' => $dashboard,
|
||||
'user_home_settings' => $user_home_settings,
|
||||
'is_author_page' => false,
|
||||
'tab_counts' => $tab_counts ?? [],
|
||||
]);
|
||||
?>
|
||||
|
||||
@@ -52,10 +54,11 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
||||
if (in_array($tab_key, $tabs_mobile_hide, true)) {
|
||||
$tab_class .= ' tab-hide-mobile';
|
||||
}
|
||||
$tab_count = (int) ($tab_counts[$tab_key] ?? 0);
|
||||
?>
|
||||
<button type="button" class="<?php echo esc_attr(trim($tab_class)); ?>" data-tab="<?php echo esc_attr($tab_key); ?>" role="tab">
|
||||
<?php echo esc_html($tab_labels[$tab_key] ?? ucfirst($tab_key)); ?>
|
||||
<span class="dashboard-tabs__count"><?php echo esc_html((string) ($tab_counts[$tab_key] ?? 0)); ?></span>
|
||||
<span class="dashboard-tabs__count opacity8"><?php echo esc_html((string) $tab_count); ?></span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
@@ -67,8 +70,6 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php get_template_part('templates/parts/user-home/sidebar', null, $ctx); ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user