<!DOCTYPE html>

<!--[if IE 7]>

<html class="ie ie7" <?php language_attributes(); ?>>

<![endif]-->

<!--[if IE 8]>

<html class="ie ie8" <?php language_attributes(); ?>>

<![endif]-->

<!--[if !(IE 7) | !(IE 8)  ]><!-->

<html <?php language_attributes(); ?>>

<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

<title>

<?php wp_title('&laquo;', true, 'right'); ?>

<?php bloginfo('name'); ?>

<?php  global $data;   ?>

<?php echo $data['title_seo'] ?>

</title>

<link rel="profile" href="http://gmpg.org/xfn/11" />

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<!--<?php //echo $data['act_key'] ?>-->

<meta name="description" content="<?php echo $data['description_seo'] ?>" />

<meta name="keywords" content="<?php echo $data['keyword_seo'] ?>" />

<link rel="shortcut icon" type="image/x-icon" href="<?php echo $data['favicon']; ?>">


<!-- Main WordPress Stylesheet -->



 
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<link rel="shortcut icon" type="image/x-icon" href="<?php echo do_shortcode(stripslashes($data['favi_image'])); ?>">

<!-- Theme Head Code-->

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/jquery.bxslider.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/font-awesome.min.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/owl.carousel.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/js1/flexslider.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/js1/popup.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/bootstrap.css" media="screen" />
  <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/style.css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/font-awesome.css" media="screen"   />

<style><?php echo $data['custom_css']; ?></style>



<script><?php echo $data['google_analytics'] ?></script>



<!--code for google font starts here-->
<?php if($data['hone']  != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['hone']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>
	
	<?php if($data['htwo']  != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['htwo']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>	
	
	<?php if($data['hthree']  != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['hthree']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>
	

	
	<?php if($data['pfont'] != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['pfont']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>	
    
    <?php if($data['menufont'] != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['menufont']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>	
  
     <?php if($data['read_more_font'] != 'Select Font'): ?>
	<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['menufont']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
	<?php endif; ?>	
  
    
    
<style>
 body {
 <?php if(!empty($data['body_image'])) {  ?>
	background: url(<?php echo $data['body_image'];   ?>) repeat left top; 
	<?php } else { ?>
	background:<?php echo $data['body_background'];   ?>
	<?php } ?>
}
 #toPopup { border: 10px solid <?php echo $data['primary_background']; ?>;}
.Headr_top{background:<?php echo $data['header_primary']; ?>;}
#header{background:<?php echo $data['header_secondary']; ?>;}
.Mid_top{background:<?php echo $data['primary_background']; ?>;} 
.btn_1{background:<?php echo $data['primary_background']; ?>;} 
.Profile_btn{background:<?php echo $data['primary_background']; ?>;} 
.footer{border-top:<?php echo $data['primary_background']; ?> 6px solid;}
.Contact_form h2{background:<?php echo $data['primary_background']; ?>;font-family:<?php echo $data['htwo']; ?>;font-size:<?php echo $data['htwosize']; ?>px;font-weight:<?php echo $data['htwoweight']; ?>;} 
.footer{ background: url(<?php echo $data['footer_bg'];  ?>) repeat;}
.Client_say{background:url(<?php echo $data['testimonial_bg'];  ?>) repeat center top;}
.Case_colm{background:url(<?php echo $data['case_block_bg'];  ?>) repeat center top;}
h1{font-family:<?php echo $data['hone']; ?>;font-size:<?php echo $data['honesize']; ?>px;font-weight:<?php echo $data['honeweight']; ?>;color:<?php echo $data['h1_color'];  ?>}
.Case_colm h3{font-family:<?php echo $data['hthree']; ?>;font-size:<?php echo $data['hthreesize']; ?>px;font-weight:<?php echo $data['hthreeweight']; ?>;}
.Our_team_bottom h3{font-family:<?php echo $data['hthree']; ?>;font-size:<?php echo $data['hthreesize']; ?>px;font-weight:<?php echo $data['hthreeweight']; ?>;}
.p_Gray2{ color:<?php echo $data['pcolor'];  ?>;}
.Helvetica18{ font-family:<?php echo $data['pfont']; ?>; font-size:<?php echo $data['psize']; ?>px;}
.nav li a{ font-family:<?php echo $data['menufont']; ?>; font-size:<?php echo $data['menufontsize']; ?>px;color:<?php echo $data['menufontcolor']; ?>;}
.nav li a:hover,.nav li a.active{color:<?php echo $data['menufontAcolor']; ?>; text-decoration:none;}
.nav li.current-menu-item a{color:<?php echo $data['menufontAcolor']; ?>; text-decoration:none;}

.Social_icon ul li a{color:<?php echo $data['footersocialicons'];  ?>}
.Banner_botm .Banner_content .OswalReg46{
	
	color:<?php echo $data['section_text_color']; ?>;
	font-family:<?php echo $data['hone']; ?>;
	
}
.Mid_top .OswalReg30{
	
	color:<?php echo $data['Heading_section_text_color']; ?>;
	font-family:<?php echo $data['hthree']; ?>;
	font-size:<?php echo $data['hthreesize']; ?>px;
	font-weight:<?php echo $data['hthreeweight']; ?>;
}

.Book_Appoint{background:<?php echo $data['apt_frm_bg_color'];  ?>}	

.Appointment .title{ background: url(<?php echo $data['footer_logo'];  ?>) no-repeat left center;}

	.Contact_title_bg{ background:<?php echo $data['contact_background'];  ?> url(<?php echo $data['contact_herader_image'];  ?>) no-repeat right top;}
	
	.Departmnt_bg{ background:<?php echo $data['department_background'];  ?> url(<?php echo $data['department_herader_image'];  ?>) no-repeat right top;}
	
	.Services_title_bg{ background:<?php echo $data['Services_background'];  ?> url(<?php echo $data['Services_herader_image'];  ?>) no-repeat right top;}
	
	
/*  Appointment Form Css  */	
	
	
	
	
.Book_Appoint .free1{background:<?php echo $data['apt_free_color'];  ?>!important;}  

.Book_Appoint .app_timetable .free_color{background:<?php echo $data['apt_free_color'];  ?>!important;} 


.Book_Appoint  .busy{background:<?php echo $data['apt_busy_color'];  ?>!important;}  
.Book_Appoint .notpossible{background:<?php echo $data['apt_nit_color'];  ?>!important;}  
.next_btn{background:<?php echo $data['apt_button_color'];  ?>;}  
.next_btn1{background:<?php echo $data['apt_button_color'];  ?>;} 
.Book_Appoint .act{background:<?php echo $data['progress_current_bar'];  ?>;}
.Book_Appoint .active{color:<?php echo $data['progress_current_bar'];  ?>;}
.Book_Appoint li{color:<?php echo $data['progress_default_bar'];  ?>;}
.Book_Appoint li span{background:<?php echo $data['progress_default_bar'];  ?>;}
.Book_Appoint .active span{background:<?php echo $data['progress_current_bar'];  ?>;}
.Book_Appoint .appointments-wrapper h3{background:<?php echo $data['apt_primary_color'];  ?>;}
.Book_Appoint .appointments-pagination a{background:<?php echo $data['apt_button_color'];  ?>!important;} 
.pre_btn{background:<?php echo $data['apt_button_color'];  ?>;}
.Book_Appoint .app_timetable_title{background:<?php echo $data['apt_primary_color'];  ?>;}
.Book_Appoint .appointments-confirmation-button, .Book_Appoint .appointments-confirmation-cancel-button{background:<?php echo $data['apt_button_color'];  ?>!important;}

.Book_Appoint .app_workers_dropdown_title, .Book_Appoint .app_services_dropdown_title{color:<?php echo $data['label_color'];  ?>}
.Book_Appoint{color:<?php echo $data['label_color'];  ?>}

/*  Appointment Form Css ! */	

/*  goggle font  Css  */	
h1{font-weight:<?php echo $data['honeweight'];  ?>}
h1{ font-family: <?php echo $data['hone'];  ?>; font-size:<?php echo $data['honesize'];  ?>px;}

.Inner_title h1{font-size:<?php echo $data['honesize'];  ?>px;}
h2{font-weight:<?php echo $data['htwoweight'];  ?>}
h2{ font-family: <?php echo $data['htwo'];  ?>; font-size:<?php echo $data['htwosize'];  ?>px;}

.Our_Edge .col h2{font-size:<?php echo $data['htwosize'];  ?>px;}
h3{font-weight:<?php echo $data['hthreeweight'];  ?>}
h3{ font-family: <?php echo $data['hthree'];  ?>; font-size:<?php echo $data['hthreesize'];  ?>px;}

.Book_Appoint .appointments-wrapper h3{font-size:<?php echo $data['hthreesize'];  ?>px!important;}
.Book_Appoint .appointments-confirmation-wrapper h3{font-size:<?php echo $data['hthreesize'];  ?>px!important;}
.Appoint_ment .appointments-wrapper h3{font-size:<?php echo $data['hthreesize'];  ?>px!important;}
.Appoint_ment .appointments-confirmation-wrapper h3{font-size:<?php echo $data['hthreesize'];  ?>px!important;}


.Our_client_gallary
{
float: none;
margin: 0px auto;
padding-top: 25px;
padding-bottom: 84px;
}
.Client_comment{
	
	float:none; margin:0 auto;
}

.mbt{
	
	margin:10px;
}

</style>   

<?php  wp_head();?>

</head>



<body >



<header id="header">
<div class="Headr_top row">
<div class="container">
<div class="Call fa fa-mobile Gray1 Offset1"><div class="Light12 Offset2">Call Us: <?php echo $data['contact']; ?></div></div>
<div class="Info fa fa-envelope-o Gray1 Offset1"><div class="Light12 Offset2"> <?php echo $data['email']; ?></div></div>


<div class="Social_icon">
<ul>
  <?php if(!empty($data['facebook_link']) )  { ?>
<li><a href="<?php echo $data['facebook_link']; ?>" class="fa fa-facebook f09a"></a></li>
<?php } ?>
 <?php if(!empty($data['twitter_link']))  { ?>
<li><a href="<?php echo $data['twitter_link']; ?>" class="fa fa-twitter f099"></a></li>
<?php } ?>

 <?php if(!empty($data['gplus_link']) )  { ?>
<li><a href="<?php echo $data['gplus_link']; ?>" class="fa fa-google-plus f0d5"></a></li>
<?php } ?>
<?php if(!empty($data['youtube']) )  { ?>
<li><a href="<?php echo $data['youtube']; ?>" class="fa fa-youtube f167"></a></li>
<?php } ?>



</ul>

</div>

</div>
</div>

<div class="Header_bottom row">
<div class="container">
<div class="logo Fl Align_cent"><a href="#"><img src="<?php echo do_shortcode(stripslashes($data['logo'])); ?>" alt="img" border="0"></a></div>

<nav id="Main_menu"><a class="toggleMenu" href="#"><?php _e( 'Menu', 'oft_theme' ); ?></a>
<div class="Menubx">

<?php //wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'nav' ) ); ?>

<?php

$defaults = array(
	'theme_location'  => 'primary-menu',
	'menu'            => 'Primary Menu',
	'container'       => '',
	'container_class' => '',
	'container_id'    => '',
	'menu_class'      => 'nav',
	'menu_id'         => '',
	'echo'            => true,
	'fallback_cb'     => 'wp_page_menu',
	'before'          => '',
	'after'           => '',
	'link_before'     => '',
	'link_after'      => '',
	'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
	'depth'           => 0,
	'walker'          => ''
);

wp_nav_menu( $defaults );

?>

	<!--<ul class="nav">
	<li  class="test"><a href="#" class="current ">Home</a></li>
     <li><a href="#">Verdicts & Settlements</a></li>          
     <li><a href="#">Practice Areas</a></li>           
     <li><a href="#">Contact</a></li>          
     
    </ul>-->
</div></nav>

</div>

</div>

<div class="Banner row ">
<div class="Banner_img row ">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ul class="bxslider">

<?php   

global $data;   

$slides = $data['pingu_slider']; 
//print_r($slides);die;

if (is_array($slides)) {

foreach ($slides as $slide){ 

?>
     <li> 
  <img src="<?php echo $slide['url'] ; ?>" width="100%"/> 
  </li>

<?php  

     }  

 }
?> 



</ul>



</div>





</div>
<div class="Banner_botm row Offset4"><div class="container">
<div class="Banner_content Fl Align_cent Gray3 Upparcase Lineheight2 Letter_space">
<span class="OswalReg46 Yellow Align_cent"><?php  echo $data['Slider_bottom_section_Heading'];  ?></span>
</div>
</div></div>
</div>
<?php 

/* if(isset($_POST['submit'])){

$name= $_POST['fname'];
$email= $_POST['email'];
$phone= $_POST['phone'];
$date= $_POST['date'];
$time= $_POST['time'];
$comment= $_POST['comment'];
$curdate=date('m/d/Y');
$curdate=strtotime($curdate);
$mydate=strtotime($date);

if($curdate <= $mydate)
{
echo $phone= $_POST['phone'];	
echo $api_key = $data['api_key'];

echo $api_secret = $data['api_secret'];
echo $new_Booking_Message = urlencode($data['New_Booking_Message']);

// Create post object
$my_post = array(
  'post_title'    => $name,
   'post_type'             => 'appoitment',
   'post_status'   => 'publish',
   'post_author'   => 1,
 
);

// Insert the post into the database
 $post_id = wp_insert_post( $my_post );

add_post_meta($post_id, 'Appoitment_date', $date);
add_post_meta($post_id, 'Appoitment_time', $time);
add_post_meta($post_id, 'Email', $email);
add_post_meta($post_id, 'Phone', $phone);
add_post_meta($post_id, 'Comments', $comment);

$url="https://rest.nexmo.com/sms/json?api_key=$api_key&api_secret=$api_secret&from=NEXMO&to=$phone&text=$new_Booking_Message";

echo $result = file_get_contents($url);die;


 $msg = "Your Appoitment Successfully Submitted ";
}else{
	
 $msg = "Please Select Valid Date!!!";
	
}

}



$s_time = get_option('appointment_start_time'); 
 $sloat_time = get_option('appointment_time_sloat');
 //$d = date('H:i',strtotime(+$sloat_time.'minutes',strtotime($s_time)));
  $e_time = get_option('appointment_end_time'); 
 $sloat_time = get_option('appointment_time_sloat'); 
$s_r_time = get_option('appointment_rest_start_time'); 
    $e_r_time = get_option('appointment_rest_end_time');
	$opt_s_r_time = get_option('appointment_opt_rest_start_time'); 
    $opt_e_r_time = get_option('appointment_opt_rest_end_time');
	
  	$s_t = date('g:i A',strtotime($s_r_time));
	$e_t = date('g:i A',strtotime($e_r_time));
	
	$start_rest_time = strtotime($s_t);
	$end_rest_time = strtotime($e_t);
	
	$opt_s_time = date('g:i A',strtotime($opt_s_r_time));
	$opt_e_time = date('g:i A',strtotime($opt_e_r_time));
	
	$opt_start_rest_time = strtotime($opt_s_time);
	$opt_end_rest_time = strtotime($opt_e_time);
	
   $s =  date('H:i',strtotime($s_time));
  $e =  date('H:i',strtotime($e_time));
 
   */
?>

<?php
		
 /* query_posts(array('post_type' => 'appoitment',)); 



             	if (have_posts()) : while (have_posts()) : the_post();
			
		 $id	= get_the_ID();


    $meta_values = get_post_meta( $id, 'Appoitment_time', true );

         $val[] = strtotime($meta_values);

 endwhile; endif;
 
 */
 
 ?>


</header>