mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
d22061139e
Fixes #36497. Built from https://develop.svn.wordpress.org/trunk@40851 git-svn-id: http://core.svn.wordpress.org/trunk@40702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
29 lines
794 B
PHP
29 lines
794 B
PHP
<?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-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
|
|
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-2' ) ) : ?>
|
|
<div class="widget-area">
|
|
<?php dynamic_sidebar( 'sidebar-2' ); ?>
|
|
</div><!-- .widget-area -->
|
|
<?php endif; ?>
|
|
|
|
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
|
|
<div class="widget-area">
|
|
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
|
</div><!-- .widget-area -->
|
|
<?php endif; ?>
|
|
</aside><!-- .content-bottom-widgets -->
|