File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/solipsus/archive.php
<?php get_header(); ?>
<?php is_tag(); ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Thanks Kubrick for this code ?>
<?php if (is_category()) { ?>
<h2><?php _e('Archive for '); single_cat_title(); ?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php } elseif (is_day()) { ?>
<h2><?php _e('Archive for '); the_time('F j, Y'); ?></h2>
<?php } elseif (is_month()) { ?>
<h2><?php _e('Archive for '); the_time('F, Y'); ?></h2>
<?php } elseif (is_year()) { ?>
<h2><?php _e('Archive for '); the_time('Y'); ?></h2>
<?php } elseif (is_author()) { ?>
<h2><?php _e('Author Archive'); ?></h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<h2 class="posttitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
<p class="postmeta">
{ <?php the_time(get_option('date_format')) ?> @ <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_time() ?></a> }
·
{ <?php the_category(', ') ?> }
<br />
<?php the_tags('{ Tags: ', ', ', ' } ·'); ?>
{ <?php comments_popup_link(__('Leave a Comment'), __('Comments (1)'), __('Comments (%)'), 'commentslink', __('Comments off')); ?> }
</p>
<div class="postentry">
<?php the_content("... continue reading this entry."); ?>
</div>
<p class="postfeedback">
<?php edit_post_link(__('Edit'), ' {', '}'); ?>
</p>
</div>
<?php endwhile; ?>
<?php posts_nav_link(' · ', __('Next entries »'), __('« Previous entries')); ?>
<?php else : ?>
<h2><?php _e('Not Found'); ?></h2>
<p><?php _e('Sorry, but the page you requested cannot be found.'); ?></p>
<h3><?php _e('Search'); ?></h3>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>