forked from eddiemachado-zz/bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
48 lines (47 loc) · 1.89 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
<div class="footer-navigation">
<div class="wrap cf">
<nav role="navigation">
<?php wp_nav_menu(array(
'container' => 'div', // enter '' to remove nav container (just make sure .footer-links in _base.scss isn't wrapping)
'container_class' => 'footer-links cf', // class of container (should you choose to use it)
'menu' => __( 'Footer Links', 'bonestheme' ), // nav name
'menu_class' => 'nav footer-nav cf', // adding custom nav class
'theme_location' => 'footer-links', // where it's located in the theme
'before' => '', // before the menu
'after' => '', // after the menu
'link_before' => '', // before each link
'link_after' => '', // after each link
'depth' => 0, // limit the depth of the nav
'fallback_cb' => 'bones_footer_links_fallback' // fallback function
)); ?>
</nav>
</div>
</div>
<?php
$copyright_year = get_theme_mod('bones_frontend_copyright_year');
$copyright_text = get_theme_mod('bones_frontend_copyright_text');
$copyright = '';
if ($copyright_year) {
$copyright .= '© ' . date('Y');
}
if (strlen($copyright_text)) {
if ($copyright_year) {
$copyright .= ' ';
}
$copyright .= $copyright_text;
}
?>
<?php if (strlen($copyright)): ?>
<footer class="footer" role="contentinfo" itemscope itemtype="http://schema.org/WPFooter">
<div id="inner-footer" class="wrap cf">
<p class="source-org copyright">
<?php echo $copyright; ?>
</p>
</div>
</footer>
<?php endif; ?>
</div>
<?php // all js scripts are loaded in library/bones.php ?>
<?php wp_footer(); ?>
</body>
</html>