feat(vip): Batch 2 pay-vip modal REST, JS, and CSS
This commit is contained in:
1 parent
a4562627d8
commit
965032f2e9
8 files changed
+917
-7
No files matched your search
@@ -175,12 +175,21 @@ if (!function_exists('aksrt_render_header_menu_buttons')) :
|
||||
}
|
||||
if (!$is_vip) {
|
||||
$cls = $user_id > 0 ? 'pay-vip' : 'signin-loader';
|
||||
$hover = '';
|
||||
if (class_exists('\AKSRT\Content\VipService')) {
|
||||
$svc = \AKSRT\Content\VipService::get_instance();
|
||||
if (method_exists($svc, 'render_vip_card')) {
|
||||
$cards = $svc->render_vip_card(1, $user_id) . $svc->render_vip_card(2, $user_id);
|
||||
if ($cards !== '') {
|
||||
$hover = '<div class="sub-menu hover-show-con sub-vip-card">' . $cards . '</div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
$html .= '<div class="navbar-form navbar-right navbar-vip hover-show inline-block">';
|
||||
$html .= '<a class="but jb-red radius payvip-icon ml10 ' . esc_attr($cls) . '" href="javascript:;"' . ($user_id > 0 ? ' vip-level="1"' : '') . '>';
|
||||
$html .= '<i class="fa fa-diamond em12 mr3" aria-hidden="true"></i>' . esc_html__('开通会员', 'aksrt');
|
||||
$html .= '</a></div>';
|
||||
}
|
||||
}
|
||||
$html .= '</a>' . $hover . '</div>';
|
||||
} }
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user