$_POST['txtcompany'], 'address'=>$_POST['txtaddress'], 'city'=>$_POST['txtcity'], 'zip'=>$_POST['txtzip'], 'state'=>$_POST['txtstate'], 'contact_number'=>$_POST['txtphone'],'contact_number2'=>$_POST['txtphone2'], 'contact_number3'=> $_POST['txtphone3'], 'mobile'=>$_POST['txtmobile'], 'fax'=>$_POST['txtfax'],'email'=>$_POST['txtemail'], 'country'=>$_POST['txtcountry']);
update_option('contact_data', $contact_data);
}
//captcha status
update_option('captcha_status', $_POST['txtcaptchastatus']);
//mail method
if($_POST['txtmailmtd']!='') {
update_option('mail_method', $_POST['txtmailmtd']);
}
if($_POST['txthost']!='') {
update_option('SMTP Host',$_POST['txthost']);
}
if($_POST['txtmailmtd']!='') {
update_option('Port', $_POST['txtport']);
}
if($_POST['txtmailuser']!='') {
update_option('Mail Username', $_POST['txtmailuser']);
}
if($_POST['txtmailpass']!='') {
update_option('Mail Password', $_POST['txtmailpass']);
}
if($_POST['txtsuccessmsg']!='') {
update_option('mail_success_msg', $_POST['txtsuccessmsg']);
}
if($_POST['txterrormsg']!='') {
update_option('mail_error_msg', $_POST['txterrormsg']);
}
//social media links
update_option('twitter_link', $_POST['txttwitter']);
update_option('facebook_link', $_POST['txtfacebook']);
update_option('youtube_link', $_POST['txtyoutube']);
update_option('reddit_link', $_POST['txtreddit']);
//custom user css
update_option('threestar_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=threestar-mgr";
echo "";
}
}//theme option active check ends
//theme option disabled check starts
if(get_option('threestar_theme_options_status')=='disabled')
{
if(isset($_POST['addthemeoptions']))
{
threestar_add_theme_options();
update_option('threestar_theme_options_status','active');
$url=admin_url()."themes.php?page=threestar-mgr";
echo "";
}
?>