<?php
/**
  * Template Name: Home Page
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages and that
 * other "pages" on your WordPress site will use a different template.
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

get_header(); ?>

<div id="primary" class="content-area">
	<main id="main" class="site-main" role="main">
		<div class="welcome_content">
        	<?php
		// Start the loop.
		while ( have_posts() ) : the_post();

			// Include the page content template.
		   the_content();

			// If comments are open or we have at least one comment, load up the comment template.
			if ( comments_open() || get_comments_number() ) {
				comments_template();
			}

			// End of the loop.
		endwhile;
		?>

        </div>
        
        <div class="specialties"><?php if ( function_exists ( dynamic_sidebar('specialties') ) ) : ?> <?php endif; ?></div>
        <div class="home_address"><?php if ( function_exists ( dynamic_sidebar('home_address') ) ) : ?> <?php endif; ?></div>
        <div class="home_right_content"><?php echo get_post_meta(get_the_ID(), 'home_right_content', TRUE); ?></div>
        <div class="testimonial">
        	<h3 class="clnt">Our Clients Speak</h3>
        
			 <div class="testimonial_slider">
				<?php 
                $temp = $wp_query;
                $wp_query= null;
                $wp_query = new WP_Query();
                $wp_query->query('cat=3&showposts=5'.'&paged='.$paged);
                ?>
                <ul class="bxslider">
                <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
                <li><?php the_content(); ?></li>
                <?php endwhile; ?> 
                </ul>
             </div>
        </div>
        
        
	</main><!-- .site-main -->

</div><!-- .content-area -->

<?php get_footer(); ?>
