2010-03-30 00:03:15 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-25 19:04:10 +02:00
|
|
|
* The Footer widget areas
|
2010-03-30 00:03:15 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
2010-05-16 19:10:21 +02:00
|
|
|
* @subpackage Twenty_Ten
|
2010-05-17 08:36:11 +02:00
|
|
|
* @since Twenty Ten 1.0
|
2010-03-30 00:03:15 +02:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2010-02-07 17:16:26 +01:00
|
|
|
<?php
|
2013-10-09 22:39:09 +02:00
|
|
|
/*
|
2013-09-25 19:04:10 +02:00
|
|
|
* The footer widget area is triggered if any of the areas
|
2010-05-17 08:36:11 +02:00
|
|
|
* 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 17:16:26 +01:00
|
|
|
?>
|
2010-05-17 08:36:11 +02:00
|
|
|
|
2010-05-10 23:10:12 +02:00
|
|
|
<div id="footer-widget-area" role="complementary">
|
2010-05-17 08:36:11 +02:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
|
2010-05-17 08:36:11 +02: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 19:02:23 +01:00
|
|
|
<?php endif; ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
<div id="second" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- #second .widget-area -->
|
2010-02-08 19:02:23 +01:00
|
|
|
<?php endif; ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
<div id="third" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- #third .widget-area -->
|
2010-02-08 19:02:23 +01:00
|
|
|
<?php endif; ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
<div id="fourth" class="widget-area">
|
|
|
|
<ul class="xoxo">
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- #fourth .widget-area -->
|
2010-02-08 19:02:23 +01:00
|
|
|
<?php endif; ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
|
|
|
|
</div><!-- #footer-widget-area -->
|