-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar-footer.php
103 lines (48 loc) · 1.83 KB
/
sidebar-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
<?php
/**
* The sidebar containing the footer widget area.
*
* If no active widgets in sidebar, let's hide it completely.
*
* @package WordPress
* @subpackage jrConway.jrBlog
* @since jrBlog 1.9
*/
?>
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div id="footer1" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div><!-- #footer1 -->
<?php else : ?>
<div id="footer1" class="widget-area" role="complementary">
<?php wp_nav_menu( array( 'theme_location' => 'footer-1', 'menu_class' => 'nav-menu' ) ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div id="footer2" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div><!-- #footer2 -->
<?php else : ?>
<div id="footer2" class="widget-area" role="complementary">
<?php wp_nav_menu( array( 'theme_location' => 'footer-2', 'menu_class' => 'nav-menu' ) ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div id="footer3" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-3' ); ?>
</div><!-- #footer3 -->
<?php else : ?>
<div id="footer3" class="widget-area" role="complementary">
<?php wp_nav_menu( array( 'theme_location' => 'footer-3', 'menu_class' => 'nav-menu' ) ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
<div id="footer4" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-4' ); ?>
</div><!-- #footer4 -->
<?php else : ?>
<div id="footer4" class="widget-area" role="complementary">
<?php wp_nav_menu( array( 'theme_location' => 'footer-4', 'menu_class' => 'nav-menu' ) ); ?>
</div>
<?php endif; ?>
<div class="clear"> </div>