[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

/wp-content/themes/default/ -> sidebar.php (source)

   1  <?php
   2  /**
   3   * @package WordPress
   4   * @subpackage Default_Theme
   5   */
   6  ?>
   7      <div id="sidebar" role="complementary">
   8          <ul>
   9              <?php     /* Widgetized sidebar, if you have the plugin installed. */
  10                      if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  11              <li>
  12                  <?php get_search_form(); ?>
  13              </li>
  14  
  15              <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  16              <li><h2>Author</h2>
  17              <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  18              </li>
  19              -->
  20  
  21              <?php if ( is_404() || is_category() || is_day() || is_month() ||
  22                          is_year() || is_search() || is_paged() ) {
  23              ?> <li>
  24  
  25              <?php /* If this is a 404 page */ if (is_404()) { ?>
  26              <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  27              <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
  28  
  29              <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  30              <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
  31              for the day <?php the_time('l, F jS, Y'); ?>.</p>
  32  
  33              <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  34              <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
  35              for <?php the_time('F, Y'); ?>.</p>
  36  
  37              <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  38              <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
  39              for the year <?php the_time('Y'); ?>.</p>
  40  
  41              <?php /* If this is a search result */ } elseif (is_search()) { ?>
  42              <p>You have searched the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
  43              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>
  44  
  45              <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  46              <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives.</p>
  47  
  48              <?php } ?>
  49  
  50              </li>
  51          <?php }?>
  52          </ul>
  53          <ul role="navigation">
  54              <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
  55  
  56              <li><h2>Archives</h2>
  57                  <ul>
  58                  <?php wp_get_archives('type=monthly'); ?>
  59                  </ul>
  60              </li>
  61  
  62              <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
  63          </ul>
  64          <ul>
  65              <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
  66                  <?php wp_list_bookmarks(); ?>
  67  
  68                  <li><h2>Meta</h2>
  69                  <ul>
  70                      <?php wp_register(); ?>
  71                      <li><?php wp_loginout(); ?></li>
  72                      <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>
  73                      <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
  74                      <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
  75                      <?php wp_meta(); ?>
  76                  </ul>
  77                  </li>
  78              <?php } ?>
  79  
  80              <?php endif; ?>
  81          </ul>
  82      </div>
  83  


Generated: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7