-
Notifications
You must be signed in to change notification settings - Fork 10
/
footer.php
50 lines (43 loc) · 1.29 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
<?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 getwid_base
*/
?>
</div><!-- #content -->
<?php
get_sidebar();
?>
<footer id="colophon" class="site-footer">
<?php
$show_site_info = (bool) get_theme_mod( 'getwid_base_show_footer_text', true );
if ( $show_site_info ):
?>
<div class="site-info">
<?php
$dateObj = new DateTime;
$current_year = $dateObj->format( "Y" );
$site_info_default = apply_filters( 'getwid_base_site_info',
_x( '%2$s © %1$s. All Rights Reserved.<br/><span style="font-size: .875em">Designed by <a href="https://motopress.com/" target="_blank" rel="noopener noreferrer nofollow">MotoPress</a>.</span>', 'Default footer text. %1$s - current year, %2$s - site title.', 'getwid-base' )
);
$site_info = get_theme_mod( 'getwid_base_footer_text', false ) ? get_theme_mod( 'getwid_base_footer_text' ) : $site_info_default;
echo wp_kses_post(
sprintf(
$site_info,
$current_year,
get_bloginfo('name')
)
);
?>
</div>
<?php
endif;
?>
</footer><!-- #colophon --></div><!-- #page -->
<?php wp_footer(); ?>
</body></html>