<div class="postItem" theLink="<?php the_permalink();?>">
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        
            <?php if (  has_post_thumbnail() ) {
                $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
                //echo "<img src='$feat_image' />"; ?>
                <div class="featureImage" style="background-image:url(<?php echo $feat_image;?>);">
                
                </div>
            <?php }?>
        <div class="entry-header">
            
            <h2 class="entry-title">
                <a href="<?php the_permalink();?>"><?php the_title(); ?></a>
            </h2>
            <p style="color:#000000;font-size:13px;"><?php echo get_the_date();?></p>
           
            
    
            
        </div>
        <!-- .entry-header -->
    
        <?php if ( is_search() ) : // Only display Excerpts for Search ?>
        <div class="entry-summary">
            <?php 
			$theExcerpt = get_the_excerpt(); 
			if (strlen($theExcerpt) > 50) $theExcerpt = substr($theExcerpt, 0, 50) . '...';
			echo $theExcerpt;
			?>
        </div><!-- .entry-summary -->
        <?php else : ?>	
            <?php 
			$theExcerpt = get_the_excerpt(); 
			if (strlen($theExcerpt) > 50) $theExcerpt = substr($theExcerpt, 0, 50) . '...';
			echo $theExcerpt;
            ?>
            <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'gbi' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
        <!-- .entry-content -->
        <?php endif; ?>
    
        <!-- .entry-meta -->
    </div>
</div>
<!-- #post -->