<?php get_header(); $theme_options = get_option('gpp_theme_options'); ?>
<div class="span-<?php $sidebar = get_option('gpp_sidebar'); if($sidebar || (!$theme_options && !$sidebar)) { echo "15 colborder home"; } else { echo "24 last"; } ?>">
<div class="content">
<?php if (have_posts()) : ?>

	<h2><?php _e('Search Results','gpp_i18n'); ?></h2>

	<div class="navigation">
		<div><?php next_posts_link(__('&laquo; Older Entries','gpp_i18n')); ?></div>
		<div><?php previous_posts_link(__('Newer Entries &raquo;','gpp_i18n')); ?></div>
	</div>

<?php while (have_posts()) : the_post(); ?>
<div <?php if(function_exists('post_class')) : ?><?php post_class(); ?><?php else : ?>class="post post-<?php the_ID(); ?>"<?php endif; ?>>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','gpp_i18n'),the_title_attribute('echo=0')); ?>"><?php the_title() ?></a></h2>
<?php get_the_image(); ?>
<?php the_excerpt(); ?>
<div class="clear"></div>
<p class="postmetadata alt quiet"><?php the_time(__('M d, Y', 'gpp_i18n')); ?> @ <?php the_time() ?> | <?php comments_popup_link(__('Have your say &#187;', 'gpp_i18n'), __('1 Comment &#187;', 'gpp_i18n'),__ngettext('% Comment &#187;', '% Comments &#187;',get_comments_number (),'gpp_i18n')); ?></p>
</div>
<div class="clear"></div>
<?php endwhile; ?>

<div class="clear"></div>

	<div class="navigation">
		<div><?php next_posts_link(__('&laquo; Older Entries','gpp_i18n')); ?></div>
		<div><?php previous_posts_link(__('Newer Entries &raquo;','gpp_i18n')); ?></div>
	</div>

<?php else : ?>

	<h2><?php _e('No posts found.','gpp_i18n'); ?></h2>
	<h6><?php _e('Use the search tap at top right to start a new search.','gpp_i18n'); ?></h6>

<?php endif; ?>

</div>
</div>

<?php $sidebar = get_option('gpp_sidebar'); if($sidebar || (!$theme_options && !$sidebar)) { get_sidebar(); } ?>

<?php get_footer(); ?>