-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
footer.php
111 lines (92 loc) · 4.6 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
<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' ); ?>. 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', '__return_false');
dynamic_sidebar( 'hovercraft_copyright' ); // https://stackoverflow.com/questions/13903918/apply-widget-title-filter-only-to-wordpress-widgets-from-a-certain-sidebar
remove_filter('widget_title', '__return_false'); ?>
<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">
<span class="scrollup-link"><?php _e( 'Back to top', 'hovercraft' ); ?></span>
</div><!-- scrollup-wrapper -->
<?php } ?>
<div class="clear"></div>
</div><!--inner -->
</div><!-- copyright -->
</div><!-- container -->
<div id="full-screen-search">
<button type="button" class="close"><i class="material-icons close">close</i></button>
<?php $hovercraft_layout_icons = get_theme_mod( 'hovercraft_layout_icons', 'material_icons_classic' );
if ( $hovercraft_layout_icons == 'material_icons_classic' ) { ?><button type="button" class="close"><i class="material-icons close">close</i></button><?php }
elseif ( $hovercraft_layout_icons == 'font_awesome_version_6' ) { ?><button type="button" class="close"><i class="fa-solid fa-x"></i></button><?php } ?>
<form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="input-container">
<input type="search" class="search-input" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" placeholder="<?php _e( 'Search entire website... ', 'hovercraft' ); ?>" />
<button type="submit" class="search-submit" name="submit"><?php $hovercraft_layout_icons = get_theme_mod( 'hovercraft_layout_icons', 'material_icons_classic' );
if ( $hovercraft_layout_icons == 'material_icons_classic' ) { ?><i class="material-icons search">search</i><?php }
elseif ( $hovercraft_layout_icons == 'font_awesome_version_6' ) { ?><i class="fas fa-search"></i><?php } ?></button>
</div><!-- input-container -->
</form><!-- searchform -->
</div><!-- full-screen-search -->
<?php wp_footer(); ?>
</body><!-- body -->
</html><!-- html -->