-
Notifications
You must be signed in to change notification settings - Fork 10
/
sidebar.php
53 lines (49 loc) · 1.21 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package getwid_base
*/
if ( ! is_active_sidebar( 'sidebar-1' ) && ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) && ! is_active_sidebar( 'sidebar-4' ) ) {
return;
}
?>
<div class="footer-sidebars-wrapper">
<?php
$widgets_wrapper_classes = apply_filters( 'getwid_base_sidebars_wrapper_classes', [ 'footer-sidebars' ] );
?>
<div class="<?php echo esc_attr( implode( ' ', $widgets_wrapper_classes ) ); ?>">
<?php
if ( is_active_sidebar( 'sidebar-1' ) ):
?>
<aside class="widget-area">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside>
<?php
endif;
if ( is_active_sidebar( 'sidebar-2' ) ):
?>
<aside class="widget-area">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</aside>
<?php
endif;
if ( is_active_sidebar( 'sidebar-3' ) ):
?>
<aside class="widget-area">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</aside>
<?php
endif;
if ( is_active_sidebar( 'sidebar-4' ) ):
?>
<aside class="widget-area">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</aside>
<?php
endif;
?>
</div>
</div>