<?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>
		<aside class="blog-sidebar-cta">
            <h3>How can we help?</h3>
            <p>Click the button below to make an appointment or call <span>480-699-1055</span></p>
            <p>You can also Make an Appointment online.</p>
            <h6><a href="https://app.acuityscheduling.com/schedule.php?owner=17591006" target="_blank" onclick="wc_event_ypbib('Lead','Click','Appointment Request Button');">Make an Appointment</a></h6>
            <h5>You can also request a call back or apply online.</h5>
            <ul>
              <li><a href="#" target="_blank" data-toggle="modal" data-target="#exampleModalCenter">Call Back</a></li>
              <li><a href="https://blakemortgage.info/secure-1003/login.php" target="_blank" onclick="wc_event_ypbib('Lead','Click','Apply Online Button');">Apply Online</a></li>
            </ul>
          </aside>
<br />
    	<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> 