修复了一些问题

This commit is contained in:
2026-08-21 13:42:59 +08:00
parent 0b8d7cdab5
commit e971c2b1da
8 changed files with 55 additions and 3 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ if (!function_exists('aksrt_render_header_menu_buttons')) :
$show_vip = false;
if (class_exists('\AKSRT\Settings\Settings')) {
$vs = \AKSRT\Settings\Settings::get_payment_vip_settings();
$show_vip = !empty($vs['enabled']);
$show_vip = !empty($vs['enabled']) && !empty($vs['nav_pay_vip']);
}
if ($show_vip) {
$is_vip = false;
+3
View File
@@ -156,6 +156,9 @@ if (!function_exists('aksrt_header_payvip_bar')) :
$html .= '</span></div>';
return $html;
}
if (empty($vip['nav_user_pay_vip'])) {
return '';
}
// Match check-in CTA geometry (full width, 6px radius) — not top-nav navbar-cta chips.
return '<div class="mt10 em09 aksrt-header-payvip">'
+1 -1
View File
@@ -242,7 +242,7 @@ if (!function_exists('aksrt_header_user_box_html')) :
$vip_guest = '';
if (class_exists('\AKSRT\Settings\Settings')) {
$vs = \AKSRT\Settings\Settings::get_payment_vip_settings();
if (!empty($vs['enabled'])) {
if (!empty($vs['enabled']) && !empty($vs['nav_user_pay_vip'])) {
$vip_guest = '<div><a class="em09 signin-loader but jb-red radius4 payvip-icon btn-block mt10" href="javascript:;">'
. '<i class="fa fas fa-gem" aria-hidden="true"></i> '
. esc_html__('开通会员 尊享会员权益', 'aksrt') . '</a></div>';