Changeset 1198548
- Timestamp:
- 07/14/2015 07:14:47 AM (11 years ago)
- Location:
- nm-contact-forms
- Files:
-
- 17 added
- 3 edited
-
tags/1.1.4 (added)
-
tags/1.1.4/admin (added)
-
tags/1.1.4/admin/admin.css (added)
-
tags/1.1.4/admin/forms.php (added)
-
tags/1.1.4/admin/images (added)
-
tags/1.1.4/admin/images/batman_new.png (added)
-
tags/1.1.4/admin/images/donation.png (added)
-
tags/1.1.4/admin/images/nm_close.png (added)
-
tags/1.1.4/admin/js (added)
-
tags/1.1.4/admin/js/nm_forms.js (added)
-
tags/1.1.4/admin/settings.php (added)
-
tags/1.1.4/css (added)
-
tags/1.1.4/css/front.css (added)
-
tags/1.1.4/index.php (added)
-
tags/1.1.4/readme.txt (added)
-
tags/1.1.4/templates (added)
-
tags/1.1.4/templates/email_template.php (added)
-
trunk/admin/forms.php (modified) (1 diff)
-
trunk/index.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nm-contact-forms/trunk/admin/forms.php
r1141054 r1198548 225 225 <input type="text" name="nm_f[<?=$form['nm_form_id'];?>][after_form]" value="<?=htmlentities($form['after_form']);?>"> 226 226 </td></tr> 227 <tr><th> 228 Redirect url: 229 </th><td> 230 <input type="text" name="nm_f[<?=$form['nm_form_id'];?>][redirect]" value="<?=htmlentities($form['redirect']);?>"> 231 <p class="description">Redirect after successful submission.</p> 232 </td></tr> 227 233 </table> 228 234 </div> -
nm-contact-forms/trunk/index.php
r1149870 r1198548 4 4 * Plugin URI: http://nutmedia.co.uk/nm-contact-forms 5 5 * Description: This plugin has built in honeyPot and reChaptcha anti spam solutions. Supports GET variables (allows to pass GET variable info to the form). Option to turn off default CSS, add extra classes. User friendly UI, drag and drop sorting. 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: Aidas Keburys @ Nutmedia 8 8 * Author URI: http://nutmedia.co.uk … … 356 356 if(!count($response['errors'])){ 357 357 358 $data['subject'] = $subject;359 $html = $this->nm_render('email_template', $data);360 361 $headers = "MIME-Version: 1.0" . "\r\n";362 $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";363 $headers .= 'From: '.$from_title.' <'.$sender_email.'>' . "\r\n";364 365 $receivers = explode(',',$nm_form['receivers']);366 367 if(!count($receivers)) $receivers = array($admin_email);368 369 wp_mail( $receivers, $subject, $html, $headers, $attachments );370 $response['success'] = 'Your message was sent successfully. Thanks.';371 372 unset($response['data']);373 374 } 375 358 $data['subject'] = $subject; 359 $html = $this->nm_render('email_template', $data); 360 361 $headers = "MIME-Version: 1.0" . "\r\n"; 362 $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; 363 $headers .= 'From: '.$from_title.' <'.$sender_email.'>' . "\r\n"; 364 365 $receivers = explode(',',$nm_form['receivers']); 366 367 if(!count($receivers)) $receivers = array($admin_email); 368 369 wp_mail( $receivers, $subject, $html, $headers, $attachments ); 370 $response['success'] = 'Your message was sent successfully. Thanks.'; 371 372 unset($response['data']); 373 374 } 375 376 376 return $response; 377 377 … … 382 382 if(isset($_POST['nm_nonce'])){ 383 383 $response = $this->nm_send($nm_form); 384 385 if(!empty($nm_form['redirect']) && empty($response['errors'])){ 386 header("Location: ".$nm_form['redirect']); 387 die(); 388 } 389 384 390 } 385 391 … … 535 541 } 536 542 537 function nm_callback($input){ 538 return $input; 543 function nm_callback($array){ 544 545 foreach($array as $key=>$arr){ 546 547 if(!isset($arr['show_labels'])) $array[$key]['show_labels'] = 'false'; 548 549 } 550 return $array; 551 539 552 } 540 553 … … 622 635 } 623 636 624 625 637 626 638 627 639 } -
nm-contact-forms/trunk/readme.txt
r1149870 r1198548 4 4 Tags: contact form, contact form builder, contact form plugin, contact forms, contact us, feedback form, form, form builder, web form, contacts, contacts shortcode, contact plugin wordpress, easy contact form, simple contact form, form, feedback form 5 5 Requires at least: 3.0.1 6 Tested up to: 4.2. 17 Stable tag: 1.1. 36 Tested up to: 4.2.2 7 Stable tag: 1.1.4 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 134 134 135 135 == Changelog == 136 = 1.1.4 = 137 * Fixed show labels setting error. 138 * Added redirect to thank you page url option for each individual form. 136 139 = 1.1.3 = 137 140 * Fixed php notices if debug mode enabled. Loading CSS and JS only when shortcode is used.
Note: See TracChangeset
for help on using the changeset viewer.