feat(widgets): simplify locations and paid sidebar
Remove deprecated widget locations and widgets, standardize sidebar labels, and render a compact paid-post purchase card in the article sidebar.
This commit is contained in:
@@ -380,17 +380,6 @@ trait ScriptsPart1c {
|
||||
}
|
||||
|
||||
// Frontend translate (默认关)
|
||||
$translate_js = get_template_directory() . '/assets/js/frontend-translate.js';
|
||||
if (file_exists($translate_js)) {
|
||||
wp_enqueue_script(
|
||||
'aksrt-frontend-translate',
|
||||
$base_uri . '/assets/js/frontend-translate.js',
|
||||
[],
|
||||
(string) filemtime($translate_js),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// Content protection (copy notice / right-click / F12)
|
||||
$content_protect_js = get_template_directory() . '/assets/js/content-protect.js';
|
||||
if (file_exists($content_protect_js)) {
|
||||
|
||||
Reference in New Issue
Block a user