登录注册体系的源码级硬切换
This commit is contained in:
+6
-1
@@ -400,7 +400,12 @@ if ($floating_enabled) :
|
||||
|
||||
<?php
|
||||
// 弹窗登录/注册模板(仅未登录用户)
|
||||
if (!is_user_logged_in() && file_exists(AKSRT_DIR . '/templates/parts/modal-auth.php')) {
|
||||
if (
|
||||
!is_user_logged_in()
|
||||
&& class_exists('\AKSRT\Settings\Settings')
|
||||
&& \AKSRT\Settings\Settings::user_sign_type() === 'modal'
|
||||
&& file_exists(AKSRT_DIR . '/templates/parts/modal-auth.php')
|
||||
) {
|
||||
include AKSRT_DIR . '/templates/parts/modal-auth.php';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user