-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathfooter.php
More file actions
62 lines (49 loc) · 1.64 KB
/
Copy pathfooter.php
File metadata and controls
62 lines (49 loc) · 1.64 KB
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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package buddyx
*/
namespace BuddyX\Buddyx;
?>
<?php
$classes = get_body_class();
if ( ! in_array( 'page-template-full-width', $classes ) ) {
?>
</div><!-- .container -->
<?php } ?>
<?php do_action( 'buddyx_footer_before' ); ?>
<footer id="colophon" class="site-footer">
<?php if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) : ?>
<div class="site-footer-wrapper">
<div class="container">
<?php
$footer_sidebars = array( 'footer-1', 'footer-2', 'footer-3', 'footer-4' );
$active_sidebars = array_filter( $footer_sidebars, 'is_active_sidebar' );
if ( ! empty( $active_sidebars ) ) :
?>
<div class="footer-inner" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'buddyx' ); ?>">
<?php foreach ( $active_sidebars as $sidebar ) : ?>
<div class="footer-widget">
<?php dynamic_sidebar( $sidebar ); ?>
</div>
<?php endforeach; ?>
</div><!-- .footer-inner -->
<?php endif; ?>
</div><!-- .container -->
</div><!-- .site-footer-wrapper -->
<?php get_template_part( 'template-parts/footer/info' ); ?>
<?php endif; ?>
</footer><!-- #colophon -->
<?php do_action( 'buddyx_footer_after' ); ?>
<?php do_action( 'buddyx_page_bottom' ); ?>
</div><!-- #page -->
<div class="mobile-menu-close"></div>
<?php do_action( 'buddyx_body_bottom' ); ?>
<?php wp_footer(); ?>
</body>
</html>