diff --git a/inc/helpers/aksrt-header-menu-buttons.php b/inc/helpers/aksrt-header-menu-buttons.php index 87686a16..4b4a907c 100644 --- a/inc/helpers/aksrt-header-menu-buttons.php +++ b/inc/helpers/aksrt-header-menu-buttons.php @@ -161,13 +161,12 @@ if (!function_exists('aksrt_render_header_menu_buttons')) : } } - // VIP open CTA for guests / non-VIP. - $user_id = get_current_user_id(); - $vip_url = function_exists('aksrt_get_vip_purchase_url') ? aksrt_get_vip_purchase_url() : (function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url('vip') : '#'); - $show_vip = true; - if (class_exists('\AKSRT\Settings\Settings') && method_exists('\AKSRT\Settings\Settings', 'get_vip_settings')) { - $vs = \AKSRT\Settings\Settings::get_vip_settings(); - $show_vip = !empty($vs['enabled']) || !empty($vs['vip1_enabled']) || !empty($vs['vip2_enabled']); + // VIP open CTA for guests / non-VIP (zibll: .pay-vip modal). + $user_id = get_current_user_id(); + $show_vip = false; + if (class_exists('\AKSRT\Settings\Settings')) { + $vs = \AKSRT\Settings\Settings::get_payment_vip_settings(); + $show_vip = !empty($vs['enabled']); } if ($show_vip) { $is_vip = false; @@ -175,9 +174,9 @@ if (!function_exists('aksrt_render_header_menu_buttons')) : $is_vip = (int) aksrt_get_user_vip_level($user_id) > 0; } if (!$is_vip) { - $cls = $user_id ? 'pay-vip' : 'signin-loader'; + $cls = $user_id > 0 ? 'pay-vip' : 'signin-loader'; $html .= '
'; } diff --git a/inc/helpers/aksrt-header-userbox.php b/inc/helpers/aksrt-header-userbox.php index 0f293fa9..c5db481b 100644 --- a/inc/helpers/aksrt-header-userbox.php +++ b/inc/helpers/aksrt-header-userbox.php @@ -85,7 +85,7 @@ if (!function_exists('aksrt_header_user_wallet_mini')) : if (class_exists('\AKSRT\Credits\Balance')) { $wallet = (float) \AKSRT\Credits\Balance::balance($user_id); } - $center = function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url('assets') : '#'; + $center = function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url('credits') : '#'; $html = ''; $html .= ' ' @@ -116,29 +116,44 @@ endif; if (!function_exists('aksrt_header_payvip_bar')) : /** - * VIP status / open CTA bar. + * VIP status / open CTA bar (zibll zib_get_header_payvip_icon parity). */ function aksrt_header_payvip_bar(int $user_id = 0): string { $user_id = $user_id > 0 ? $user_id : get_current_user_id(); if ($user_id <= 0) { return ''; } - $badge = function_exists('aksrt_render_vip_badge') ? aksrt_render_vip_badge($user_id, 'md') : ''; - if ($badge !== '') { - return '