Plugin Directory

Changeset 1198548


Ignore:
Timestamp:
07/14/2015 07:14:47 AM (11 years ago)
Author:
frankenstein-uk
Message:

update to 1.1.4

Location:
nm-contact-forms
Files:
17 added
3 edited

Legend:

Unmodified
Added
Removed
  • nm-contact-forms/trunk/admin/forms.php

    r1141054 r1198548  
    225225                                        <input type="text" name="nm_f[<?=$form['nm_form_id'];?>][after_form]" value="<?=htmlentities($form['after_form']);?>">
    226226                                    </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>
    227233                                </table>
    228234                            </div>
  • nm-contact-forms/trunk/index.php

    r1149870 r1198548  
    44 * Plugin URI: http://nutmedia.co.uk/nm-contact-forms
    55 * 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.3
     6 * Version: 1.1.4
    77 * Author: Aidas Keburys @ Nutmedia
    88 * Author URI: http://nutmedia.co.uk
     
    356356        if(!count($response['errors'])){
    357357       
    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
    376376        return $response;
    377377   
     
    382382        if(isset($_POST['nm_nonce'])){
    383383            $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           
    384390        }
    385391       
     
    535541    }
    536542
    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       
    539552    }
    540553
     
    622635    }
    623636   
    624    
    625    
     637
    626638
    627639}
  • nm-contact-forms/trunk/readme.txt

    r1149870 r1198548  
    44Tags: 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 
    55Requires at least: 3.0.1
    6 Tested up to: 4.2.1
    7 Stable tag: 1.1.3
     6Tested up to: 4.2.2
     7Stable tag: 1.1.4
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134
    135135== Changelog ==
     136= 1.1.4 =
     137* Fixed show labels setting error.
     138* Added redirect to thank you page url option for each individual form.
    136139= 1.1.3 =
    137140* 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.