-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
75 lines (70 loc) · 1.92 KB
/
footer.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package ilogic
*/
$class = 'footer_main_inner container';
$cols = get_field_object('columns', 'option');
$tab_cols = get_field_object('tab_columns', 'option');
$mob_cols = get_field_object('mob_columns', 'option');
$padding = get_field_object('padding', 'option');
if ( ! empty( $cols ) ) {
$class .= ' ' . $cols['value'];
}
if ( ! empty( $tab_cols ) ) {
$class .= ' ' . $tab_cols['value'];
}
if ( ! empty( $mob_cols ) ) {
$class .= ' ' . $mob_cols['value'];
}
if ( ! empty( $padding) ) {
$class .= ' ' . $padding['value'];
}
?>
<footer id="footer" class="site_footer">
<div class="footer_main">
<div class="<?php echo $class; ?>">
<?php if ( is_active_sidebar( 'footer-1' ) ) { ?>
<div class="footer_col_1 column">
<?php dynamic_sidebar('footer-1'); ?>
</div>
<?php } ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) { ?>
<div class="footer_col_2 column">
<?php dynamic_sidebar('footer-2'); ?>
</div>
<?php } ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) { ?>
<div class="footer_col_3 column">
<?php dynamic_sidebar('footer-3'); ?>
</div>
<?php } ?>
<?php if ( is_active_sidebar( 'footer-4' ) ) { ?>
<div class="footer_col_4 column">
<?php dynamic_sidebar('footer-4'); ?>
</div>
<?php } ?>
</div>
</div>
<div class="footer_bottom">
<?php if ( is_active_sidebar( 'footer-bottom' ) ) { ?>
<?php dynamic_sidebar('footer-bottom'); ?>
<?php } ?>
</div>
</footer><!-- #footer -->
</div><!-- #page -->
<?php wp_footer(); ?>
<!--
(__)
`\------(oo)
|| (__) <(What are you looking for?)
||w--||
-->
<?php the_field('body_bottom_script', 'option') ?> <!-- Body End External Script -->
</body>
</html>