Want more features on Pastebin? Sign Up, it's FREE!
Guest

sidebar-top.php

By: a guest on Dec 24th, 2010  |  syntax: PHP  |  size: 0.81 KB  |  views: 313  |  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 Top widget areas.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Ten
  7.  * @since Twenty Ten 1.0
  8.  */
  9. ?>
  10.  
  11. <?php
  12.         /* The header 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 (  
  18.                 && ! is_active_sidebar( 'center-top-widget-area' )
  19.                
  20.         )
  21.                 return;
  22.         // If we get this far, we have widgets. Let's do this.
  23. ?>
  24.  
  25.                         <div id="top-widget-area" role="complementary">
  26.  
  27.  
  28. <?php if ( is_active_sidebar( 'center-top-widget-area' ) ) : ?>
  29.                                 <div id="top-center" class="widget-area">
  30.                                         <ul class="xoxo">
  31.                                                 <?php dynamic_sidebar( 'center-top-widget-area' ); ?>
  32.                                         </ul>
  33.                                 </div><!-- #top-center .widget-area -->
  34. <?php endif; ?>
  35.  
  36.                         </div><!-- #top-widget-area -->
clone this paste RAW Paste Data