/Web/wp-content/themes/twentyeleven/sidebar.php

https://bitbucket.org/jimjenkins5/blog · PHP · 36 lines · 24 code · 5 blank · 7 comment · 3 complexity · 2fcfa846c29d498d91a216a0752a0489 MD5 · raw file

  1. <?php
  2. /**
  3. * The Sidebar containing the main widget area.
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Eleven
  7. * @since Twenty Eleven 1.0
  8. */
  9. $options = twentyeleven_get_theme_options();
  10. $current_layout = $options['theme_layout'];
  11. if ( 'content' != $current_layout ) :
  12. ?>
  13. <div id="secondary" class="widget-area" role="complementary">
  14. <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  15. <aside id="archives" class="widget">
  16. <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
  17. <ul>
  18. <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
  19. </ul>
  20. </aside>
  21. <aside id="meta" class="widget">
  22. <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
  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 -->
  31. <?php endif; ?>