feat(user): wear badge modal and user-center entry
Expose 我的徽章 modal on profile header with REST wear actions and update SPA badge help for icon_url + grant/wear flows.
This commit is contained in:
@@ -761,6 +761,17 @@ trait AKSRT_Scripts_Part_1b {
|
||||
file_exists($credits_js_path) ? (string) filemtime($credits_js_path) : $version,
|
||||
true
|
||||
);
|
||||
|
||||
$badges_js_path = get_template_directory() . '/assets/js/user-badges.js';
|
||||
if (file_exists($badges_js_path)) {
|
||||
wp_enqueue_script(
|
||||
'aksrt-user-badges',
|
||||
$base_uri . '/assets/js/user-badges.js',
|
||||
['aksrt-core'],
|
||||
(string) filemtime($badges_js_path),
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user