<?php get_header(); ?>

<!-- content START -->
<main>
    <section id="content" class="search-results">

        <?php if ( have_posts() ) : ?>

            <h2>Search Results for: <?php echo get_search_query(); ?></h2>

            <?php while ( have_posts() ) : the_post(); ?>
                <article id="post-<?php the_ID(); ?>">
                    <h3>
                        <a href="<?php the_permalink(); ?>" rel="bookmark">
                            <?php the_title(); ?>
                        </a>
                    </h3>
                </article>
            <?php endwhile; ?>

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

        <?php else : ?>

            <section>
                <h1>Sorry, we couldn't find anything.</h1>
                <p>Do you want to try a different search?</p>
                <?php get_search_form(); ?>
            </section>

        <?php endif; ?>

    </section>
</main>
<!-- content END -->

<?php get_footer(); ?>