[ 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/ -> archive.php (source)

   1  <?php get_header(); ?>
   2  
   3      <div id="content" class="narrowcolumn">
   4  
   5          <?php if (have_posts()) : ?>
   6  
   7           <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
   8  <?php /* If this is a category archive */ if (is_category()) { ?>
   9          <h2 class="pagetitle">Archive for the &#8216;<?php echo single_cat_title(); ?>&#8217; Category</h2>
  10  
  11         <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  12          <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
  13  
  14       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  15          <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
  16  
  17          <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  18          <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
  19  
  20        <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  21          <h2 class="pagetitle">Author Archive</h2>
  22  
  23          <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  24          <h2 class="pagetitle">Blog Archives</h2>
  25  
  26          <?php } ?>
  27  
  28  
  29          <div class="navigation">
  30              <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
  31              <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
  32          </div>
  33  
  34          <?php while (have_posts()) : the_post(); ?>
  35          <div class="post">
  36                  <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  37                  <small><?php the_time('l, F jS, Y') ?></small>
  38  
  39                  <div class="entry">
  40                      <?php the_content() ?>
  41                  </div>
  42  
  43                  <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
  44  
  45              </div>
  46  
  47          <?php endwhile; ?>
  48  
  49          <div class="navigation">
  50              <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
  51              <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
  52          </div>
  53  
  54      <?php else : ?>
  55  
  56          <h2 class="center">Not Found</h2>
  57          <?php include  (TEMPLATEPATH . '/searchform.php'); ?>
  58  
  59      <?php endif; ?>
  60  
  61      </div>
  62  
  63  <?php get_sidebar(); ?>
  64  
  65  <?php get_footer(); ?>


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