This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
65 lines (59 loc) · 2.18 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
</div>
<!-- / .content -->
<?php
$has_footer_1 = is_active_sidebar( 'footer-1' );
$has_footer_2 = is_active_sidebar( 'footer-2' );
$has_footer_3 = is_active_sidebar( 'footer-3' );
?>
<?php if ( $has_footer_1 || $has_footer_2 || $has_footer_3 ) { ?>
<!-- .footer -->
<footer class="footer">
<div class="footer__wrapper">
<?php if ( $has_footer_1 ) { ?>
<div class="footer__widget">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div>
<?php } if ( $has_footer_2 ) { ?>
<div class="footer__widget">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div>
<?php } if ( $has_footer_3 ) { ?>
<div class="footer__widget">
<?php dynamic_sidebar( 'footer-3' ); ?>
</div>
<?php } ?>
</div>
</footer>
<!-- / .footer -->
<?php } ?>
<?php if ( get_theme_mod( 'display_by', 'enabled_all' ) != 'disabled' || get_theme_mod( 'display_copyright', 'enabled' ) == 'enabled' ) { ?>
<!-- .copyright -->
<div class="copyright">
<div class="copyright__wrapper">
<?php if ( get_theme_mod( 'display_copyright', 'enabled' ) == 'enabled' ) { ?>
<div class="copyright__left">
<?php echo get_bloginfo( 'name' ); ?> © <?php echo date('Y'); ?>
</div>
<?php } ?>
<?php if ( get_theme_mod( 'display_by', 'enabled_all' ) != 'disabled' ) { ?>
<div class="copyright__right">
<?php if ( get_theme_mod( 'display_by', 'enabled_all' ) == 'enabled_all' ) { ?>
<?php _e( 'Powered by <a href="//tw.wordpress.org/">WordPress</a> with <a href="//github.com/teacat/tunalog">Tunalog</a> theme', 'tunalog' ); ?>
<?php } else { ?>
<?php _e ( 'Proudly powered by <a href="//tw.wordpress.org/">WordPress</a>', 'tunalog' ); ?>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
<!-- / .copyright -->
<?php } ?>
</div>
<!-- / .wrapper -->
<script>
window.addEventListener('load', () => document.body.classList.remove('is-preload'));
window.addEventListener('load', () => document.body.appendChild(document.querySelector("#wpadminbar")))
</script>
<?php wp_footer(); ?>
</body>
</html>