filepath = admin_url() . 'admin.php?page=' . $_GET['page']; $this->price_url = $bpxs->home_url . 'prices.php'; // only process if $_POST vars are available if( ! empty( $_POST ) ) $this->processor(); } /** * Process any $_POST variables * @since 1.0 */ function processor() { global $bpxs; if ( isset( $_POST['update_bpxs'] ) ) { check_admin_referer( 'bpxs_settings' ); $error = false; $message = ''; if( $_POST['newsletter'] == true ) { if( empty( $_POST['mcapi_list_id'] ) || empty( $_POST['mcapi_key'] ) ) { $message .= __( 'You need to enter a Mailchimp List ID and an API Key.', 'bpxs' ); $error = true; } if( ! empty( $_POST['email_recipient'] ) ) { if( ! is_email( $_POST['email_recipient'] ) ) { $message .= __( 'You need to enter a valid email address.', 'bpxs' ); $error = true; } } } if( $_POST['date_of_birth'] == true ) { if( empty( $_POST['dob_field'] ) ) { $message .= __( 'You need to specify a date of birth profile field.', 'bpxs' ); $error = true; } if( empty( $_POST['dob_age'] ) || $_POST['dob_age'] == '----' ) { $message .= __( 'You need to specify an age.', 'bpxs' ); $error = true; } } // proceed if there is no error if( ! $error ) { if( $_POST['page_options'] ) $options = explode( ',', stripslashes( $_POST['page_options'] ) ); if( $options ) { foreach( $options as $option ) { $option = trim( $option ); $value = trim( $_POST[$option] ); // make sure all boolean values get saved as such if( in_array( $option, array( 'tos', 'newsletter', 'email_confirmation', 'u_availability', 'psw_strength', 'date_of_birth', 'email_check' ) ) ) $bpxs->options->{$option} = (bool)$value; else $bpxs->options->{$option} = $value; } } // Save options update_option( 'bpxs_options', $bpxs->options ); BPXS_Admin_Loader::show_message( __( 'Update Successfully', 'bpxs' ) ); } // or show any errors else { BPXS_Admin_Loader::show_error( $message ); } } do_action( 'bpxs_update_options_page' ); } /** * Render the page content * @since 1.0 */ function controller() { // get list of tabs $tabs = $this->tabs_order(); ?>
register on ShabuShabu.eu.', 'jobs' ), $jb->home_url . 'membership-options/', $jb->home_url ); ?>
| EUR |
'. __( 'Information could not be retrieved.', 'jobs' ) .'
'; } } /** * Content of the Donate tab * @since 1.0 */ function tab_donate() { ?>
ShabuShabu Webdesign Team