-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar.php
25 lines (24 loc) · 852 Bytes
/
sidebar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* The sidebar containing the main widget area for posts.
*
* @package Billie
*/
if ( is_archive() && is_active_sidebar( 'sidebar-4' ) || is_search() && is_active_sidebar( 'sidebar-4' ) ) {
?>
<div id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Archive sidebar', 'billie' ); ?>">
<h2 class="screen-reader-text"><?php esc_html_e( 'Sidebar', 'billie' ); ?></h2>
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</div><!-- #secondary -->
<?php
} else {
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return;
}
?>
<div id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Post sidebar', 'billie' ); ?>">
<h2 class="screen-reader-text"><?php esc_html_e( 'Sidebar', 'billie' ); ?></h2>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary -->
<?php
}