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:
2026-08-14 01:49:50 +08:00
parent 51d2ab3aa7
commit bd7d3046a5
43 changed files with 294 additions and 3581 deletions
+1 -3
View File
@@ -17,7 +17,7 @@ if (wp_is_mobile()) {
$sidebar_id = function_exists('aksrt_resolve_sidebar_id')
? aksrt_resolve_sidebar_id()
: 'sidebar-blog';
: 'home_sidebar';
?>
<div class="sidebar" role="complementary" aria-label="<?php esc_attr_e('侧栏', 'aksrt'); ?>">
@@ -29,8 +29,6 @@ $sidebar_id = function_exists('aksrt_resolve_sidebar_id')
<?php dynamic_sidebar($sidebar_id); ?>
<?php elseif ((is_home() || is_front_page()) && is_active_sidebar('home_sidebar')) : ?>
<?php dynamic_sidebar('home_sidebar'); ?>
<?php elseif ((is_home() || is_front_page()) && is_active_sidebar('sidebar-blog')) : ?>
<?php dynamic_sidebar('sidebar-blog'); ?>
<?php endif; ?>
<?php if (is_active_sidebar('all_sidebar_bottom')) : ?>