Advertisement
Guest User

sidebar.php

a guest
Nov 14th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  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.  
  12. if ( 'content' != $current_layout ) :
  13. ?>
  14. <div id="secondary" class="widget-area" role="complementary">
  15. <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  16.  
  17. <aside id="archives" class="widget">
  18. <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
  19. <ul>
  20. <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
  21. </ul>
  22. </aside>
  23.  
  24. <aside id="meta" class="widget">
  25. <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
  26. <ul>
  27. <?php wp_register(); ?>
  28. <li><?php wp_loginout(); ?></li>
  29. <?php wp_meta(); ?>
  30. </ul>
  31. </aside>
  32.  
  33. <?php endif; // end sidebar widget area ?>
  34. </div><!-- #secondary .widget-area -->
  35. <!-- Add our .extra-sidebar are for three column layouts -->
  36. <div id="extra-sidebar" class="widget-area" role="complementary">
  37. <?php if ( ! dynamic_sidebar( 'extra-sidebar' ) ) : ?>
  38. <?php endif; // end extra sidebar widget area ?>
  39. </div><!-- .extra-sidebar .widget-area -->
  40.  
  41.  
  42.  
  43.  
  44.  
  45. <ul>
  46. <?php foreach (get_categories() as $cat) : ?>
  47. <li>
  48. <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
  49. <a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a>
  50. </li>
  51. <?php endforeach; ?>
  52. </ul>
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement