35 lines
898 B
PHP
35 lines
898 B
PHP
|
<?php
|
||
|
/**
|
||
|
* The sidebar containing the main widget area
|
||
|
*
|
||
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||
|
*
|
||
|
* @package Radcliffe 2
|
||
|
*/
|
||
|
|
||
|
if ( ! is_active_sidebar( 'sidebar-1' ) && ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
|
||
|
return;
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
<aside class="widget-area">
|
||
|
<div class="widget-wrapper">
|
||
|
<?php
|
||
|
if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
|
||
|
<div class="widget-column footer-widget-1">
|
||
|
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||
|
</div>
|
||
|
<?php }
|
||
|
if ( is_active_sidebar( 'sidebar-2' ) ) { ?>
|
||
|
<div class="widget-column footer-widget-2">
|
||
|
<?php dynamic_sidebar( 'sidebar-2' ); ?>
|
||
|
</div>
|
||
|
<?php }
|
||
|
if ( is_active_sidebar( 'sidebar-3' ) ) { ?>
|
||
|
<div class="widget-column footer-widget-3">
|
||
|
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
</div>
|
||
|
</aside><!-- #secondary -->
|