-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsidebar-content-bottom.php
33 lines (30 loc) · 1.13 KB
/
sidebar-content-bottom.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
26
27
28
29
30
31
32
33
<?php
/**
* The template for the content bottom widget areas on posts and pages
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
if ( ! is_active_sidebar( 'sidebar-below-content-full' ) || is_active_sidebar( 'sidebar-below-content-left' ) && ! is_active_sidebar( 'sidebar-below-content-right' ) ) {
return;
}
// If we get this far, we have widgets. Let's do this.
?>
<aside id="content-bottom-widgets" class="content-bottom-widgets" role="complementary">
<?php if ( is_active_sidebar( 'sidebar-below-content-full' ) ) : ?>
<div class="widget-area-full">
<?php dynamic_sidebar( 'sidebar-below-content-full' ); ?>
</div><!-- .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-below-content-left' ) ) : ?>
<div class="widget-area">
<?php dynamic_sidebar( 'sidebar-below-content-left' ); ?>
</div><!-- .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-below-content-right' ) ) : ?>
<div class="widget-area">
<?php dynamic_sidebar( 'sidebar-below-content-right' ); ?>
</div><!-- .widget-area -->
<?php endif; ?>
</aside><!-- .content-bottom-widgets -->