-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
151 lines (134 loc) · 4.36 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
<?php
/**
* @package WordPress
* @subpackage Oakland
* @since Oakland 1.0
*
* Pages Footer Template
* Created by CMSMasters
*
*/
global $disable_bottom_sidebar,
$site_footer,
$site_footer_content,
$footer_html,
$footer_text,
$analytic_code,
$sharing_icons,
$footer_css,
$footer_js,
$footer_social_icons;
$selectedicons = explode(',', $footer_social_icons);
$middlesidebar_active = get_post_meta(get_the_ID(), 'middlesidebar_active', true);
?>
<div class="cl"></div>
</div>
<?php if ($middlesidebar_active == 'true' && is_active_sidebar('sidebar_middle')) { ?>
<!-- _________________________ Start Middle Sidebar _________________________ -->
<div class="middle_sidebar_divider"></div>
<section class="middle_content_sidebar">
<?php
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('sidebar_middle');
}
?>
</section>
<!-- _________________________ Finish Middle Sidebar _________________________ -->
<?php } ?>
</div>
</section>
<!-- _________________________ Finish Middle _________________________ -->
<?php if ($disable_bottom_sidebar == 'true' && is_active_sidebar('sidebar_bottom')) { ?>
<!-- _________________________ Start Bottom _________________________ -->
<section id="bottom">
<div class="bottom_inner">
<?php
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('sidebar_bottom');
}
?>
</div>
</section>
<!-- _________________________ Finish Bottom _________________________ -->
<?php } ?>
<!-- _________________________ Finish Container _________________________ -->
</div>
<!-- _________________________ Finish Page _________________________ -->
</section>
<!-- _________________________ Start Footer _________________________ -->
<section id="footer">
<div class="footer_inner">
<?php if ($site_footer) { ?>
<div class="fr disable_fr">
<?php
if ($site_footer_content == 'html') {
echo stripslashes($footer_html);
} elseif ($site_footer_content == 'social') {
echo '<ul class="social_list fr">';
foreach ($selectedicons as $selectedicon) {
foreach (get_social_icons() as $socialicon) {
if ($socialicon->icon_name == $selectedicon && $socialicon->icon_name == 'email') {
echo '<li>' .
'<a class="link_tooltip" target="_blank" href="mailto:' . $socialicon->icon_link . '" title="' . $socialicon->icon_tooltip . '">' .
'<img src="' . get_template_directory_uri() . '/images/social_icons/' . $socialicon->icon_file . '" alt="' . $socialicon->icon_name . '" />' .
'</a>' .
'</li>';
} elseif ($socialicon->icon_name == $selectedicon) {
echo '<li>' .
'<a class="link_tooltip" target="_blank" href="' . $socialicon->icon_link . '" title="' . $socialicon->icon_tooltip . '">' .
'<img src="' . get_template_directory_uri() . '/images/social_icons/' . $socialicon->icon_file . '" alt="' . $socialicon->icon_name . '" />' .
'</a>' .
'</li>';
}
}
}
echo '</ul>' .
'<p class="fl">' . __('Find us elsewhere', 'cmsmasters') . '</p>';
} elseif (has_nav_menu('footer')) {
wp_nav_menu(array(
'theme_location' => 'footer',
'container' => '',
'sort_column' => 'menu_order',
'menu_id' => 'footer_nav',
'menu_class' => 'footer_nav'
));
}
?>
</div>
<span class="enable_cl"></span>
<span><?php echo stripslashes($footer_text); ?></span>
<?php } else { ?>
<span><?php echo stripslashes($footer_text); ?></span>
<?php } ?>
<div class="cl"></div>
</div>
</section>
<!-- _________________________ Finish Footer _________________________ -->
<?php
if ($analytic_code != '') {
echo stripslashes($analytic_code);
}
wp_footer();
?>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('.cmsms_social').socicons( {
icons : '<?php echo $sharing_icons; ?>',
imagesurl : '<?php echo get_template_directory_uri(); ?>/images/share_icons/'
} );
} );
</script>
<?php
if ($footer_css != '') {
echo '<style type="text/css">' .
stripslashes($footer_css) .
'</style>';
}
if ($footer_js != '') {
echo '<script type="text/javascript">' .
stripslashes($footer_js) .
'</script>';
}
?>
</body>
</html>