File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/titan/search.php
<?php
/**
* @package WordPress
* @subpackage Titan
*/
?>
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<h1 class="pagetitle"><?php printf( __( "Search results for '%s'", "titan" ), get_search_query() ); ?></h1>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="post-header">
<div class="date"><?php the_time( get_option( 'date_format' ) ); ?></div>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="author"><?php printf( __( 'by %s', 'titan' ), get_the_author() ); ?></div>
</div><!--end post header-->
<div class="entry clear">
<?php the_excerpt( __( 'Read more...', 'titan' ) ); ?>
<?php edit_post_link( __( 'Edit', 'titan' ), '<p>', '</p>' ); ?>
</div><!--end entry-->
<div class="post-footer">
<div class="comments"><?php comments_popup_link( __( 'Leave a Comment', 'titan' ), __( '1 Comment', 'titan' ), __( '% Comments', 'titan' ) ); ?></div>
</div><!--end post footer-->
</div><!--end post-->
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<div class="navigation index">
<div class="alignleft"><?php next_posts_link( '« Older Entries', 'titan' ); ?></div>
<div class="alignright"><?php previous_posts_link( 'Newer Entries »', 'titan' ); ?></div>
</div><!--end navigation-->
<?php else : ?>
<h1 class="pagetitle"><?php printf( __( 'Search results for "%s"', 'titan' ), get_search_query() ); ?></h1>
<div class="entry page">
<p><?php printf( __( 'Sorry your search for "%s" did not turn up any results. Please try again.', 'titan' ), get_search_query() ); ?></p>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div><!--end content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>