sidebar.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The Sidebar containing the primary and secondary widget areas
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty Ten
  7. * @since 3.0.0
  8. */
  9. ?>
  10. <div id="primary" class="widget-area">
  11. <ul class="xoxo">
  12. <?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?>
  13. <li id="search" class="widget-container widget_search">
  14. <?php get_search_form(); ?>
  15. </li>
  16. <li id="archives" class="widget-container">
  17. <h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
  18. <ul>
  19. <?php wp_get_archives( 'type=monthly' ); ?>
  20. </ul>
  21. </li>
  22. <li id="meta" class="widget-container">
  23. <h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
  24. <ul>
  25. <?php wp_register(); ?>
  26. <li><?php wp_loginout(); ?></li>
  27. <?php wp_meta(); ?>
  28. </ul>
  29. </li>
  30. <?php endif; // end primary widget area ?>
  31. </ul>
  32. </div><!-- #primary .widget-area -->
  33. <?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?>
  34. <div id="secondary" class="widget-area">
  35. <ul class="xoxo">
  36. <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
  37. </ul>
  38. </div><!-- #secondary .widget-area -->
  39. <?php endif; ?>