-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
34 lines (27 loc) · 770 Bytes
/
sidebar.php
File metadata and controls
34 lines (27 loc) · 770 Bytes
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
26
27
28
29
30
31
32
33
34
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package Quark
* @since Quark 1.0
*/
?>
<div class="col grid_4_of_12">
<div id="secondary" class="widget-area" role="complementary">
<?php
do_action( 'before_sidebar' );
if ( is_active_sidebar( 'sidebar-main' ) ) {
dynamic_sidebar( 'sidebar-main' );
}
if ( ( is_home() || is_archive() ) && is_active_sidebar( 'sidebar-blog' ) ) {
dynamic_sidebar( 'sidebar-blog' );
}
if ( is_single() && is_active_sidebar( 'sidebar-single' ) ) {
dynamic_sidebar( 'sidebar-single' );
}
if ( is_page() && is_active_sidebar( 'sidebar-page' ) ) {
dynamic_sidebar( 'sidebar-page' );
}
?>
</div> <!-- /#secondary.widget-area -->
</div> <!-- /.col.grid_4_of_12 -->