-
Notifications
You must be signed in to change notification settings - Fork 9
/
footer.php
82 lines (65 loc) · 2.53 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
<?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 siteorigin-north
* @license GPL 2.0
*/
?>
</div><!-- .container -->
</div><!-- #content -->
<?php do_action( 'siteorigin_north_footer_before' ); ?>
<footer id="colophon" class="site-footer <?php if ( ! siteorigin_setting( 'footer_constrained' ) ) echo 'unconstrained-footer'; if ( is_active_sidebar( 'footer-sidebar' ) ) echo ' footer-active-sidebar'; ?>">
<?php do_action( 'siteorigin_north_footer_top' ); ?>
<?php if ( ! siteorigin_page_setting( 'hide_footer_widgets', false ) && ! in_array( siteorigin_page_setting( 'layout' ), array( 'stripped' ), true ) ) : ?>
<div class="container">
<?php
if ( is_active_sidebar( 'footer-sidebar' ) ) {
$siteorigin_north_sidebars = wp_get_sidebars_widgets();
?>
<div class="widgets widget-area widgets-<?php echo count( $siteorigin_north_sidebars['footer-sidebar'] ) ?>" aria-label="<?php esc_attr_e( 'Footer Sidebar', 'siteorigin-north' ); ?>">
<?php dynamic_sidebar( 'footer-sidebar' ); ?>
</div>
<?php
}
?>
</div><!-- .container -->
<?php endif; ?>
<div class="site-info">
<div class="container">
<?php
siteorigin_north_footer_text();
if ( function_exists( 'the_privacy_policy_link' ) && siteorigin_setting( 'footer_privacy_policy_link' ) ) {
$privacy_url = get_privacy_policy_url();
if ( ! empty( $privacy_url ) && siteorigin_setting( 'footer_text' ) ) {
?><span class="sep"> | </span><?php
}
the_privacy_policy_link( '', '' );
}
$credit_text = apply_filters(
'siteorigin_north_footer_credits',
sprintf( esc_html__( 'Theme by %s.', 'siteorigin-north' ), '<a href="https://siteorigin.com/">SiteOrigin</a>' )
);
if ( ! empty( $credit_text ) ) {
?><span class="sep"> | </span><?php
echo wp_kses_post( $credit_text );
}
?>
</div>
</div><!-- .site-info -->
<?php do_action( 'siteorigin_north_footer_bottom' ); ?>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php if ( siteorigin_setting( 'navigation_scroll_to_top' ) && siteorigin_page_setting( 'layout' ) !== 'stripped' ) : ?>
<div id="scroll-to-top">
<span class="screen-reader-text"><?php esc_html_e( 'Scroll to top', 'siteorigin-north' ); ?></span>
<?php siteorigin_north_display_icon( 'up-arrow' ); ?>
</div>
<?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>