feat(header): user-box density 1:1 (check-in, wallet, VIP, signout)

Add payvip/check-in/wallet/badges strips, guest OAuth strip, confirm
signout modal + REST check-in wiring for zibll header parity.
This commit is contained in:
2026-07-18 21:28:32 +08:00
parent cd04a03329
commit c32738267f
6 changed files with 426 additions and 1 deletions
+21
View File
@@ -129,6 +129,27 @@ trait ScriptsPart1b {
}
}
// Header user-box density (check-in / wallet / signout modal)
$hub_css = get_template_directory() . '/assets/css/frontend/nav/header-userbox.css';
if (file_exists($hub_css)) {
wp_enqueue_style(
'aksrt-header-userbox',
$base_uri . '/assets/css/frontend/nav/header-userbox.css',
[$core_dep],
(string) filemtime($hub_css)
);
}
$hub_js = get_template_directory() . '/assets/js/header-userbox.js';
if (file_exists($hub_js)) {
wp_enqueue_script(
'aksrt-header-userbox',
$base_uri . '/assets/js/header-userbox.js',
[],
(string) filemtime($hub_js),
true
);
}
// Print stylesheet — only load on singular pages
if (is_singular()) {
wp_enqueue_style(