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:
+1
-3
@@ -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')) : ?>
|
||||
|
||||
Reference in New Issue
Block a user