-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
81 lines (67 loc) · 2.09 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @package Tower
*/
?>
<footer id="colophon" class="site-footer" role="contentinfo">
<!-- <div class="footer-container"> -->
<?php
if ( is_active_sidebar( 'sidebar-2' ) ||
is_active_sidebar( 'sidebar-3' ) ||
is_active_sidebar( 'sidebar-4' ) ) :
?>
<div class="widget-container">
<h3 class="footer-widget-title"><?php bloginfo( 'name' ); ?></h3>
<aside class="widget-area footer-widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'tower' ); ?>">
<?php
if ( is_active_sidebar( 'sidebar-2' ) ) {
?>
<div class="widget-column footer-widget-1">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div>
<?php
}
if ( is_active_sidebar( 'sidebar-3' ) ) {
?>
<div class="widget-column footer-widget-2">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div>
<?php
}
if ( is_active_sidebar( 'sidebar-4' ) ) {
?>
<div class="widget-column footer-widget-3">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</div>
<?php } ?>
</aside><!-- .widget-area -->
<?php endif; ?>
</div><!-- .widget-container -->
<div class="bottom-footer">
<div class="site-info">
<span><?php esc_html_e('© 2020 -', 'tower'); ?></span>
<?php
printf(
esc_html( date('Y') )
);
?>
<span><?php esc_html_e('Design and WordPress theme by ', 'tower') ?></span>
<?php
$my_theme = wp_get_theme(); ?>
<?php if( is_front_page() ) { ?>
<span><a href="<?php echo esc_html( $my_theme->get( 'AuthorURI' ) ); ?>"><?php echo esc_html( $my_theme->get( 'Author' ) ); ?></a></span>
<?php } else { ?>
<span><a href="<?php echo esc_html( $my_theme->get( 'AuthorURI' ) ); ?>" rel="nofollow"><?php echo esc_html( $my_theme->get( 'Author' ) ); ?></a></span>
<?php } ?>
</div><!-- .site-info -->
</div><!-- .bottom-footer -->
</footer><!-- #colophon -->
</div><!-- #page -->
</div>
<?php wp_footer(); ?>
</body>
</html>