File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/primepress/archive.php
<?php get_header(); ?>
<div id="primary" class="looped">
<?php if(have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1 class="page-title">Posts under ‘<?php single_cat_title(); ?>’</h1>
<?php /* If this is a tag archive */ } elseif(function_exists('is_tag')&& is_tag()) { ?>
<h1 class="page-title">Posts Tagged ‘<?php single_tag_title(); ?>’</h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1 class="page-title">Posts on ‘<?php the_time('F jS, Y'); ?>’</h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1 class="page-title">Posts from ‘<?php the_time('F, Y'); ?>’</h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1 class="page-title">Posts in ‘<?php the_time('Y'); ?>’</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1 class="page-title">Blog Archives</h1>
<?php } ?>
<?php while(have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php if (function_exists('post_class')) { post_class('entry'); } else {echo 'class="entry hentry"';} ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-byline">
<span class="entry-date"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></span>
<address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_url(); ?>"><?php the_author(); ?></a>. </address>
<?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?>
<?php edit_post_link('Edit', '[', ']'); ?>
</div>
<div class="entry-content">
<?php the_excerpt(); ?>
</div>
</div><!--.entry-->
<?php endwhile; ?>
<?php include (TEMPLATEPATH . '/navigation.php'); ?>
<?php endif; ?>
</div><!--#primary-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>