Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (53 sloc) 1.738 kb
2e4fc22 Initial commit. Bare bones.
Dougal Campbell authored
1 <?php
2 /**
3 * The Footer widget areas.
4 *
5 * @package WordPress
6f21dc3 Renaming from 'initializr' to 'formattd'.
Dougal Campbell authored
6 * @subpackage Formattd
ad89bf4 Changing current version to 0.1. Meant to do this before uploading to Gi...
Dougal Campbell authored
7 * @since Formattd 0.1
2e4fc22 Initial commit. Bare bones.
Dougal Campbell authored
8 */
9 ?>
10
11 <?php
12 /* The footer widget area is triggered if any of the areas
13 * have widgets. So let's check that first.
14 *
15 * If none of the sidebars have widgets, then let's bail early.
16 */
17 if ( ! is_active_sidebar( 'first-footer-widget-area' )
18 && ! is_active_sidebar( 'second-footer-widget-area' )
19 && ! is_active_sidebar( 'third-footer-widget-area' )
20 && ! is_active_sidebar( 'fourth-footer-widget-area' )
21 )
22 return;
23 // If we get this far, we have widgets. Let do this.
24 ?>
25
26 <div id="footer-widget-area" role="complementary">
27
28 <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
29 <div id="first" class="widget-area">
30 <ul class="xoxo">
31 <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
32 </ul>
33 </div><!-- #first .widget-area -->
34 <?php endif; ?>
35
36 <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
37 <div id="second" class="widget-area">
38 <ul class="xoxo">
39 <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
40 </ul>
41 </div><!-- #second .widget-area -->
42 <?php endif; ?>
43
44 <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
45 <div id="third" class="widget-area">
46 <ul class="xoxo">
47 <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
48 </ul>
49 </div><!-- #third .widget-area -->
50 <?php endif; ?>
51
52 <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
53 <div id="fourth" class="widget-area">
54 <ul class="xoxo">
55 <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
56 </ul>
57 </div><!-- #fourth .widget-area -->
58 <?php endif; ?>
59
60 </div><!-- #footer-widget-area -->
Something went wrong with that request. Please try again.