3 <div id="content" class="narrowcolumn">
5 <?php if (have_posts()) : ?>
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 '<?php echo single_cat_title(); ?>' Category</h2>
11 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
12 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
15 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
17 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
18 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
20 <?php /* If this is a search */ } elseif (is_search()) { ?>
21 <h2 class="pagetitle">Search Results</h2>
23 <?php /* If this is an author archive */ } elseif (is_author()) { ?>
24 <h2 class="pagetitle">Author Archive</h2>
26 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
27 <h2 class="pagetitle">Blog Archives</h2>
32 <div class="navigation">
33 <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
34 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
37 <?php while (have_posts()) : the_post(); ?>
39 <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>
40 <small><?php the_time('l, F jS, Y') ?></small>
43 <?php the_content() ?>
46 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
52 <div class="navigation">
53 <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
54 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
59 <h2 class="center">Not Found</h2>
60 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
66 <?php get_sidebar(); ?>
68 <?php get_footer(); ?>