-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
executable file
·170 lines (139 loc) · 4.85 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
/**
* @package WordPress
* @subpackage Pet Rescue
* @version 1.1.8
*
* Website Footer Template
* Created by CMSMasters
*
*/
$cmsms_option = cmsms_get_global_options();
if (class_exists('woocommerce') && is_shop()) {
$cmsms_page_id = wc_get_page_id('shop');
} elseif (
!is_404() &&
!is_archive() &&
!is_search() &&
!is_home()
) {
$cmsms_page_id = get_the_ID();
}
if (
(
class_exists('woocommerce') &&
is_shop()
) || (
!is_404() &&
!is_archive() &&
!is_search() &&
!is_home()
)
) {
$cmsms_bottom_sidebar = get_post_meta($cmsms_page_id, 'cmsms_bottom_sidebar', true) !== '' ? get_post_meta($cmsms_page_id, 'cmsms_bottom_sidebar', true) : ($cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar'] == 1 ? 'true' : 'false');
$cmsms_bottom_sidebar_layout = get_post_meta($cmsms_page_id, 'cmsms_bottom_sidebar_layout', true) !== '' ? get_post_meta($cmsms_page_id, 'cmsms_bottom_sidebar_layout', true) : $cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar_layout'];
} elseif (
is_archive() ||
is_search()
) {
$cmsms_bottom_sidebar = $cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar'] == 1 ? 'true' : 'false';
$cmsms_bottom_sidebar_layout = $cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar_layout'];
}
echo '</section>' . "\r" .
'</div>' . "\n" .
'</section>' . "\n" .
'<!-- _________________________ Finish Middle _________________________ -->' . "\n\n\n";
if (
!is_home() &&
!is_404() &&
$cmsms_bottom_sidebar &&
$cmsms_bottom_sidebar == 'true'
) {
echo '<!-- _________________________ Start Bottom _________________________ -->' . "\n" .
'<section id="bottom" class="cmsms_color_scheme_' . $cmsms_option[CMSMS_SHORTNAME . '_bottom_scheme'] . '">' . "\n" .
'<div class="bottom_bg">' . "\n" .
'<div class="bottom_outer">' . "\n" .
'<div class="bottom_inner sidebar_layout_' . $cmsms_bottom_sidebar_layout . '">' . "\n";
get_sidebar('bottom');
echo '</div>' . "\r" .
'</div>' . "\r" .
'</div>' . "\r" .
'</section>' . "\r" .
'<!-- _________________________ Finish Bottom _________________________ -->' . "\n\n";
}
echo '<a href="javascript:void(0);" id="slide_top" class="cmsms_theme_icon_slide_top"></a>' . "\n";
?>
</div>
<!-- _________________________ Finish Main _________________________ -->
<!-- _________________________ Start Footer _________________________ -->
<footer id="footer" role="contentinfo" class="<?php echo 'cmsms_color_scheme_' . $cmsms_option[CMSMS_SHORTNAME . '_footer_scheme'] . ($cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'default' ? ' cmsms_footer_default' : ' cmsms_footer_small');
?>">
<div class="footer_bg">
<div class="footer_inner">
<?php
if (
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'default' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_logo']
) {
cmsms_footer_logo();
}
if (
has_nav_menu('footer') &&
(
(
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'default' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_nav']
) || (
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'small' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_additional_content'] == 'nav'
)
)
) {
echo '<nav>';
wp_nav_menu(array(
'theme_location' => 'footer',
'menu_id' => 'footer_nav',
'menu_class' => 'footer_nav'
));
echo '</nav>';
}
if (
isset($cmsms_option[CMSMS_SHORTNAME . '_social_icons']) &&
(
(
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'default' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_social']
) || (
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'small' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_additional_content'] == 'social'
)
)
) {
cmsms_social_icons();
}
if (
(
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'default' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_html'] !== ''
) || (
$cmsms_option[CMSMS_SHORTNAME . '_footer_type'] == 'small' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_additional_content'] == 'text' &&
$cmsms_option[CMSMS_SHORTNAME . '_footer_html'] !== ''
)
) {
echo '<div class="footer_custom_html">' .
do_shortcode(stripslashes($cmsms_option[CMSMS_SHORTNAME . '_footer_html'])) .
'</div>';
}
echo '<span class="copyright">' . stripslashes($cmsms_option[CMSMS_SHORTNAME . '_footer_copyright']) . '</span>' . "\n";
?>
</div>
</div>
</footer>
<!-- _________________________ Finish Footer _________________________ -->
</section>
<span class="cmsms_responsive_width"></span>
<!-- _________________________ Finish Page _________________________ -->
<?php wp_footer(); ?>
</body>
</html>