Changeset 1834011
- Timestamp:
- 03/05/2018 09:25:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
advanced-angular-contact-form/trunk/contact-form.php
r1830058 r1834011 173 173 } 174 174 175 if (!isset($_GET['form_id']))175 if (!isset($_GET['form_id'])) 176 176 return $posts; 177 177 … … 225 225 $form_id = 0; 226 226 227 if (isset($_POST['form_id'])) {227 if (isset($_POST['form_id'])) { 228 228 $form_id = sanitize_text_field($_POST['form_id']); 229 229 unset($_POST['form_id']); 230 } else{230 } else { 231 231 die(); 232 232 } … … 263 263 $email_subject = str_replace('{site_title}', strval(get_bloginfo('name')), $email_subject); 264 264 265 // For now we are calculating smart tag only for the super admin (1), later we'll add global settings page and deliver appropriate user info who would be selected 265 266 $user_info = get_userdata(1); 266 267 … … 285 286 'X-Mailer: PHP/' . phpversion(); 286 287 287 mail($to, $subject, $message, $headers, "From: " . $name);288 wp_mail($to, $subject, $message, $headers, "From: " . $name); 288 289 289 290 if ($form_settings_object->send_confirmation_email) { … … 295 296 $response['confirmation'] = $confirmation_email_message; 296 297 297 die(json_encode($response));298 wp_die(json_encode($response)); 298 299 } 299 300 … … 342 343 wp_enqueue_script('angcf-inline-script'); 343 344 344 wp_register_style( 'angcf-inline-style', false, array( 'angcf-style' ));345 wp_enqueue_style( 'angcf-inline-style');345 wp_register_style('angcf-inline-style', false, array('angcf-style')); 346 wp_enqueue_style('angcf-inline-style'); 346 347 347 348 $form_fields = html_entity_decode(get_post_meta($form_id, 'ng_form_fields', true)); … … 368 369 369 370 370 if (!empty($form_fields_array)) {371 if (!empty($form_fields_array)) { 371 372 foreach ($form_fields_array as $key => $field) { 372 373 switch ($field->type) { … … 1040 1041 </div> 1041 1042 EOF; 1042 if ($field_object->position_checked > 0) {1043 if ($field_object->position_checked > 0) { 1043 1044 $button_position = '.ng-submit-button-position {width: 100%; padding: 10px 0;} 1044 1045 .ng-contact-form-submit-button{float: right;}
Note: See TracChangeset
for help on using the changeset viewer.