forked from strangerstudios/memberlite-words
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
80 lines (78 loc) · 2.5 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package Memberlite
*/
?>
<?php
$template = get_page_template();
if(
!is_page_template('templates/fluid-width.php') &&
!is_page_template( 'templates/interstitial.php' ) &&
!is_404() &&
(!is_front_page() || (is_front_page() && !empty($template) && (basename($template) != 'page.php') || 'posts' == get_option( 'show_on_front' )))
)
{
?>
</div><!-- .row -->
<?php
}
?>
<?php do_action('after_content'); ?>
</div><!-- #content -->
<?php do_action('before_footer'); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<nav id="footer-navigation">
<?php
$footer_defaults = array(
'theme_location' => 'footer',
'container' => 'div',
'container_class' => 'footer-navigation row',
'menu_class' => 'menu large-8 large-offset-2 medium-10 medium-offset-1 small-12 columns',
'fallback_cb' => false,
);
wp_nav_menu($footer_defaults);
?>
</nav><!-- #footer-navigation -->
<?php do_action('before_site_info'); ?>
<div class="row site-info">
<div class="large-8 large-offset-2 medium-10 medium-offset-1 small-12 columns">
<div class="row">
<?php
global $memberlite_defaults;
$back_to_top = get_theme_mod( 'memberlite_back_to_top',$memberlite_defaults['memberlite_back_to_top'] ) ;
if( !empty($back_to_top) ) { ?>
<div class="small-11 columns">
<?php } else { ?>
<div class="large-12 columns">
<?php } ?>
<?php
$copyright_textbox = get_theme_mod( 'copyright_textbox',$memberlite_defaults['copyright_textbox'] );
if ( ! empty( $copyright_textbox ) )
{
echo wpautop(memberlite_Customize::sanitize_text_with_links($copyright_textbox));
}
?>
</div>
<?php
if( !empty($back_to_top) ) {
$back_to_top = apply_filters('memberlite_back_to_top', __('<i class="fa fa-chevron-up"></i>', 'memberlite') );
?>
<div class="small-1 columns text-right">
<?php echo '<a class="skip-link" href="#page">' . $back_to_top . '</a>'; ?>
</div><!-- .columns -->
<?php } ?>
</div><!-- .row -->
</div><!-- .columns -->
</div><!-- .row, .site-info -->
<?php do_action('after_site_info'); ?>
</footer><!-- #colophon -->
<?php do_action('after_footer'); ?>
</div><!-- #page -->
<?php do_action('after_page'); ?>
<?php wp_footer(); ?>
</body>
</html>