-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
92 lines (80 loc) · 3.31 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
<?php
$footer_widgets_disabled = of_get_option( 'md_footer_widgets_disabled');
$footer_widgets_columns = of_get_option( 'md_footer_widgets_columns');
if($footer_widgets_columns==4) {
$columnclass = "four columns";
}elseif($footer_widgets_columns==3) {
$columnclass = "one-third column";
}elseif($footer_widgets_columns==2) {
$columnclass = "eight columns";
}elseif($footer_widgets_columns==1) {
$columnclass = "sixteen columns";
}
?>
<footer>
<div class="sixteen columns">
<hr class="footer border-color" />
<span class="footertext">
<?php echo $ftext = do_shortcode( of_get_option('md_footer_text') ); if($ftext!="") { echo '<br />'; }?>
<small>
Powered by <a href="http://www.wordpress.org" target="_blank">WordPress</a>. <a href="https://northeme.com/theme/workality-lite" target="_blank">Workality Theme</a> by <a href="https://northeme.com" target="_blank">Northeme</a>
</small>
</span>
<hr class="resshow border-color" />
<span class="social"><?php showSharing(); ?></span>
<hr class="footer border-color" />
<?php
if($footer_widgets_disabled!=1) {
?>
<?php
for($i=1;$i <= $footer_widgets_columns; $i++) {
?>
<div class="<?php echo $columnclass; if($i==1) echo ' alpha'; if($i==$footer_widgets_columns) echo ' omega'; ?>">
<?php if(is_active_sidebar( 'bottom-' . $i)) { ?>
<?php dynamic_sidebar( 'bottom-'.$i ); ?>
<?php } ?>
</div>
<?php } ?>
<?php } ?>
</div>
<?php
if($footer_widgets_disabled!=1) {
?>
<br class="clear" />
<div class="sixteen columns">
<hr class="border-color" />
</div>
<?php } ?>
</footer>
</div>
<div class="mobilemenu">
<?php if(!of_get_option('md_header_disable_search')) : ?>
<form class="">
<div class="mobile-search">
<input type="text" name="s" class="medium" value=""><button type="submit"><i class='fa fa-search'></i></button>
</div>
</form>
<?php endif; ?>
<?php wp_nav_menu(array(
'theme_location' => 'main_menu',
'container' => '',
'menu_class' => 'mob-nav',
'before' => '',
'fallback_cb' => ''
));
?>
</div>
<a href="#" class="backtotop"><i class="fa fa-angle-up"></i></a>
<div class="ajaxloader"><img src="<?php echo get_template_directory_uri();?>/images/loader.gif" /></div>
<?php
// ADD ANALYTICS CODE
echo of_get_option('md_footer_googleanalytics');
// ADD SHARING SCRIPTS
echo showshareingpost('','','',1);
?>
<?php
get_template_part( 'admin', 'custom' );
wp_footer();
?>
</body>
</html>