-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
55 lines (46 loc) · 1.38 KB
/
footer.php
File metadata and controls
55 lines (46 loc) · 1.38 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
51
52
53
54
55
<?php
/**
* Theme Footer Section
* It will be show on every page
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!--Footer Area-->
<footer id="footer_area">
<!-- Footer Top -->
<section class="footer-top">
<div class="container">
<div class="row">
<?php
// Loop through 6 possible footers and show only the active ones
for ($i = 1; $i <= 6; $i++) {
if (is_active_sidebar("footer-$i")) : ?>
<div class="col-12 col-md">
<?php dynamic_sidebar("footer-$i"); ?>
</div>
<?php endif;
}
?>
</div>
</div>
</section>
<!-- Footer Bottom -->
<section class="footer-bottom">
<div class="container">
<div class="row">
<div class="col-md-12">
<p><?php echo get_theme_mod('default_text'); ?></p>
</div>
</div>
</div>
</section>
</footer>
<?php wp_footer(); ?>
</body>
</html>