-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
36 lines (32 loc) · 958 Bytes
/
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
<?php
/**
* Template for displaying the sidebar.
*
* @since Theming 1.0.0
*/
if ( ! is_active_sidebar( 'sidebar-1' )
&& ! is_active_sidebar( 'sidebar-2' )
&& ! is_active_sidebar( 'sidebar-3' ) )
return;
?>
<section id="sidebar" class="py-5 mb-5">
<div class="container">
<div class="row">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<aside class="footer-widgets col-lg-4 col-12 text-center text-md-start mb-4">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<aside class="footer-widgets col-lg-4 col-12 text-center text-md-start mb-4">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</aside>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<aside class="footer-widgets col-lg-4 col-12 text-center text-md-start mb-4">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</aside>
<?php endif; ?>
</div>
</div>
</section>