<?php get_header();?>
<div id="content">
<?php if ($posts) { ?>
<?php $post = $posts[0]; /* Hack. Set $post so that the_date() works. */ ?>
<?php if (is_day()) { ?>
<h3><?php the_time('l, F jS, Y'); ?></h3>
<div class="post-footer">Daily Archive</div>
<?php } elseif (is_month()) { ?>
<h3><?php the_time('F Y'); ?></h3>
<div class="post-footer">Monthly Archive</div>
<?php } elseif (is_year()) { ?>
<h3><?php the_time('Y'); ?></h3>
<div class="post-footer">Yearly Archive</div>
<?php } ?>
<br/>
<?php foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<div class="post-title"><em><?php the_category(' and ');?></em><?php the_time('d M Y h:i a'); ?></div>
<p class="post-info"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('(edit this)'); ?></p>
<div class="post-content">
<?php the_content('<br/>Continue Reading »'); ?>
<p class="post-info">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<div class="post-footer"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »','','<span>Comments Off</span>'); ?></div>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; ?>
<p align="center"><?php posts_nav_link() ?></p>
<?php } else { ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php } ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer();?>