Advertisement
Guest User

sidebar-top.php

a guest
Dec 24th, 2010
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  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 -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement