-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
62 lines (53 loc) · 2.1 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
<?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 Newspaper X
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<?php get_sidebar( 'footer' ) ?>
<?php $go_top = get_theme_mod( 'newspaper_x_enable_go_top', true ); ?>
<?php if ( $go_top ): ?>
<div class="back-to-top-area">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<a href="javascript:void(0)" id="back-to-top">
<span><?php echo esc_html__( 'Go Up', 'newspaper-x' ) ?></span>
<i class="fa fa-angle-up" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php $go_top = get_theme_mod( 'newspaper_x_enable_copyright', true ); ?>
<?php if ( $go_top ): ?>
<div class="site-info ">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php
$default = sprintf( __( '© %1$s Newspaper-X a theme by <a href="%2$s">Colorlib</a>', 'newspaper-x' ), date( "Y" ), 'https://colorlib.com' );
$copyright = get_theme_mod( 'newspaper_x_copyright_contents' );
echo empty( $copyright ) ? wp_kses_post( $default ) : wp_kses_post( $copyright );
?>
<nav id="footer-navigation" class="pull-right text-right hidden-xs">
<?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'depth' => 1 ) ); ?>
</nav>
</div>
</div>
</div>
</div><!-- .site-info -->
<?php endif; ?>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>