feat(shell): header multifunc + window._win + float cart/VIP

Multi-type publish/VIP CTA in nav, zibll-like _win runtime bridge for
lightbox flags, and floating shop_cart/pay_vip commerce buttons.
This commit is contained in:
2026-07-18 22:16:17 +08:00
parent 09029116ae
commit f929cc649c
9 changed files with 994 additions and 441 deletions
+19 -13
View File
@@ -261,20 +261,26 @@ if (!empty($aksrt_bg_styles)) {
</form>
<?php endif; ?>
<div class="nav-actions__cta">
<?php if ($aksrt_can_publish) : ?>
<a class="btn-primary" href="<?php echo esc_url($aksrt_publish_url); ?>">
<i class="fas fa-pen-nib" aria-hidden="true"></i>
<span><?php esc_html_e('发布', 'aksrt'); ?></span>
</a>
<?php endif; ?>
<div class="nav-actions__cta navbar-but-cluster">
<?php
if (function_exists('aksrt_render_header_menu_buttons')) {
echo aksrt_render_header_menu_buttons(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} elseif (!empty($aksrt_can_publish)) {
?>
<a class="btn-primary" href="<?php echo esc_url($aksrt_publish_url); ?>">
<i class="fas fa-pen-nib" aria-hidden="true"></i>
<span><?php esc_html_e('发布', 'aksrt'); ?></span>
</a>
<?php
}
?>
<?php if (in_array('pc_nav', $aksrt_theme_toggle_positions, true)) : ?>
<button type="button" class="btn-outline theme-toggle-desktop" id="theme-toggle-desktop" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
<i class="fas fa-adjust" aria-hidden="true"></i>
</button>
<?php endif; ?>
</div>
<?php if (in_array('pc_nav', $aksrt_theme_toggle_positions, true)) : ?>
<button type="button" class="btn-outline theme-toggle-desktop" id="theme-toggle-desktop" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
<i class="fas fa-adjust" aria-hidden="true"></i>
</button>
<?php endif; ?>
</div>
<?php if ($aksrt_show_user_entry) : ?>
<?php if (is_user_logged_in()) : ?>