forked from oceanwp/oceanwp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
executable file
·83 lines (63 loc) · 1.67 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
<?php
/**
* The template for displaying the footer.
*
* @package OceanWP WordPress theme
*/
?>
</main><!-- #main -->
<?php do_action( 'ocean_after_main' ); ?>
<?php do_action( 'ocean_before_footer' ); ?>
<?php
// Elementor `footer` location.
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) {
?>
<?php do_action( 'ocean_footer' ); ?>
<?php } ?>
<?php do_action( 'ocean_after_footer' ); ?>
</div><!-- #wrap -->
<?php do_action( 'ocean_after_wrap' ); ?>
</div><!-- #outer-wrap -->
<?php do_action( 'ocean_after_outer_wrap' ); ?>
<?php
// If is not sticky footer.
if ( ! class_exists( 'Ocean_Sticky_Footer' ) ) {
get_template_part( 'partials/scroll-top' );
}
?>
<?php
// Search overlay style.
if ( 'overlay' === oceanwp_menu_search_style() ) {
get_template_part( 'partials/header/search-overlay' );
}
?>
<?php
// If sidebar mobile menu style.
if ( 'sidebar' === oceanwp_mobile_menu_style() ) {
// Mobile panel close button.
if ( get_theme_mod( 'ocean_mobile_menu_close_btn', true ) ) {
get_template_part( 'partials/mobile/mobile-sidr-close' );
}
?>
<?php
// Mobile Menu (if defined).
get_template_part( 'partials/mobile/mobile-nav' );
?>
<?php
// Mobile search form.
if ( get_theme_mod( 'ocean_mobile_menu_search', true ) ) {
ob_start();
get_template_part( 'partials/mobile/mobile-search' );
echo ob_get_clean();
}
}
?>
<?php
// If full screen mobile menu style.
if ( 'fullscreen' === oceanwp_mobile_menu_style() ) {
get_template_part( 'partials/mobile/mobile-fullscreen' );
}
?>
<?php wp_footer(); ?>
</body>
</html>