<?php get_header(); ?>
<section class="style-2">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <form role="search" id="searchform" class="searchform">
                    <div>
                      <input type="text" name="s" id="s" placeholder="<?php _e("Didn't find what you are looking for? You can always try again",ANPS_TEMPLATE_LANG);?>">
                      <button type="submit" id="searchsubmit" class="fa fa-search"></button>
                    </div>
                  </form>
                <?php if ( have_posts() ) : $num = wp_count_posts(); ?>
                    <ul class="search-posts">
                        <?php while ( have_posts() ) : the_post(); ?>
                            <li>
                                <a href="<?php echo the_permalink(); ?>">
                                    <h4 class="style-2"><i class="fa fa-check-square-o color"></i><?php the_title(); ?></h4>
                                </a>
                            </li>
                        <?php endwhile; ?>
                    </ul>
                    <?php  get_template_part('includes/pagination'); ?>
                <h2 class="search-heading text-center"><?php _e("results found for:",ANPS_TEMPLATE_LANG);?> <em class="color"><?php echo $_GET['s']; ?></em></h2>
                <?php else : ?>
                    <h2 class="no-results text-center"><?php _e('no results found for:', ANPS_TEMPLATE_LANG); ?> <span><?php echo $_GET['s']; ?></span></h2>
                <?php endif; ?>
                    
            </div>
        </div>
    </div>
</section>
<?php get_footer(); ?>