[ Index ]
 

Code source de WordPress 2.1.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

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

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


Généré le : Fri Mar 30 19:41:27 2007 par Balluche grâce à PHPXref 0.7