<?php
/**
 * The template for the sidebar containing the main widget area
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */
?>

<div class="col-md-4 blog-side-bar"> 
	<div>
    	<div class="search-bar">
        	<div class="form-group">
              <h5>Search</h5>
             <form   method="get" action="<?php echo site_url(); ?>" >
              <div class="input-group">
                <input class="form-control"  required name="s" id="s"value="" type="text">
                <span class="input-group-btn">
                  <button class="btn btn-default"><i class="fa fa-search" aria-hidden="true"></i></button>
                </span>
              </div>
              </form>
            </div>
        </div>
      
       
        <h5>Recent Posts</h5>
          <ul class="blog-pointer">
					 <?php
					 $postslist = get_posts('numberposts=5&order=DESC&orderby=date');
					 foreach ($postslist as $post) :
						setup_postdata($post);
					 ?>
            	<li>
                <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
              </li><?php endforeach; ?>
    
          </ul>
    
    </div>
</div> 