' . 'Click for help'; echo $pp_help ; } function aspen_sw_save_msg($msg) { echo '

' . $msg . '

'; } function aspen_sw_error_msg($msg) { echo '

' . $msg . '

'; } /* ================= nonce helpers ===================== */ function aspen_sw_submitted($submit_name) { // do a nonce check for each form submit button // pairs 1:1 with aspen_nonce_field $nonce_act = $submit_name.'_act'; $nonce_name = $submit_name.'_nonce'; if (isset($_POST[$submit_name])) { if (isset($_POST[$nonce_name]) && wp_verify_nonce($_POST[$nonce_name],$nonce_act)) { return true; } else { die("WARNING: invalid form submit detected ($submit_name). Probably caused by session time-out, or, rarely, a failed security check. Please contact AspenThemeWorks.com if you continue to receive this message."); } } else { return false; } } function aspen_sw_nonce_field($submit_name,$echo = true) { // pairs 1:1 with sumbitted // will be one for each form submit button return wp_nonce_field($submit_name.'_act',$submit_name.'_nonce',$echo); } /* ================= form helpers ===================== */ function aspen_sw_form_checkbox($id, $desc, $br = '
') { ?>
' . $br . "\n"; } ?>