forked from littlebizzy/hovercraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
92 lines (77 loc) · 3.26 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
<div class="clear"></div>
<?php if ( is_active_sidebar( 'hovercraft_home_postmain_top' ) && is_front_page() ) { ?>
<div id="home-postmain-top">
<div class="inner">
<?php dynamic_sidebar( 'hovercraft_home_postmain_top' ); ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- home-postmain-top -->
<?php } ?>
<?php if ( is_active_sidebar( 'hovercraft_home_postmain_bottom' ) && is_front_page() ) { ?>
<div id="home-postmain-bottom">
<div class="inner">
<?php dynamic_sidebar( 'hovercraft_home_postmain_bottom' ); ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- home-postmain-bottom -->
<?php } ?>
<?php if ( is_active_sidebar( 'hovercraft_prefooter_top' ) ) { ?>
<div id="prefooter-top">
<div class="inner">
<?php dynamic_sidebar( 'hovercraft_prefooter_top' ); ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- prefooter-top -->
<?php } ?>
<?php if ( is_active_sidebar( 'hovercraft_prefooter_bottom' ) ) { ?>
<div id="prefooter-bottom">
<div class="inner">
<?php dynamic_sidebar( 'hovercraft_prefooter_bottom' ); ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- prefooter-bottom -->
<?php } ?>
<?php if ( is_active_sidebar( 'hovercraft_footer_one' ) || is_active_sidebar( 'hovercraft_footer_two' ) || is_active_sidebar( 'hovercraft_footer_three' ) ) { ?>
<div id="footer">
<div class="inner">
<?php if ( get_theme_mod( 'hovercraft_footer_columns' ) == 'four_equal') {
get_template_part( 'template-parts/footer/footer-four-columns-equal' );
} elseif ( get_theme_mod( 'hovercraft_footer_columns' ) == 'four_weighted') {
get_template_part( 'template-parts/footer/footer-four-columns-unequal' );
} elseif ( get_theme_mod( 'hovercraft_footer_columns' ) == 'three_equal') {
get_template_part( 'template-parts/footer/footer-three-columns-equal' );
} elseif ( get_theme_mod( 'hovercraft_footer_columns' ) == 'three_weighted') {
get_template_part( 'template-parts/footer/footer-three-columns-unequal' );
} else {
get_template_part( 'template-parts/footer/footer-four-columns-unequal' );
} ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- footer -->
<?php } ?>
<div id="copyright">
<div class="inner">
<div class="copyright-left">
© <?php echo date("Y"); ?> <?php echo get_bloginfo( 'name' ); ?>. All rights reserved. Powered by <a rel="nofollow" href="https://hovercraft.vip/">HoverCraft</a>.
<div class="clear"></div>
</div><!-- copyright-left -->
<?php if ( is_active_sidebar('hovercraft_copyright')) { ?>
<div class="copyright-right">
<?php add_filter ( 'widget_title' , 'my_widget_title', 10, 1); //we use the default priority and 3 arguments in the callback function
dynamic_sidebar( 'hovercraft_copyright' ); remove_filter('widget_title', 'my_widget_title'); ?>
<div class="clear"></div>
</div><!-- copyright-right -->
<?php } ?>
<?php $hovercraft_scroll_to_top = get_theme_mod( 'hovercraft_scroll_to_top', 'mobile_only' );
if ( $hovercraft_scroll_to_top != 'none' ) { ?>
<div class="scrollup-wrapper">
<a class="scrollup-link" href="#top">Back to top<i class="material-icons arrow_upward">arrow_upward</i></a>
</div><!-- scrollup-wrapper -->
<?php } ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- copyright -->
</div><!-- container -->
<?php wp_footer(); ?>
</body><!-- body -->
</html><!-- html -->