Merge pull request 'fix: 始终展示已认证标识' (#331) from certification-flow-fixed-types into main
Reviewed-on: CYL/wordpress-theme-aksrt#331
This commit is contained in:
commit
d57a4270df
2 files changed
+5
-5
No files matched your search
@@ -172,7 +172,8 @@ main.container,
|
|||||||
* exceptions (UC level hero, admin column) override `height` per context.
|
* exceptions (UC level hero, admin column) override `height` per context.
|
||||||
*/
|
*/
|
||||||
.aksrt-user-level-icon,
|
.aksrt-user-level-icon,
|
||||||
.aksrt-identity-medal {
|
.aksrt-identity-medal,
|
||||||
|
.aksrt-identity-certification-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 1.1em;
|
height: 1.1em;
|
||||||
|
|||||||
@@ -140,10 +140,10 @@ class Home {
|
|||||||
|
|
||||||
if (!empty($settings['verify']['enabled']) && !empty($settings['verify']['public_display']) && $this->is_user_verified($user_id, $settings['verify'])) {
|
if (!empty($settings['verify']['enabled']) && !empty($settings['verify']['public_display']) && $this->is_user_verified($user_id, $settings['verify'])) {
|
||||||
$info = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_auth_info($user_id) : [];
|
$info = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_auth_info($user_id) : [];
|
||||||
$type = sanitize_key((string) ($info['type'] ?? ''));
|
$application = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_apply_payload($user_id) : [];
|
||||||
|
$type = sanitize_key((string) ($info['type'] ?? $application['type'] ?? ''));
|
||||||
$type_settings = is_array($settings['verify']['types'][$type] ?? null) ? $settings['verify']['types'][$type] : [];
|
$type_settings = is_array($settings['verify']['types'][$type] ?? null) ? $settings['verify']['types'][$type] : [];
|
||||||
if ($type_settings !== []) {
|
$label = (string) ($type_settings['badge_text'] ?? $type_settings['label'] ?? __('认证用户', 'aksrt'));
|
||||||
$label = (string) $type_settings['badge_text'];
|
|
||||||
$signals[] = [
|
$signals[] = [
|
||||||
'type' => 'verify',
|
'type' => 'verify',
|
||||||
'label' => $label,
|
'label' => $label,
|
||||||
@@ -153,7 +153,6 @@ class Home {
|
|||||||
'tone' => 'success',
|
'tone' => 'success',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($settings['level']['enabled']) && !empty($settings['level']['public_display'])) {
|
if (!empty($settings['level']['enabled']) && !empty($settings['level']['public_display'])) {
|
||||||
$level = $this->get_user_level($user_id, $settings['level']);
|
$level = $this->get_user_level($user_id, $settings['level']);
|
||||||
|
|||||||
Reference in new issue
Block a user