<?php
/**
  * Template Name: Team 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="inner_content">
        	<div class="team">
				<?php 
                $temp = $wp_query;
                $wp_query= null;
                $wp_query = new WP_Query();
                $wp_query->query('cat=8&showposts=5'.'&paged='.$paged);
                ?>
                <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
                <div class="team_list">
                <?php echo get_the_post_thumbnail( $page->ID, 'full' ); ?>
				<h3><?php the_title(); ?></h3>
                <span><?php the_meta(); ?></span>
				<?php the_content(); ?></div>
                <?php endwhile; ?> 
                </div>
        </div>
        <!--Sunil Mathur popup-->
        
        <div class="popup1 popup_main">
        	<div class="close">X</div>
        	<?php query_posts('p=170'); ?>
			<?php while (have_posts()) : the_post(); ?>
                <div class="thumbnil"><?php echo get_the_post_thumbnail( $page->ID, 'full' ); ?></div>
                <h3><?php the_title(); ?><?php the_meta(); ?></h3>
                <div class="team_content">
                <?php the_content(); ?>
                </div>
                <!--<div class="poplinkd"><a class="linkd" target="_blank" href="http://www.linkedin.com/pub/sunil-kumar-mathur/21/3b5/b61">View Linked In Profile</a></div>-->
            <?php endwhile;?>
        	</div>
            
          <!--Sumer Mathur popup-->
        
        <div class="popup2 popup_main">
        	<div class="close">X</div>
        	<?php query_posts('p=172'); ?>
			<?php while (have_posts()) : the_post(); ?>
                <div class="thumbnil"><?php echo get_the_post_thumbnail( $page->ID, 'full' ); ?></div>
                <h3><?php the_title(); ?><?php the_meta(); ?></h3>
                <div class="team_content">
                <?php the_content(); ?>
                </div>
                <div class="poplinkd"><a class="linkd" target="_blank" href="https://www.linkedin.com/in/sumer">View Linked In Profile</a></div>
            <?php endwhile;?>
        	</div>  
            
            <!--Deepak Chhetri popup-->
        
        <div class="popup3 popup_main">
        	<div class="close">X</div>
        	<?php query_posts('p=174'); ?>
			<?php while (have_posts()) : the_post(); ?>
                <div class="thumbnil"><?php echo get_the_post_thumbnail( $page->ID, 'full' ); ?></div>
                <h3><?php the_title(); ?><?php the_meta(); ?></h3>
                <div class="team_content">
                <?php the_content(); ?>
                </div>
                <!--<div class="poplinkd"><a class="linkd" target="_blank" href="http://in.linkedin.com/pub/deepak-chhetri/8/9b/a80">View Linked In Profile</a></div>-->
            <?php endwhile;?>
        	</div> 
            
            <!--Tanoj Budhani popup-->
        
        <div class="popup4 popup_main">
        	<div class="close">X</div>
        	<?php query_posts('p=179'); ?>
			<?php while (have_posts()) : the_post(); ?>
                <div class="thumbnil"><?php echo get_the_post_thumbnail( $page->ID, 'full' ); ?></div>
                <h3><?php the_title(); ?><?php the_meta(); ?></h3>
                <div class="team_content">
                <?php the_content(); ?>
                </div>
                <!--<div class="poplinkd"><a class="linkd" target="_blank" href="http://in.linkedin.com/in/tanojbudhani">View Linked In Profile</a></div>-->
            <?php endwhile;?>
        	</div> 
            
            
        <div class="overlay"></div>
          
        <div class="right_sidebar">
        	
            <div class="quick_link">
            	<?php if ( function_exists ( dynamic_sidebar('quick_links_about') ) ) : ?> <?php endif; ?>
            </div>
            <div class="sidbx">
              <a href="<?php echo esc_url( home_url( '?page_id=252' ) ); ?>"><img width="265" height="50" alt="" src="<?php echo get_template_directory_uri(); ?>/images/btn-request.png"></a>
              </div>
        	
        	<div class="testimonial_right">
        	<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>
        </div>
        
        
	</main><!-- .site-main -->

</div><!-- .content-area -->
<script type="text/javascript">
jQuery( ".des" ).hide();
jQuery( ".readbio" ).click(function() {
  jQuery( ".overlay" ).show();
  jQuery( ".popup1" ).show();
});

jQuery( ".readbio2" ).click(function() {
  jQuery( ".overlay" ).show();
  jQuery( ".popup2" ).show();
});

jQuery( ".readbio3" ).click(function() {
  jQuery( ".overlay" ).show();
  jQuery( ".popup3" ).show();
});

jQuery( ".readbio4" ).click(function() {
  jQuery( ".overlay" ).show();
  jQuery( ".popup4" ).show();
});


jQuery( ".close" ).click(function() {
  jQuery( ".overlay" ).hide();
  jQuery( ".popup1" ).hide();
  jQuery( ".popup2" ).hide();
  jQuery( ".popup3" ).hide();
  jQuery( ".popup4" ).hide();
});
</script>
<?php get_footer(); ?>
