added the sidebar php for the new widget area. lots to style now.

This commit is contained in:
Jacob Haddon 2020-11-19 21:16:02 -05:00
parent 23bb31595c
commit 254db6f3bf

44
sidebar-slidedown.php Normal file
View File

@ -0,0 +1,44 @@
<?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="footer-widget-area" role="complementary">
<?php if ( is_active_sidebar( 'first-slidedown-widget-area' ) ) : ?>
<div id="first" class="slidedown-widget-area">
<ul class="xoxo">
<?php dynamic_sidebar( 'first-slidedown-widget-area' ); ?>
</ul>
</div><!-- #first .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'second-slidedown-widget-area' ) ) : ?>
<div id="second" class="slidedown-widget-area">
<ul class="xoxo">
<?php dynamic_sidebar( 'second-slidedown-widget-area' ); ?>
</ul>
</div><!-- #second .widget-area -->
<?php endif; ?>
</div><!-- #footer-widget-area -->