<?php 
get_header(); 
include("USERS_CONFIG.php"); 
?> 
<div id="content" class="narrowcolumn"><a name="content"></a>
<?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() ) { 
?>			
   <h2 class="pagetitle">Archive for the &#8220;<?php echo single_cat_title(); ?>&#8221;</h2>
<?php 
/* If this is a daily archive */ 
} else if ( is_day() ) { 
?>
   <h2 class="pagetitle">Archive for &#8220;<?php the_time('F jS, Y'); ?>&#8221;</h2>
<?php 
/* If this is a monthly archive */ 
} else if ( is_month() ) { 
?>
   <h2 class="pagetitle">Archive for &#8220;<?php the_time('F, Y'); ?>&#8221;</h2>
<?php 
/* If this is a yearly archive */ 
} else if ( is_year() ) { 
?>
   <h2 class="pagetitle">Archive for &#8220;<?php the_time('Y'); ?>&#8221;</h2>
<?php 
/* If this is a search */ 
} else if ( is_search() ) { 
?>
   <h2 class="pagetitle">Search Results</h2>
<?php 
/* If this is an author archive */ 
} else if ( is_author() ) { 
?>
   <h2 class="pagetitle">Author Archive</h2>
<?php 
/* If this is a paged archive */ 
} else if ( isset($_GET['paged']) && !empty($_GET['paged']) ) { 
?>
  <h2 class="pagetitle"><?=$blog_archives ?></h2>
<?php 
} 
?>
 <div class="navigation">
   <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
 </div>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
  <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <p class="postedby"><small><span class="postedbyb">Posted by:</span> <?php the_author() ?> on <?php the_time('F jS, Y') ?></small></p>
 <div class="entry">
  <?php the_excerpt() ?>

<!--this was added to handle the post link for the excerpt (begin)-->
   <?php if ( is_category() || is_archive() ) { 
?>
   <p class="highlight bold">Read: <a href="<?php the_permalink(); ?>" rel="bookmark" title="This is a permanent link to: &#8220;<?php the_title(); ?>&#8221; by <?php the_author() ?>"><?php the_title(); ?></a>&nbsp;&raquo;</p>
 <?php
 } 
?>
<!--this was added to handle the post link for the excerpt (end)-->

 </div>
   <p class="postmetadata">Categorized as: <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> 
<div class="hr"><hr /></div>
</div>
<?php endwhile; ?>
 <div class="navigation">
  <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
  <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
 </div>
<?php else : ?>
  <h2 class="pagetitle error">Sorry. It wasn&#8217;t found!</h2>
   <p>Unfortunately you didn&#8217;t find what you were looking for. Please try <a href="<?php echo get_settings('home'); ?>?s=Enter+some+search+terms" title="Search <?php bloginfo('name'); ?>">Searching <?php bloginfo('name'); ?></a> or you can go to: <a href="<?php echo get_settings('home'); ?>"><?=$blog_home_link ?></a>.</p><br />
<div class="hr"><hr /></div>
<?php endif; ?> 
   <p class="alignright" style="font-size:0.8em; clear:both;">|<a style="padding:1px;" href="#top" title="Jump to Page Top">Top</a> | <a style="padding:1px;" href="#content" title="Jump to Content Top">Content</a>|</p>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>