<?php get_header();
   include( "USERS_CONFIG.php" ); 
   include( "generator.php" );
?>
<div id="content" class="narrowcolumn"><a name="content"></a>
<?php if ( have_posts() ) : ?>
  <h2 class="pagetitle">Search Results</h2>
   <p class="center bold">Review these Search Results or <a href="<?php echo get_settings('home'); ?>?s=Enter+some+search+terms">Search More</a>.</p> 
 <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="Permanent Link to <?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() ?>

<?php // This was added to handle the post link for the excerpt begin
if ( is_search() ) {  
?>
   <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>
<p class="center bold" style="clear:both;padding-top:15px;">Did you Find it or do you need to <a href="<?php echo get_settings('home'); ?>?s=Enter+some+search+terms">Search More</a>?</p>
 </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 again. This time try broadening your search terms or using different ones,  
<?php if ( $enable_form == "no" ) {
   echo( '<!--' );
} else {
   echo( '' );
}
?>
    <a href="<?=$install_path ?>/<?=$theme_path ?>/contact.php">Contact <?=$me_or_us ?></a>,
<?php if ( $enable_form == "no" ) {
   echo( '-->' );
} else {
   echo( '' );
}
?> or go to <a href="<?php echo get_settings('home'); ?>"><?=$blog_home_link ?></a>.</p><br />
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<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(); ?>