-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
55 lines (45 loc) · 2 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
<footer class="footer" role="contentinfo" itemscope itemtype="http://schema.org/WPFooter">
<div id="inner-footer" class="wrap">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<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', // class of container (should you choose to use it)
'menu' => __( 'Footer Links', 'sepalandseedtheme' ), // nav name
'menu_class' => 'nav footer-nav', // 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' => false // fallback function
)); ?>
<div class="colophon">
<div class="social">
<i class="icon-twitter"></i>
<i class="icon-facebook"></i>
<i class="icon-gplus"></i>
</div>
<div>
<p class="source-org copyright">© <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>.</p>
</div>
</div>
</nav>
</div>
</div>
</footer>
</div>
<script>
var menuButton = document.querySelector('.menu-button');
menuButton.addEventListener('click', function(e) {
e.preventDefault();
var state = 'nav-open';
this.nextElementSibling.classList.toggle(state);
menuButton.classList.toggle(state);
});
</script>
<?php // all js scripts are loaded in library/sepal-and-seed.php ?>
<?php wp_footer(); ?>
</body>
</html>