<?php get_header(); ?>

<div class="slider-container sub-page">
    <div class="sub-page-header-image-container">
        <img src="<?php bloginfo('template_directory');?>/images/sub-page-header-image.jpg" />
    </div>
    <div class="slider-overlay-container">
        <div class="positioned-container middle-vertical-align">
<?php if(have_posts()) : ?>
            <h1>Search Results for <?php /* Search Count */ 
                $allsearch = new WP_Query("s=$s&showposts=-1"); 
                $key = esc_html($s, 1); 
                $count = $allsearch->post_count; _e(''); 
                _e('<span class="highlighted">'); echo $key; _e('</span>'); 
                _e(' - '); echo $count . ' '; _e('articles'); 
                wp_reset_query(); ?>
            </h1>
        </div>
    </div>
</div>
<div class="styling-content">
    <div id="content-left">
    

            
            <ul class="listarticles">
                <?php while(have_posts()) : the_post(); ?>
                <li>
                    <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
                    <div class="post-meta">
                        Posted in <?php the_category(', ') ?> - <?php echo hosek_postdate_link(); ?> - <?php comments_number('No comment', '1 comment', '% comments'); ?>
                    </div>
                </li>
                <?php endwhile; ?>
            </ul>
            
            <div class="page-nav">
                <span class="older"><?php next_posts_link('&laquo; Previous Articles') ?></span>
                <span class="newer"><?php previous_posts_link('Next Articles &raquo;') ?></span>
                <div class="clear"></div>
            </div><!-- end .page-nav -->
            
        <?php else : ?>
        
        <h1>No posts found. Try a different search?</h1>
        <?php get_search_form(); ?>
        <script type="text/javascript">
            document.getElementById('s') && document.getElementById('s').focus();
        </script>
        
        <?php endif; ?>
        
    </div><!-- .end content-left -->
</div>

<?php get_footer(); ?>