用户中心减层:收敛本人入口与 panel 契约

This commit is contained in:
kate522 committed 2026-07-10 20:43:49 +08:00
1 parent 31c95c3bc6
commit dec33ea15a
33 files changed
+1585 -1488

No files matched your search

@@ -0,0 +1,10 @@
<?php
/** User center mobile tabs. @package AKSRT */
defined('ABSPATH') || exit;
$context = is_array($args['context'] ?? null) ? $args['context'] : [];
?>
<div class="dashboard-tabs uc-mobile-tabs" role="tablist">
<?php foreach (($context['mobile_tabs'] ?? []) as $tab) : ?>
<a class="<?php echo !empty($tab['is_active']) ? 'is-active' : ''; ?>" href="<?php echo esc_url($tab['url']); ?>" data-tab="<?php echo esc_attr($tab['key']); ?>" role="tab" aria-selected="<?php echo !empty($tab['is_active']) ? 'true' : 'false'; ?>"><?php echo esc_html($tab['label']); ?></a>
<?php endforeach; ?>
</div>