Advertisement
Guest User

sidebar1

a guest
Feb 7th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. <div class="side-bar-left">
  2. <div class="ind">
  3.  
  4. <?php /* Widgetized sidebar, if you have the plugin installed. */
  5.  
  6. ?>
  7. <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  8. <li><h2>Author</h2>
  9. <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  10. </li>
  11. -->
  12.  
  13. <?php if ( is_404() || is_category() || is_day() || is_month() ||
  14. is_year() || is_search() || is_paged() ) {
  15. ?>
  16.  
  17. <?php /* If this is a 404 page */ if (is_404()) { ?>
  18. <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  19. <p class="info-sidebar">You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
  20.  
  21. <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
  22. <p class="info-sidebar">You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
  23. for the day <?php the_time('l, F jS, Y'); ?>.</p>
  24.  
  25. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  26. <p class="info-sidebar">You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
  27. for <?php the_time('F, Y'); ?>.</p>
  28.  
  29. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  30. <p class="info-sidebar">You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
  31. for the year <?php the_time('Y'); ?>.</p>
  32.  
  33. <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
  34. <p class="info-sidebar">You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
  35. for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
  36.  
  37. <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  38. <p class="info-sidebar">You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
  39.  
  40. <?php } ?>
  41.  
  42. <?php }?>
  43.  
  44. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(__('Left Sidebar','theme778')) ) : else :?>
  45.  
  46. <div class="widget" id="categories">
  47. <h2><?php _e('Categories','theme778'); ?></h2>
  48. <div class="inside-widget">
  49. <ul>
  50. <?php wp_list_categories('show_count=0&title_li='); ?>
  51. </ul>
  52. </div>
  53. </div>
  54. <!--
  55. <div class="widget" id="meta">
  56. <h2><?php _e('Meta','theme778'); ?></h2>
  57. <div class="inside-widget">
  58. <ul>
  59. <?php wp_register(); ?>
  60. <li><?php wp_loginout(); ?></li>
  61. <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
  62. <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
  63. <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
  64. <?php wp_meta(); ?>
  65. </ul>
  66. </div>
  67. </div>
  68. -->
  69. <?php endif; ?>
  70.  
  71. </div>
  72. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement