fix(user-center): 1:1 port reference sidebar service/settings icon boxes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-28 22:10:45 +08:00
1 parent 9fbfab54c2
commit 6ded62df92
3 files changed
+45 -14

No files matched your search

@@ -74,9 +74,6 @@ $render_grid = static function (array $items): void {
<?php foreach ($items as $item) :
$tab = (string) ($item['tab'] ?? '');
$item_class = 'icon-but-' . ($tab !== '' ? $tab : 'item');
if (($active_tab ?? '') === $tab) {
$item_class .= ' is-active';
}
$icon_html = aksrt_icon_markup('zibsvg-' . (string) $item['icon']);
?>
<a class="<?php echo esc_attr($item_class); ?>" href="<?php echo esc_url((string) $item['url']); ?>"<?php if ($tab !== '') : ?> data-tab="<?php echo esc_attr($tab); ?>"<?php endif; ?>>
@@ -89,15 +86,15 @@ $render_grid = static function (array $items): void {
};
?>
<?php if ($services) : ?>
<div class="uc-sidebar__section">
<div class="uc-sidebar__heading"><span><?php esc_html_e('我的服务', 'aksrt'); ?></span></div>
<div class="uc-sidebar-iconbox zib-widget padding-6 mb10-sm">
<div class="padding-6 ml3"><?php esc_html_e('我的服务', 'aksrt'); ?></div>
<?php $render_grid($services); ?>
</div>
<?php endif; ?>
<?php if ($settings) : ?>
<div class="uc-sidebar__section">
<div class="uc-sidebar__heading"><span><?php esc_html_e('功能设置', 'aksrt'); ?></span></div>
<div class="uc-sidebar-iconbox zib-widget padding-6">
<div class="padding-6 ml3"><?php esc_html_e('功能设置', 'aksrt'); ?></div>
<?php $render_grid($settings); ?>
</div>
<?php endif; ?>