Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

sidebar-footer.php TwentyEleven fourth widgts

By: alchymyth on Oct 28th, 2012  |  syntax: PHP  |  size: 1.57 KB  |  views: 180  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The Footer widget areas - edited for a fourth area.
  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-3'  )
  18.                 && ! is_active_sidebar( 'sidebar-4' )
  19.                 && ! is_active_sidebar( 'sidebar-5'  )
  20.                 && ! is_active_sidebar( 'sidebar-6'  ) //the fourth new one//
  21.         )
  22.                 return;
  23.         // If we get this far, we have widgets. Let do this.
  24. ?>
  25. <div id="supplementary" <?php twentyelevenchild_footer_sidebar_class(); ?>>
  26.         <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
  27.         <div id="first" class="widget-area" role="complementary">
  28.                 <?php dynamic_sidebar( 'sidebar-3' ); ?>
  29.         </div><!-- #first .widget-area -->
  30.         <?php endif; ?>
  31.  
  32.         <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
  33.         <div id="second" class="widget-area" role="complementary">
  34.                 <?php dynamic_sidebar( 'sidebar-4' ); ?>
  35.         </div><!-- #second .widget-area -->
  36.         <?php endif; ?>
  37.  
  38.         <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?>
  39.         <div id="third" class="widget-area" role="complementary">
  40.                 <?php dynamic_sidebar( 'sidebar-5' ); ?>
  41.         </div><!-- #third .widget-area -->
  42.         <?php endif; ?>
  43.  
  44.         <?php if ( is_active_sidebar( 'sidebar-6' ) ) : //the fourth new one// ?>
  45.         <div id="fourth" class="widget-area" role="complementary">
  46.                 <?php dynamic_sidebar( 'sidebar-6' ); ?>
  47.         </div><!-- #fourth .widget-area -->
  48.         <?php endif; ?>
  49.  
  50. </div><!-- #supplementary -->
clone this paste RAW Paste Data