-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar-footer.php
More file actions
50 lines (44 loc) · 1.25 KB
/
sidebar-footer.php
File metadata and controls
50 lines (44 loc) · 1.25 KB
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
<?php
/**
* The Footer widget areas
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$first = is_active_sidebar('first-footer-widget-area');
$second = is_active_sidebar('second-footer-widget-area');
$third = is_active_sidebar('third-footer-widget-area');
?>
<?php if ($first || $second || $third) : ?>
<div class="row">
<?php if ($first) : ?>
<?php if ($second) : ?>
<div class="col-sm-4">
<?php else: ?>
<div class="col-sm-8">
<?php endif; ?>
<div class="footer-module">
<?php dynamic_sidebar('first-footer-widget-area'); ?>
</div>
</div>
<?php endif; ?>
<?php if ($second) : ?>
<?php if ($third) : ?>
<div class="col-sm-4">
<?php else: ?>
<div class="col-sm-8">
<?php endif; ?>
<div class="footer-module">
<?php dynamic_sidebar('second-footer-widget-area'); ?>
</div>
</div>
<?php endif; ?>
<?php if ($third) : ?>
<div class="col-sm-4">
<div class="footer-module">
<?php dynamic_sidebar('third-footer-widget-area'); ?>
</div>
</div>
<?php endif; ?>
</div><!-- /.row -->
<?php endif ; ?>