-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfooter.php
59 lines (43 loc) · 1.68 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package Simple Grey
*/
$basic_allowed = simple_grey_basic_allowed_html();
$footer_bottom = get_theme_mod( 'simple_grey_footer_text_bottom' );
$show_credits = get_theme_mod( 'simple_grey_show_footer_credits' );
?>
</div>
</div>
</div>
<footer id="footer" class="site-footer" role="contentinfo">
<?php if ( get_theme_mod( 'simple_grey_footer_text_top' ) ) : ?>
<div class="footer-text"><?php echo esc_html( get_theme_mod( 'simple_grey_footer_text_top' ) ); ?></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-footer' ) ) : ?>
<div class="widget-area">
<?php if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar( 'sidebar-footer' ) ) : ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ( $footer_bottom ) : ?>
<div class="footer-text"><?php echo wp_kses( $footer_bottom, $basic_allowed ); ?></div>
<?php endif; ?>
<?php if ( $show_credits ) : ?>
<div class="footer-credits">
<p><?php esc_html_e( 'Theme: ', 'simple-grey' ); ?> <a href="<?php echo esc_url( 'https://wordpress.org/themes/simple-grey/' ); ?>">
<?php esc_html_e( 'Simple Grey', 'simple-grey' ); ?></a> <br>
<a href="<?php echo esc_url( 'https://github.com/peterhebert/simple-grey' ); ?>"><?php esc_html_e( 'Theme development on GitHub', 'simple-grey' ); ?></a>
</p>
<p><i class="mv mv-wordpress icon-large"></i> <a href="<?php echo esc_url( 'http://wordpress.org/' ); ?>" rel="generator"><?php esc_html_e( 'Proudly powered by WordPress', 'simple-grey' ); ?></a>
</p>
</div>
<?php endif; ?>
</footer>
<!-- #footer -->
<?php wp_footer(); ?>
</body>
</html>