[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentyten/ -> sidebar-footer.php (source)

   1  <?php
   2  /**
   3   * The Footer widget areas.
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Ten
   7   * @since Twenty Ten 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( 'first-footer-widget-area'  )
  18          && ! is_active_sidebar( 'second-footer-widget-area' )
  19          && ! is_active_sidebar( 'third-footer-widget-area'  )
  20          && ! is_active_sidebar( 'fourth-footer-widget-area' )
  21      )
  22          return;
  23      // If we get this far, we have widgets. Let do this.
  24  ?>
  25  
  26              <div id="footer-widget-area" role="complementary">
  27  
  28  <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
  29                  <div id="first" class="widget-area">
  30                      <ul class="xoxo">
  31                          <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
  32                      </ul>
  33                  </div><!-- #first .widget-area -->
  34  <?php endif; ?>
  35  
  36  <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
  37                  <div id="second" class="widget-area">
  38                      <ul class="xoxo">
  39                          <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
  40                      </ul>
  41                  </div><!-- #second .widget-area -->
  42  <?php endif; ?>
  43  
  44  <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
  45                  <div id="third" class="widget-area">
  46                      <ul class="xoxo">
  47                          <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
  48                      </ul>
  49                  </div><!-- #third .widget-area -->
  50  <?php endif; ?>
  51  
  52  <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
  53                  <div id="fourth" class="widget-area">
  54                      <ul class="xoxo">
  55                          <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
  56                      </ul>
  57                  </div><!-- #fourth .widget-area -->
  58  <?php endif; ?>
  59  
  60              </div><!-- #footer-widget-area -->


Generated: Fri May 25 03:56:23 2012 Hosted by follow the white rabbit.