Contact Form 7 Multi-Step Forms - Version 1.6

Version Description

Added support for when contact form 7 ajax is disabled.

Download this release

Release Info

Developer webheadllc
Plugin Icon 128x128 Contact Form 7 Multi-Step Forms
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

Files changed (2) hide show
  1. contact-form-7-multi-step-module.php +16 -2
  2. readme.txt +4 -1
contact-form-7-multi-step-module.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
- Version: 1.5
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,7 +24,7 @@ Version: 1.5
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
- define( 'CF7MSM_VERSION', '1.5' );
28
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
29
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
30
 
@@ -258,6 +258,20 @@ function cf7msm_mail_sent() {
258
  cf7msm_remove('step');
259
  cf7msm_remove('cf7msm_posted_data');
260
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  }
262
  }
263
  add_action( 'wpcf7_mail_sent', 'cf7msm_mail_sent' );
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
+ Version: 1.6
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
+ define( 'CF7MSM_VERSION', '1.6' );
28
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
29
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
30
 
258
  cf7msm_remove('step');
259
  cf7msm_remove('cf7msm_posted_data');
260
  }
261
+ else {
262
+ // redirect
263
+ // for now only redirect when ajax is disabled.
264
+ if ( !wpcf7_load_js() ) {
265
+ $wpcf7 = WPCF7_ContactForm::get_current();
266
+ $subject = $wpcf7->prop('additional_settings');
267
+ $pattern = '/location\.replace\(\'([^\']*)\'\);/';
268
+ preg_match( $pattern, $subject, $matches );
269
+ if ( count( $matches ) == 2 ) {
270
+ wp_redirect( esc_url( $matches[1] ) );
271
+ exit;
272
+ }
273
+ }
274
+ }
275
  }
276
  }
277
  add_action( 'wpcf7_mail_sent', 'cf7msm_mail_sent' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webheadllc
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
  Tested up to: 4.4
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -69,6 +69,9 @@ This plugin is free for a reason. Please go through the video tutorial provided
69
 
70
  == Changelog ==
71
 
 
 
 
72
  = 1.5 =
73
  Added support for free_text in checkboxes and radio buttons.
74
 
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
  Tested up to: 4.4
6
+ Stable tag: 1.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
69
 
70
  == Changelog ==
71
 
72
+ = 1.6 =
73
+ Added support for when contact form 7 ajax is disabled.
74
+
75
  = 1.5 =
76
  Added support for free_text in checkboxes and radio buttons.
77