<?php



/*



   The main template file. 



*/







 get_header(); ?>
<style>
input, select{ background:#8dbcdf; font-family:'OpenSansRegular'; font-size:18px; color:#fff; 
border-radius:5px; height:50px; border:none; width:100%; padding:15px;}

input, 
textarea, select{ background:#ebebeb; font-family:'OpenSansRegular'; 
font-size:18px; color:#676d71; color:#000; width:100%; margin-right:2%;border:2px solid #ccc  }
*{box-sizing:border-box;}
</style>

<section class="middle row">
<div class="Mid_top Align_cent">

<div class="container Gray2 OswalReg30 Letter_space2"><span class="OswalReg35"><?php echo $data['Middle_section_Heading'];   ?></span></div>

</div>
<div class="container">
<div class="Welcome">
<div class="Book_Appoint">


<h1 class="White"><?php echo $data['apt_form_heading'];  ?></h1>

<ul id="progressbar">
		<li class="active"><?php _e('Service','oft_theme'); ?><br />
<span  class="act"></span>
</li>
<li ><?php _e('Schedule','oft_theme'); ?><br />
<span ></span>
</li>
<li ><?php _e('Done','oft_theme'); ?> <br />
<span ></span>
</li>
		
	</ul>

<?php
    // query for the about page
    $your_query = new WP_Query( 'pagename=make-appointment' );
    // "loop" through query (even though it's just one page) 
    while ( $your_query->have_posts() ) : $your_query->the_post();     ?>
    <div class="fieldset" id="first">
    <?php  $servise_id = $_REQUEST['app_service_id'];   ?>
    
    <div class="field_rw"><?php echo do_shortcode('[app_services]'); ?></div>
    <div class="field_rw"><?php echo do_shortcode('[app_service_providers]'); ?></div>
    <input type="hidden" id="service_id" value="<?php echo $servise_id;  ?>" />
 <input type="button" name="next" class="next_btn"  value="<?php _e('Show Available Time','oft_theme'); ?>"  />
   
    
    </div>
    <div class="fieldset2" >
<div class="Row01 White Bold Txtcent"><p><?php _e('Fix Appointment','oft_theme'); ?></p></div>
<div class="Row01">
<?php echo do_shortcode('[app_monthly_schedule]'); ?></div>


<div class="Row01"><?php echo do_shortcode('[app_pagination month="1"]'); ?></div>

<input type="button"  name="previous" class="pre_btn" value="Previous" />
<input type="hidden" id="free_value" value="" />

		<input type="button" name="next" class="next_btn1" id="second" value="<?php _e('Next','oft_theme'); ?>"  />
    </div>
        <div class="fieldset3"  >
<div class="Row01"><?php echo do_shortcode('[app_login]'); ?></div>
<div class="Row01"><?php echo do_shortcode('[app_confirmation]'); ?></div>
<div class="Row01"><?php echo do_shortcode('[app_paypal]'); ?></div>

<input type="button" class="pre_btn" id="perv_last" value="<?php _e('Previous','oft_theme'); ?>" />
		
    </div>
<?php    endwhile;
    // reset post data (important!)
    wp_reset_postdata();
?>






</div>
</div>
</div>
<?php  if($data['case_studies_opt'] !=0) {   ?>

<div class="Case_result row Offset6">
<div class="container">
<h1 class=" Upparcase Letter_space"><?php echo $data['Upcoming_events_heading'];   ?></h1>
<p class="Align_cent Helvetica18 p_Gray2"><?php echo $data['Upcoming_events_des'];   ?></p>
<div class="Case row">
<?php
$paged = get_query_var('paged') ? get_query_var('paged') : 1;	
 query_posts(array('post_type' => 'cases', 'posts_per_page' =>'4', 'paged' => $paged )); 



             	if (have_posts()) : while (have_posts()) : the_post();
				$large_image =  wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'fullsize', false, '' ); 



                $large_image = $large_image[0]; 
				
				 $case_values = get_post_meta( $post->ID,'case_charges', true ); 
				?>


<div class="Case_colm">
<h3 class="Align_cent "><?php the_title(); ?></h3>
<p class="Helvetica26 Yellow3"><?php echo $case_values; ?></p>

</div>

<?php endwhile; endif; ?>

</div>

<div class="row Align_cent"><a href="<?php echo $data['case_url'];  ?>" class="btn_1"><?php echo $data['Upcoming_events_button'];  ?></a></div>

</div>
</div>
<?php } ?>
<?php  if($data['testimonial_opt'] !=0) {   ?>
<div class="Client_say row">
<div class="container">
<h1 class="White Upparcase Letter_space"><?php echo $data['Clients_Say_heading'];  ?></h1>
<p class="mbt Align_cent Helvetica18 White"><?php echo $data['Clients_Say_des'];  ?></p>
<div class="Client_comment Helvetica22 White ">


<div id="myCarousel" class="client_slider" >
<ul class="bxslider" >



<?php   
global $data;   
$testimonial_sliders = $data['clients_slider']; 

if (is_array($testimonial_sliders)) {

foreach ($testimonial_sliders as $testimonial_slide){ 

?>
<li>
<p class="Align_cent" ><?php echo $testimonial_slide['description'] ;   ?></p>
<div class="Helvetica18 Offset7 row">
<div class="Comment_btm"><div class="img"><img src="<?php echo $testimonial_slide['url'] ; ?>" align="absmiddle" alt="img"></div>
<div class="Fr"><?php echo $testimonial_slide['title'] ;   ?></div></div></div>
</li>

<?php  
     }  }
?> 
</ul></div>


</div>



</div>
</div>
<?php }  ?>
<?php  if($data['clients_opt'] !=0) {   ?>
<div class="Our_clients row">
<div class="container">
<h1 class="Upparcase Letter_space"><?php echo $data['Our_Clients_heading']; ?></h1>
<p class="Align_cent Helvetica18 p_Gray2"><?php echo $data['Our_Clients_des']; ?></p>
<div class="Our_client_gallary ">

<div class="Our_client_gallary_cent">


 <div class="flexslider carousel">
  <ul class="slides">
 <?php   
$client_slides = $data['Our_clients_slider']; 
if (is_array($client_slides)) {

foreach ($client_slides as $client_slide){ 

?> 

    <li><img src="<?php echo $client_slide['url'] ; ?>" alt="img"> </li> 
    
 <?php }  }  ?>   
	</ul>
</div>


</div>


</div>


</div>
</div>
<?php }  ?>
<?php  if($data['team_opt'] !=0) {   ?>
<div class="Our_team row Offset8">
<div class="container">
<h1 class="Upparcase Letter_space"><?php echo $data['Our_Team_heading'];  ?></h1>
<p class="Align_cent Helvetica18 p_Gray2"><?php echo $data['Our_Team_des'];  ?></p>
<div class="Our_team_detail row">
<?php if(!empty($data['mem_one']) && !empty($data['mem_one_description'])) {  ?>

<?php if(!empty($data['mem_two']) &&  !empty($data['mem_three']) &&  !empty($data['mem_four'])) { ?>

<div class="Our_team_colm">

<?php } else { ?>

<div class="Our_team_colm1" >
<?php } ?>

<div class="img row"><img src="<?php echo $data['mem_one']; ?>" alt="img"></div>
<div class="clearfix"></div>
<div class="Our_team_bottom">
<h3><?php echo $data['mem_one_name']; ?></h3>
<p class="Align_cent Helvetica18 p_Gray2 Offset9"><?php echo $data['mem_one_description']; ?></p>
<p class="Align_cent Offset7"><a href="" class="Profile_btn"><?php echo $data['Profile_button']; ?></a></p>

</div>

</div>
<?php } ?>
<?php if(!empty($data['mem_two']) && !empty($data['mem_two_description'])) {  ?>


<?php if(!empty($data['mem_one']) &&  !empty($data['mem_two']) &&  !empty($data['mem_three']) &&  !empty($data['mem_four'])) { ?>

<div class="Our_team_colm">

<?php } else { ?>

<div class="Our_team_colm1" >
<?php } ?>
<div class="img row"><img src="<?php echo $data['mem_two']; ?>" alt="img"></div>
<div class="clearfix"></div>
<div class="Our_team_bottom">
<h3><?php echo $data['mem_two_name']; ?></h3>
<p class="Align_cent Helvetica18 p_Gray2 Offset9"><?php echo $data['mem_two_description']; ?></p>
<p class="Align_cent Offset7"><a href="" class="Profile_btn"><?php echo $data['Profile_button']; ?></a></p>

</div>

</div>
<?php } ?>
<?php if(!empty($data['mem_three']) && !empty($data['mem_three_description'])) {  ?>

<?php if(!empty($data['mem_one']) &&  !empty($data['mem_two']) &&  !empty($data['mem_three']) &&  !empty($data['mem_four'])) { ?>

<div class="Our_team_colm">

<?php } else { ?>

<div class="Our_team_colm1" >
<?php } ?>
<div class="img row"><img src="<?php echo $data['mem_three']; ?>" alt="img"></div>
<div class="clearfix"></div>
<div class="Our_team_bottom">
<h3><?php echo $data['mem_three_name']; ?></h3>
<p class="Align_cent Helvetica18 p_Gray2 Offset9"><?php echo $data['mem_three_description']; ?></p>
<p class="Align_cent Offset7"><a href="" class="Profile_btn"><?php echo $data['Profile_button']; ?></a></p>

</div>

</div>
<?php } ?>

<?php if(!empty($data['mem_four']) && !empty($data['mem_four_description'])) {  ?>

<?php if(!empty($data['mem_one']) &&  !empty($data['mem_two']) &&  !empty($data['mem_three']) &&  !empty($data['mem_four'])) { ?>

<div class="Our_team_colm">

<?php } else { ?>

<div class="Our_team_colm1" >
<?php } ?>
<div class="img row"><img src="<?php echo $data['mem_four']; ?>" alt="img"></div>
<div class="clearfix"></div>
<div class="Our_team_bottom">
<h3><?php echo $data['mem_four_name']; ?></h3>
<p class="Align_cent Helvetica18 p_Gray2 Offset9"><?php echo $data['mem_four_description']; ?></p>
<p class="Align_cent Offset7"><a href="" class="Profile_btn"><?php echo $data['Profile_button']; ?></a></p>

</div>

</div>

<?php  } ?>
</div>


</div>
</div>
<?php } ?>





</section>


<?php get_footer(); ?>



