'Facebook like', 'twitter'=>'Twitter', 'Google_plusone'=>'Google PlusOne' ); $out = ''; if( isset($_POST['simple_share_position'])) { $option = array(); //print_r($_POST); $option['auto'] = (isset($_POST['simple_share_auto_display']) and $_POST['simple_share_auto_display']=='on') ? true : false; //echo $option['auto']; foreach (array_keys($active_buttons) as $item) { $option['active_buttons'][$item] = (isset($_POST['simple_share_active_'.$item]) and $_POST['simple_share_active_'.$item]=='on') ? true : false; } $option['jsload'] = (isset($_POST['simple_share_javascript_load']) and $_POST['simple_share_javascript_load']=='on') ? true : false; $option['twitter_id'] = esc_html($_POST['simple_share_twitter_id']); //print_r($option); update_option('simple_share', $option); // Put a settings updated message on the screen $out .= '
'.__('Settings saved.', 'menu-test' ).'