2010-03-29 18:03:15 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2010-05-17 02:32:03 -04:00
|
|
|
* The Footer widget areas.
|
2010-03-29 18:03:15 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
2010-05-16 13:10:21 -04:00
|
|
|
* @subpackage Twenty_Ten
|
2010-05-17 02:36:11 -04:00
|
|
|
* @since Twenty Ten 1.0
|
2010-03-29 18:03:15 -04:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2010-02-07 11:16:26 -05:00
|
|
|
<?php
|
2010-05-17 02:36:11 -04:00
|
|
|
/* The footer widget area is triggered if any of the areas
|
|
|
|
* have widgets. So let's check that first.
|
|
|
|
*
|
|
|
|
* If none of the sidebars have widgets, then let's bail early.
|
|
|
|
*/
|
|
|
|
if ( ! is_active_sidebar( 'first-footer-widget-area' )
|
|
|
|
&& ! is_active_sidebar( 'second-footer-widget-area' )
|
|
|
|
&& ! is_active_sidebar( 'third-footer-widget-area' )
|
|
|
|
&& ! is_active_sidebar( 'fourth-footer-widget-area' )
|
|
|
|
)
|
|
|
|
return;
|
|
|
|
// If we get this far, we have widgets. Let do this.
|
2010-02-07 11:16:26 -05:00
|
|
|
?>
|
2010-05-17 02:36:11 -04:00
|
|
|
|
2010-05-10 17:10:12 -04:00
|
|
|
<div id="footer-widget-area" role="complementary">
|
2010-05-17 02:36:11 -04:00
|
|
|
|
2010-03-16 16:17:22 -04:00
|
|
|
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
|
2010-05-17 02:36:11 -04:00
|
|
|
<div id="first" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
|
|
|
<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
|
|
|
|
</ul>
|
|
|
|
</div><!-- #first .widget-area -->
|
2010-02-08 13:02:23 -05:00
|
|
|
<?php endif; ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
|
2010-03-16 16:17:22 -04:00
|
|
|
<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
<div id="second" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</div><!-- #second .widget-area -->
|
2010-02-08 13:02:23 -05:00
|
|
|
<?php endif; ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
|
2010-03-16 16:17:22 -04:00
|
|
|
<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
<div id="third" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</div><!-- #third .widget-area -->
|
2010-02-08 13:02:23 -05:00
|
|
|
<?php endif; ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
|
2010-03-16 16:17:22 -04:00
|
|
|
<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
<div id="fourth" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</div><!-- #fourth .widget-area -->
|
2010-02-08 13:02:23 -05:00
|
|
|
<?php endif; ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
|
|
|
|
</div><!-- #footer-widget-area -->
|