<?php
get_header();
?>

<h4 class="page-title"><?php _e( 'Search results for:', 'northern-clouds' ); ?> <?php the_search_query(); ?> </h4>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>



<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_post_thumbnail('thumbnail'); ?>

<div class="meta">
<?php edit_post_link(__('Edit This', 'northern-clouds')); ?>
</div>

<?php the_content(__('(more...)', 'northern-clouds')); ?>

<div class="commentlink">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('No Comments', 'northern-clouds'), __('1 Comment', 'northern-clouds'), __('% Comments', 'northern-clouds'), '', __('Comments are closed.', 'northern-clouds') ); ?>
</div>

</article>

<?php endwhile; else: ?>


<article class="noresults">
<h2 class="storytitle"><?php _e("Not Found", 'northern-clouds'); ?></h2>
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'northern-clouds' ); ?></p>
<?php get_search_form(); ?>
</article>

<?php endif; ?>

<div class="pagenav">
<?php northern_pagenavi() ?>
</div>

<?php comments_template( '', true ); ?>

</div>

<?php get_sidebar(''); ?>

<?php get_footer(); ?>
