PageRenderTime 55ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/webroot/blog/wp-content/themes/la-school-blue/sidebar.php

https://github.com/Wargo/reddevil
PHP | 80 lines | 60 code | 20 blank | 0 comment | 16 complexity | 8db7406dae0952be8cd8d495e6247b26 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1, GPL-3.0
  1. <div class="sidebar">
  2. <?php /* Widgetized sidebar, if you have the plugin installed. */
  3. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  4. <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  5. <li><h2><?php _e('Author', 'laschool'); ?></h2>
  6. <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  7. </li>
  8. -->
  9. <?php if ( is_404() || is_category() || is_day() || is_month() ||
  10. is_year() || is_search() || is_paged() ) {
  11. ?>
  12. <?php /* If this is a 404 page */ if (is_404()) { ?>
  13. <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  14. <p><?php printf(__('You are currently browsing the archives for the %s category.', 'laschool'), single_cat_title('', false)); ?></p>
  15. <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
  16. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'laschool'))); ?></p>
  17. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  18. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'laschool'))); ?></p>
  19. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  20. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
  21. <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  22. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'laschool'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
  23. <?php } ?>
  24. <?php }?>
  25. <h2 class="first"><?php _e('Pages', 'laschool'); ?></h2>
  26. <ul>
  27. <?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
  28. </ul>
  29. <h2><?php _e('Search', 'laschool'); ?></h2>
  30. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  31. <?php /* If this is the frontpage */ if ( !is_page() ) { ?>
  32. <?php /* Plugin installed? */ if (function_exists('get_flickrRSS')) : ?>
  33. <h2><?php _e('Photostream', 'laschool'); ?></h2>
  34. <ul class="photostream">
  35. <?php get_flickrRSS(); ?>
  36. </ul>
  37. <?php endif; ?>
  38. <h2><?php _e('Archives', 'laschool'); ?></h2>
  39. <ul>
  40. <?php wp_get_archives('type=monthly&limit=13'); ?>
  41. </ul>
  42. <h2><?php _e('Categories', 'laschool'); ?></h2>
  43. <ul>
  44. <?php wp_list_categories('show_count=1&title_li='); ?>
  45. </ul>
  46. <?php } ?>
  47. <?php /* If this is archives page */ if ( is_page('archives') ) { ?>
  48. <h2><?php _e('Categories', 'laschool'); ?></h2>
  49. <ul>
  50. <?php wp_list_categories('show_count=1&title_li='); ?>
  51. </ul>
  52. <?php } ?>
  53. <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
  54. <!--<h2><?php _e('Bookmarks', 'laschool'); ?></h2>
  55. <ul>
  56. <?php wp_list_bookmarks('categorize=0&title_li='); ?>
  57. </ul>-->
  58. <?php } ?>
  59. <?php endif; ?>
  60. </div>