Melville/sidebar-slidedown.php

45 lines
1.2 KiB
PHP

<?php
/**
* The popout widget areas
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
<?php
/*
* 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-slidedown-widget-area' )
&& ! is_active_sidebar( 'second-slidedown-widget-area' )
) {
return;
}
// If we get this far, we have widgets. Let do this.
?>
<div id="slidedown-widget-area" role="complementary">
<?php if ( is_active_sidebar( 'first-slidedown-widget-area' ) ) : ?>
<div id="first" class="widget-float-left slidedown-widget-area">
<div class="xoxo">
<?php dynamic_sidebar( 'first-slidedown-widget-area' ); ?>
</div>
</div><!-- #first .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'second-slidedown-widget-area' ) ) : ?>
<div id="second" class="widget-float-right slidedown-widget-area">
<div class="xoxo">
<?php dynamic_sidebar( 'second-slidedown-widget-area' ); ?>
</div>
</div><!-- #second .widget-area -->
<?php endif; ?>
</div><!-- #footer-widget-area -->