$_POST['txtcompany'], 'address'=>$_POST['txtaddress'], 'city'=>$_POST['txtcity'], 'zip'=>$_POST['txtzip'], 'state'=>$_POST['txtstate'], 'contact_number'=>$_POST['txtphone'], 'mobile'=>$_POST['txtmobile'], 'fax'=>$_POST['txtfax'],'email'=>$_POST['txtemail']);
update_option('contact_data', $contact_data);
}
//captcha status
update_option('captcha_status', $_POST['txtcaptchastatus']);
//mail method
if($_POST['txtsuccessmsg']!='') {
update_option('mail_success_msg', $_POST['txtsuccessmsg']);
}
if($_POST['txterrormsg']!='') {
update_option('mail_error_msg', $_POST['txterrormsg']);
}
//social media links
if($_POST['txttwitter']!='')
{
update_option('twitter_link', $_POST['txttwitter']);
}
if($_POST['txtfacebook']!='')
{
update_option('facebook_link', $_POST['txtfacebook']);
}
if($_POST['txtyoutube']!='')
{
update_option('youtube_link', $_POST['txtyoutube']);
}
if($_POST['txtdribble']!='')
{
update_option('dribble_link', $_POST['txtdribble']);
}
if($_POST['txtpinterest']!='')
{
update_option('pinterest_link', $_POST['txtpinterest']);
}
if($_POST['txtgmail']!='')
{
update_option('gmail_link', $_POST['txtgmail']);
}
//custom user css
update_option('barber_custom_user_css', $_POST['txtcustomcss']);
//map
if($_POST['txtlat']!='' && $_POST['txtlng']!='' && $_POST['txtmapname']!=''){
update_option('latitude', $_POST['txtlat']);
update_option('longitude', $_POST['txtlng']);
update_option('map_name', $_POST['txtmapname']);
}
$url=admin_url()."themes.php?page=barber-mgr";
echo "";
}
}//theme option active check ends
//theme option disabled check starts
if(get_option('barber_theme_options_status')=='disabled')
{
if(isset($_POST['addthemeoptions']))
{
barber_add_theme_options();
update_option('barber_theme_options_status','active');
$url=admin_url()."themes.php?page=barber-mgr";
echo "";
}
?>