sidebar.php 889 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * The Sidebar containing the main widget areas.
  4. *
  5. * @package _s
  6. * @since _s 1.0
  7. */
  8. ?>
  9. <div id="secondary" class="widget-area" role="complementary">
  10. <?php do_action( 'before_sidebar' ); ?>
  11. <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  12. <aside id="search" class="widget widget_search">
  13. <?php get_search_form(); ?>
  14. </aside>
  15. <aside id="archives" class="widget">
  16. <h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
  17. <ul>
  18. <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
  19. </ul>
  20. </aside>
  21. <aside id="meta" class="widget">
  22. <h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
  23. <ul>
  24. <?php wp_register(); ?>
  25. <li><?php wp_loginout(); ?></li>
  26. <?php wp_meta(); ?>
  27. </ul>
  28. </aside>
  29. <?php endif; // end sidebar widget area ?>
  30. </div><!-- #secondary .widget-area -->