sidebar-footer.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * The Footer widget areas
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty Ten
  7. * @since 3.0.0
  8. */
  9. ?>
  10. <?php
  11. if (
  12. is_active_sidebar( 'first-footer-widget-area' ) ||
  13. is_active_sidebar( 'second-footer-widget-area' ) ||
  14. is_active_sidebar( 'third-footer-widget-area' ) ||
  15. is_active_sidebar( 'fourth-footer-widget-area' )
  16. ) :
  17. ?>
  18. <div id="footer-widget-area">
  19. <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
  20. <div id="first" class="widget-area">
  21. <ul class="xoxo">
  22. <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
  23. </ul>
  24. </div><!-- #first .widget-area -->
  25. <?php endif; ?>
  26. <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
  27. <div id="second" class="widget-area">
  28. <ul class="xoxo">
  29. <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
  30. </ul>
  31. </div><!-- #second .widget-area -->
  32. <?php endif; ?>
  33. <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
  34. <div id="third" class="widget-area">
  35. <ul class="xoxo">
  36. <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
  37. </ul>
  38. </div><!-- #third .widget-area -->
  39. <?php endif; ?>
  40. <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
  41. <div id="fourth" class="widget-area">
  42. <ul class="xoxo">
  43. <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
  44. </ul>
  45. </div><!-- #fourth .widget-area -->
  46. <?php endif; ?>
  47. </div><!-- #footer-widget-area -->
  48. <?php endif; ?>