-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfooter.php
77 lines (51 loc) · 2.08 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package whimsy
*/
?>
</div><!-- #content -->
<?php whimsy_content_after(); ?>
<footer id="colophon" class="site-footer container grid" role="contentinfo">
<?php whimsy_footer_before(); ?>
<div id="footer-widgets">
<?php whimsy_footer_inside_before(); ?>
<?php
$whimsy_framework_layout_footer = get_theme_mod( 'whimsy_framework_layout_footer' );
if( $whimsy_framework_layout_footer == 'footer-1' ) : ?>
<!-- Show 1 widget area in the footer. -->
<div class="c12 end"><?php dynamic_sidebar( 'footer-widgets-1' ); ?></div>
<?php elseif( $whimsy_framework_layout_footer == 'footer-2' ) : ?>
<!-- Show 2 widget areas in the footer. -->
<div class="c6"><?php dynamic_sidebar( 'footer-widgets-1' ); ?></div>
<div class="c6 end"><?php dynamic_sidebar( 'footer-widgets-2' ); ?></div>
<?php else : ?>
<!-- Show 3 widget areas in the footer. -->
<div class="c4"><?php dynamic_sidebar( 'footer-widgets-1' ); ?></div>
<div class="c4"><?php dynamic_sidebar( 'footer-widgets-2' ); ?></div>
<div class="c4 end"><?php dynamic_sidebar( 'footer-widgets-3' ); ?></div>
<?php endif; ?>
</div>
<div id="footer-menu">
<?php
if(wp_nav_menu( array( 'theme_location' => 'footer', 'fallback_cb' => 'false') )) {
echo wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-footer', 'theme_location' => 'footer' , 'echo' => '0' ) );
}
else
{
// there's no custom menu created.
}?>
</div>
<?php whimsy_footer_inside_after(); ?>
<?php whimsy_footer(); ?>
</footer><!-- #colophon -->
<?php whimsy_footer_after(); ?>
</div><!-- #content-container -->
</div><!-- #page -->
<?php whimsy_body_end(); ?>
<?php wp_footer(); ?>
</body>
</html>