-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
133 lines (110 loc) · 3.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
/**
* The template for displaying the footer.
*
* @package KiND
*/
?>
</main>
<footer class="kind-footer">
<?php if ( get_theme_mod( 'footer_social', true ) || get_theme_mod( 'footer_logo', true ) ) { ?>
<div class="bottom-bar">
<div class="kind-container">
<div class="flex-row align-bottom">
<div class="flex-cell flex-md-6">
<?php kind_footer_logo(); ?>
</div>
<div class="flex-cell flex-md-6 links-right">
<?php
if ( get_theme_mod( 'footer_social', true ) ) {
kind_social_links();
}
?>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="kind-container">
<?php if ( get_theme_mod( 'footer_about' ) || get_theme_mod( 'footer_policy' ) || has_nav_menu( 'footer' ) || has_nav_menu( 'footer_secondary' ) ) { ?>
<div class="widget-area">
<?php if ( get_theme_mod( 'footer_about' ) ) { ?>
<div class="widget-bottom widget-bottom-about">
<?php if ( get_theme_mod( 'footer_about_title' ) ) { ?>
<h2 class="widget-title"><?php echo esc_html( get_theme_mod( 'footer_about_title', __( 'About Us', 'kind' ) ) ); ?></h2>
<?php } ?>
<div class="textwidget">
<?php echo do_shortcode( wpautop( get_theme_mod( 'footer_about' ) ) ); ?>
</div>
</div>
<?php } ?>
<?php
if ( has_nav_menu( 'footer' ) ) {
$before = '<h2 class="widget-title">' . wp_get_nav_menu_name( 'footer' ) . '</h2>';
wp_nav_menu(
array(
'theme_location' => 'footer',
'container' => 'div',
'container_class' => 'widget-bottom widget-bottom-menu',
'container_aria_label' => esc_attr__( 'Footer menu', 'kind' ),
'depth' => 1,
'items_wrap' => $before . '<ul class="%2$s">%3$s</ul>',
)
);
}
?>
<?php
if ( has_nav_menu( 'footer_secondary' ) ) {
$before = '<h2 class="widget-title">' . wp_get_nav_menu_name( 'footer_secondary' ) . '</h2>';
wp_nav_menu(
array(
'theme_location' => 'footer_secondary',
'container' => 'div',
'container_class' => 'widget-bottom widget-bottom-menu',
'container_aria_label' => esc_attr__( 'Footer menu', 'kind' ),
'depth' => 1,
'items_wrap' => $before . '<ul class="%2$s">%3$s</ul>',
)
);
}
?>
<?php if ( get_theme_mod( 'footer_policy' ) ) { ?>
<div class="widget-bottom widget-bottom-policy">
<?php if ( get_theme_mod( 'footer_policy_title' ) ) { ?>
<h2 class="widget-title"><?php echo esc_html( get_theme_mod( 'footer_policy_title', __( 'Security policy', 'kind' ) ) ); ?></h2>
<?php } ?>
<div class="textwidget">
<?php echo do_shortcode( wpautop( get_theme_mod( 'footer_policy' ) ) ); ?>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
<?php if ( get_theme_mod( 'footer_copyright', true ) || get_theme_mod( 'footer_creator', true ) ) { ?>
<div class="hr"></div>
<div class="flex-row footer-credits align-center">
<div class="flex-cell flex-sm-8 flex-md-6">
<?php if ( get_theme_mod( 'footer_copyright', true ) ) { ?>
<div class="copy">
<?php echo do_shortcode( wp_kses_post( get_theme_mod( 'footer_copyright_text', kind_footer_copyright() ) ) ); ?>
</div>
<?php } ?>
</div>
<?php if ( get_theme_mod( 'footer_creator', true ) ) { ?>
<div class="flex-cell flex-sm-4 flex-md-6">
<div class="kind-brand">
<?php
$content = str_replace( '{theme-credit}', kind_footer_poweredby(), get_theme_mod( 'footer_creator', '{theme-credit}' ) );
echo do_shortcode( $content );
?>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</footer>
<?php do_action( 'kind_before_wp_footer' ); ?>
<?php wp_footer(); ?>
</body>
</html>