修复了一些问题
This commit is contained in:
1 parent
28d57f2b7c
commit
0b8d7cdab5
3 files changed
+17
-4
No files matched your search
@@ -139,7 +139,10 @@ if (!function_exists('aksrt_header_payvip_bar')) :
|
||||
$exp_label = '';
|
||||
if (function_exists('aksrt_get_vip_info')) {
|
||||
$info = aksrt_get_vip_info($user_id);
|
||||
$exp_label = (string) ($info['expires_label'] ?? '');
|
||||
$expires = max(0, (int) ($info['expires'] ?? 0));
|
||||
$exp_label = $expires > 0
|
||||
? sprintf(__('到期时间:%s', 'aksrt'), wp_date('Y年m月d日', $expires))
|
||||
: (string) ($info['expires_label'] ?? '');
|
||||
}
|
||||
$html = '<div class="mt10 em09 aksrt-header-payvip is-vip">';
|
||||
$html .= '<span class="radius4 payvip-icon btn-block text-center vipbg-v2 level-' . (int) $level . ' aksrt-header-payvip__active">';
|
||||
|
||||
Reference in new issue
Block a user