Digitalraindrops

sidebar-footer.php

Aug 18th, 2011
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Footer widget areas.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Eleven
  7.  * @since Twenty Eleven 1.0
  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( 'sidebar-footer1'  )
  18.         && ! is_active_sidebar( 'sidebar-footer2' )
  19.         && ! is_active_sidebar( 'sidebar-footer3'  )
  20.     )
  21.         return;
  22.     // If we get this far, we have widgets. Let do this.
  23. ?>
  24.     <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?> class="row">
  25.         <div class="fourcol">
  26.             <?php if ( is_active_sidebar( 'sidebar-footer1' ) ) : ?>
  27.             <div id="first" class="widget-area" role="complementary">
  28.                 <?php dynamic_sidebar( 'sidebar-footer1' ); ?>
  29.             </div><!-- #first .widget-area -->
  30.             <?php endif; ?>
  31.         </div>
  32.         <div class="fourcol">
  33.             <?php if ( is_active_sidebar( 'sidebar-footer2' ) ) : ?>
  34.             <div id="second" class="widget-area" role="complementary">
  35.                 <?php dynamic_sidebar( 'sidebar-footer2' ); ?>
  36.             </div><!-- #second .widget-area -->
  37.             <?php endif; ?>
  38.         </div>
  39.         <div class="fourcol last">
  40.             <?php if ( is_active_sidebar( 'sidebar-footer3' ) ) : ?>
  41.             <div id="third" class="widget-area" role="complementary">
  42.                 <?php dynamic_sidebar( 'sidebar-footer3' ); ?>
  43.             </div><!-- #third .widget-area -->
  44.             <?php endif; ?>
  45.         </div> 
  46.     </div><!-- #supplementary -->
Advertisement
Add Comment
Please, Sign In to add comment