<?php get_header(); ?>

<div id="content">

	<div id="cat-description">
		<h2><?php _e('Search results','magazi'); ?></h2>
	</div>

	<?php get_template_part( 'searchform'); ?>

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

        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

		<a href="<?php the_permalink(); ?>"><h1 class="entry-title"><?php the_title(); ?></h1></a>

			<?php get_template_part( 'postmetadata'); ?>

			<div class="entry">
				<?php the_excerpt(); ?>
			</div>

		</div><!--Ends post-->

<?php endwhile; else: ?>

<div class="mid-title"><?php _e('Try again, no articles matched your criteria.','magazi'); ?></div>

<?php endif; ?>

    	<div class="navigation">
        <?php posts_nav_link(); ?>
    	</div>


</div><!--Ends content-->


<?php get_template_part( 'page-sidebar'); ?>
<?php get_footer(); ?>