Contact Form 7 Multi-Step Forms - Version 2.26

Version Description

updated i18n code.

Download this release

Release Info

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

Code changes from version 2.25 to 2.26

contact-form-7-multi-step-module.php CHANGED
@@ -5,7 +5,8 @@ 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: 2.25
 
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,7 +25,7 @@ Version: 2.25
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
- define( 'CF7MSM_VERSION', '2.25' );
28
  define( 'CF7MSM_PLUGIN', __FILE__ );
29
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
30
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
@@ -61,22 +62,44 @@ function contact_form_7_form_codes() {
61
  function cfformfieldserror() {
62
  $out = '<div class="error" id="messages"><p>';
63
  if ( defined( 'WPCF7_VERSION' ) && version_compare( WPCF7_VERSION, $min_cf7_version ) < 0 ) {
64
- $out .= 'Please update the Contact Form 7 plugin. Contact Form 7 Multi-Step Form plugin requires Contact Form 7 version ' . $min_cf7_version . ' or above.';
65
  }
66
  else {
67
  if(file_exists(WP_PLUGIN_DIR.'/contact-form-7/wp-contact-form-7.php')) {
68
- $out .= 'The Contact Form 7 is installed, but <strong>you must activate Contact Form 7</strong> below for the Contact Form 7 Multi-Step Form to work.';
69
  } else {
70
- $out .= 'The Contact Form 7 plugin must be installed for the Contact Form 7 Multi-Step Form to work. <a href="'.admin_url('plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550').'" class="thickbox" title="Contact Form 7">Install Now.</a>';
71
  }
72
 
73
  }
74
  $out .= '</p></div>';
75
- echo $out;
76
  }
77
  }
78
  add_action('plugins_loaded', 'contact_form_7_form_codes', 10);
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  /**
81
  * Return the url with the plugin url prepended.
82
  */
@@ -230,11 +253,11 @@ function cf7msm_step_2($cf7) {
230
  || ($matches[1] != 1 && ((int) $step) + 1 < $matches[1]) ) {
231
  if ( $has_wpcf7_class ) {
232
  $cf7->set_properties( array(
233
- 'form' => apply_filters('wh_hide_cf7_step_message', __( 'Please fill out the form on the previous page', 'contact-form-7-multi-step-module' ), $form_id )
234
  ) );
235
  }
236
  else {
237
- $cf7->form = apply_filters('wh_hide_cf7_step_message', __( 'Please fill out the form on the previous page', 'contact-form-7-multi-step-module' ), $form_id );
238
  }
239
  }
240
  }
@@ -441,8 +464,12 @@ function cf7msm_current_url() {
441
  * note at top of form tags
442
  */
443
  function cf7msm_form_tag_header_text( $header_description ) {
444
- $description = __( $header_description . ". For more details, see %s.", 'contact-form-7' );
445
- $desc_link = wpcf7_link( __( 'https://wordpress.org/plugins/contact-form-7-multi-step-module/', 'contact-form-7' ), __( 'the plugin page on WordPress.org', 'contact-form-7' ), array('target' => '_blank' ) );
 
 
 
 
446
  printf( esc_html( $description ), $desc_link );
447
  }
448
 
@@ -450,11 +477,18 @@ function cf7msm_form_tag_header_text( $header_description ) {
450
  * Links to help the plugin.
451
  */
452
  function cf7msm_form_tag_footer_text() {
 
 
453
  ?>
454
- <p class="description" style="font-size:12px;margin-top:0;padding-top:0;font-style:normal;">Like the Multi-step addition to CF7? Let me know - <a href="http://webheadcoder.com/donate-cf7-multi-step-forms" target="_blank">Donate</a> and <a href="https://wordpress.org/support/view/plugin-reviews/contact-form-7-multi-step-module#postform" target="_blank">Review</a>.
 
 
 
 
 
455
  </p>
456
  <div style="position:absolute; right:25px; bottom:5px;">
457
- <a href="http://webheadcoder.com" target="_blank"><img src="<?php echo cf7msm_url( '/resources/logo.png' )?>" width="40"></a>
458
  </div>
459
  <?php
460
  }
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: 2.26
9
+ Text Domain: contact-form-7-multi-step-module
10
  */
11
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
12
 
25
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
  */
27
 
28
+ define( 'CF7MSM_VERSION', '2.26' );
29
  define( 'CF7MSM_PLUGIN', __FILE__ );
30
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
31
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
62
  function cfformfieldserror() {
63
  $out = '<div class="error" id="messages"><p>';
64
  if ( defined( 'WPCF7_VERSION' ) && version_compare( WPCF7_VERSION, $min_cf7_version ) < 0 ) {
65
+ $out .= sprintf( __( 'Please update the Contact Form 7 plugin. Contact Form 7 Multi-Step Form plugin requires Contact Form 7 version %s or above.', 'contact-form-7-multi-step-module' ), $min_cf7_version );
66
  }
67
  else {
68
  if(file_exists(WP_PLUGIN_DIR.'/contact-form-7/wp-contact-form-7.php')) {
69
+ $out .= __( 'The Contact Form 7 is installed, but <strong>you must activate Contact Form 7</strong> below for the Contact Form 7 Multi-Step Form to work.', 'contact-form-7-multi-step-module' );
70
  } else {
71
+ $out .= sprintf( __( 'The Contact Form 7 plugin must be installed for the Contact Form 7 Multi-Step Form to work. <a href="%s" class="thickbox" title="Contact Form 7">Install Now.</a>', 'contact-form-7-multi-step-module' ), admin_url( 'plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550' ) );
72
  }
73
 
74
  }
75
  $out .= '</p></div>';
76
+ echo cf7msm_kses( $out );
77
  }
78
  }
79
  add_action('plugins_loaded', 'contact_form_7_form_codes', 10);
80
 
81
+ /**
82
+ * Allow a set of default html tags
83
+ */
84
+ function cf7msm_kses( $string, $additional_html = array() ) {
85
+ $allowed_html = array_merge( array(
86
+ 'a' => array(
87
+ 'href' => array(),
88
+ 'title' => array(),
89
+ 'target' => array()
90
+ ),
91
+ 'div' => array(
92
+ 'class' => array(),
93
+ 'id' => array(),
94
+ ),
95
+ 'p' => array(),
96
+ 'br' => array(),
97
+ 'em' => array(),
98
+ 'strong' => array(),
99
+ ), $additional_html );
100
+ return wp_kses( $string, $allowed_html );
101
+ }
102
+
103
  /**
104
  * Return the url with the plugin url prepended.
105
  */
253
  || ($matches[1] != 1 && ((int) $step) + 1 < $matches[1]) ) {
254
  if ( $has_wpcf7_class ) {
255
  $cf7->set_properties( array(
256
+ 'form' => apply_filters('wh_hide_cf7_step_message', esc_html( __( 'Please fill out the form on the previous page', 'contact-form-7-multi-step-module' ) ), $form_id )
257
  ) );
258
  }
259
  else {
260
+ $cf7->form = apply_filters('wh_hide_cf7_step_message', esc_html( __( 'Please fill out the form on the previous page', 'contact-form-7-multi-step-module' ) ), $form_id );
261
  }
262
  }
263
  }
464
  * note at top of form tags
465
  */
466
  function cf7msm_form_tag_header_text( $header_description ) {
467
+ $description = $header_description . __( ". For more details, see %s.", 'contact-form-7' );
468
+ $desc_link = wpcf7_link(
469
+ 'https://wordpress.org/plugins/contact-form-7-multi-step-module/',
470
+ esc_html( __( 'the plugin page on WordPress.org', 'contact-form-7-multi-step-module' ) ),
471
+ array( 'target' => '_blank' )
472
+ );
473
  printf( esc_html( $description ), $desc_link );
474
  }
475
 
477
  * Links to help the plugin.
478
  */
479
  function cf7msm_form_tag_footer_text() {
480
+ $url_donate = 'https://webheadcoder.com/donate-cf7-multi-step-forms';
481
+ $url_review = 'https://wordpress.org/support/view/plugin-reviews/contact-form-7-multi-step-module#postform';
482
  ?>
483
+ <p class="description" style="font-size:12px;margin-top:0;padding-top:0;font-style:normal;">
484
+ <?php
485
+ printf( cf7msm_kses(
486
+ __( 'Like the Multi-step addition to CF7? Let me know - <a href="%s"> target="_blank">Donate</a> and <a href="%s" target="_blank">Review</a>.', 'contact-form-7-multi-step-module' )
487
+ ), $url_donate, $url_review );
488
+ ?>
489
  </p>
490
  <div style="position:absolute; right:25px; bottom:5px;">
491
+ <a href="https://webheadcoder.com" target="_blank"><img src="<?php echo cf7msm_url( '/resources/logo.png' )?>" width="40"></a>
492
  </div>
493
  <?php
494
  }
form-tags/module-back.php CHANGED
@@ -55,11 +55,11 @@ function cf7msm_back_shortcode_handler( $tag ) {
55
  $value = isset( $tag->values[0] ) ? $tag->values[0] : '';
56
  if ( empty( $value ) ) {
57
  if ( $tag->type == 'previous') {
58
- $value = __( 'Previous', 'contact-form-7-multi-step-module' );
59
  }
60
  else {
61
  //using old version
62
- $value = __( 'Back', 'contact-form-7-multi-step-module' );
63
  }
64
  }
65
 
@@ -80,11 +80,11 @@ function cf7msm_back_shortcode_handler( $tag ) {
80
  function cf7msm_add_tag_generator_back() {
81
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
82
  $tag_generator = WPCF7_TagGenerator::get_instance();
83
- $tag_generator->add( 'previous', __( 'previous', 'contact-form-7-multi-step-module' ),
84
  'cf7msm_previous_tag_pane', array( 'nameless' => 1 ) );
85
  }
86
  else if ( function_exists( 'wpcf7_add_tag_generator' ) ) {
87
- wpcf7_add_tag_generator( 'back', __( 'Back button', 'wpcf7' ),
88
  'wpcf7-cf7msm-back', 'wpcf7_cf7msm_back', array( 'nameless' => 1 ) );
89
  }
90
  }
@@ -101,24 +101,24 @@ function cf7msm_previous_tag_pane( $contact_form, $args = '' ) {
101
  ?>
102
  <div class="control-box cf7msm-multistep">
103
  <fieldset>
104
- <legend><?php cf7msm_form_tag_header_text( 'Generate a form-tag for a previous button for a multistep form' ); ?></legend>
105
  <table class="form-table">
106
  <tbody>
107
  <tr>
108
- <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Label', 'contact-form-7' ) ); ?></label></th>
109
  <td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" />
110
  <label for="tag-generator-panel-previous">
111
- <span class="description">The label on the button.</span>
112
  </label></td>
113
  </tr>
114
 
115
  <tr>
116
- <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
117
  <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
118
  </tr>
119
 
120
  <tr>
121
- <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
122
  <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
123
  </tr>
124
 
@@ -130,12 +130,12 @@ function cf7msm_previous_tag_pane( $contact_form, $args = '' ) {
130
  <input type="text" name="previous" class="tag code" readonly="readonly" onfocus="this.select()" />
131
 
132
  <div class="submitbox">
133
- <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
134
  </div>
135
 
136
  <br class="clear" />
137
 
138
- <p class="description mail-tag"><label><?php echo esc_html( __( "This field should not be used on the Mail tab.", 'contact-form-7' ) ); ?></label></p>
139
  <?php cf7msm_form_tag_footer_text();?>
140
  </div>
141
  <?php
@@ -150,22 +150,22 @@ function wpcf7_cf7msm_back( $contact_form ) {
150
  <form action="">
151
  <table>
152
  <tr>
153
- <td><code>id</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
154
  <input type="text" name="id" class="idvalue oneline option" /></td>
155
 
156
- <td><code>class</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
157
  <input type="text" name="class" class="classvalue oneline option" /></td>
158
  </tr>
159
 
160
  <tr>
161
- <td><?php echo esc_html( __( 'Label', 'wpcf7' ) ); ?> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
162
  <input type="text" name="values" class="oneline" /></td>
163
 
164
  <td></td>
165
  </tr>
166
  </table>
167
 
168
- <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7' ) ); ?><br /><input type="text" name="back" class="tag" readonly="readonly" onfocus="this.select()" /></div>
169
  </form>
170
  </div>
171
  <?php
55
  $value = isset( $tag->values[0] ) ? $tag->values[0] : '';
56
  if ( empty( $value ) ) {
57
  if ( $tag->type == 'previous') {
58
+ $value = esc_html( __( 'Previous', 'contact-form-7-multi-step-module' ) );
59
  }
60
  else {
61
  //using old version
62
+ $value = esc_html( __( 'Back', 'contact-form-7-multi-step-module' ) );
63
  }
64
  }
65
 
80
  function cf7msm_add_tag_generator_back() {
81
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
82
  $tag_generator = WPCF7_TagGenerator::get_instance();
83
+ $tag_generator->add( 'previous', esc_html( __( 'previous', 'contact-form-7-multi-step-module' ) ),
84
  'cf7msm_previous_tag_pane', array( 'nameless' => 1 ) );
85
  }
86
  else if ( function_exists( 'wpcf7_add_tag_generator' ) ) {
87
+ wpcf7_add_tag_generator( 'back', esc_html( __( 'Back button', 'contact-form-7-multi-step-module' ) ),
88
  'wpcf7-cf7msm-back', 'wpcf7_cf7msm_back', array( 'nameless' => 1 ) );
89
  }
90
  }
101
  ?>
102
  <div class="control-box cf7msm-multistep">
103
  <fieldset>
104
+ <legend><?php cf7msm_form_tag_header_text( esc_html( __( 'Generate a form-tag for a previous button for a multistep form', 'contact-form-7-multi-step-module' ) ) ); ?></legend>
105
  <table class="form-table">
106
  <tbody>
107
  <tr>
108
+ <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Label', 'contact-form-7-multi-step-module' ) ); ?></label></th>
109
  <td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" />
110
  <label for="tag-generator-panel-previous">
111
+ <span class="description"><?php echo esc_html( __( 'The label on the button.', 'contact-form-7-multi-step-module' ) ); ?></span>
112
  </label></td>
113
  </tr>
114
 
115
  <tr>
116
+ <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7-multi-step-module' ) ); ?></label></th>
117
  <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
118
  </tr>
119
 
120
  <tr>
121
+ <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7-multi-step-module' ) ); ?></label></th>
122
  <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
123
  </tr>
124
 
130
  <input type="text" name="previous" class="tag code" readonly="readonly" onfocus="this.select()" />
131
 
132
  <div class="submitbox">
133
+ <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7-multi-step-module' ) ); ?>" />
134
  </div>
135
 
136
  <br class="clear" />
137
 
138
+ <p class="description mail-tag"><label><?php echo esc_html( __( 'This field should not be used on the Mail tab.', 'contact-form-7-multi-step-module' ) ); ?></label></p>
139
  <?php cf7msm_form_tag_footer_text();?>
140
  </div>
141
  <?php
150
  <form action="">
151
  <table>
152
  <tr>
153
+ <td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7-multi-step-module' ) ); ?>)<br />
154
  <input type="text" name="id" class="idvalue oneline option" /></td>
155
 
156
+ <td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7-multi-step-module' ) ); ?>)<br />
157
  <input type="text" name="class" class="classvalue oneline option" /></td>
158
  </tr>
159
 
160
  <tr>
161
+ <td><?php echo esc_html( __( 'Label', 'wpcf7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7-multi-step-module' ) ); ?>)<br />
162
  <input type="text" name="values" class="oneline" /></td>
163
 
164
  <td></td>
165
  </tr>
166
  </table>
167
 
168
+ <div class="tg-tag"><?php echo esc_html( __( 'Copy this code and paste it into the form left.', 'contact-form-7-multi-step-module' ) ); ?><br /><input type="text" name="back" class="tag" readonly="readonly" onfocus="this.select()" /></div>
169
  </form>
170
  </div>
171
  <?php
form-tags/module-multistep.php CHANGED
@@ -44,7 +44,7 @@ add_action( 'wpcf7_init', 'cf7msm_add_shortcode_multistep' );
44
  function cf7msm_add_tag_generator_multistep() {
45
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
46
  $tag_generator = WPCF7_TagGenerator::get_instance();
47
- $tag_generator->add( 'multistep', __( 'multistep', 'contact-form-7-multi-step-module' ), 'cf7msm_multistep_tag_generator' );
48
  }
49
  }
50
  add_action( 'admin_init', 'cf7msm_add_tag_generator_multistep', 30 );
@@ -111,12 +111,12 @@ function cf7msm_multistep_tag_generator( $contact_form, $args = '' ) {
111
  <tbody>
112
  <tr>
113
  <th scope="row">
114
- <?php _e('Current Step', 'cf7msm'); ?>
115
  </th>
116
  <td>
117
  <input id="tag-generator-panel-current-step" type="number" name="values_current_step" class="oneline cf7msm-multistep-values" min="1" />
118
  <label for="tag-generator-panel-current-step">
119
- <span class="description">The current step of this multi-step form.</span>
120
  </label>
121
  </td>
122
  </tr>
@@ -127,7 +127,7 @@ function cf7msm_multistep_tag_generator( $contact_form, $args = '' ) {
127
  <td>
128
  <input id="tag-generator-panel-total-steps" type="number" name="values_total_steps" class="oneline cf7msm-multistep-values" min="1" />
129
  <label for="tag-generator-panel-total-steps">
130
- <span class="description">The total number of steps in your multi-step form.</span>
131
  </label>
132
  <br>
133
  </td>
@@ -140,14 +140,14 @@ function cf7msm_multistep_tag_generator( $contact_form, $args = '' ) {
140
  <input id="tag-generator-panel-next-url" type="text" name="next_url" class="oneline cf7msm-multistep-values" />
141
  <br>
142
  <label for="tag-generator-panel-next-url">
143
- <span class="description">The URL of the page that contains the next form. (Leave blank on last step)</span>
144
  </label>
145
  </td>
146
  </tr>
147
  </tbody>
148
  </table>
149
  <p class="cf7msm-faq" style="display:none;">
150
- <strong>Warning:</strong> Your form may be at risk of being too large for this plugin. <a href="">See here for more information.</a>
151
  </p>
152
  </fieldset>
153
  </div>
@@ -156,12 +156,12 @@ function cf7msm_multistep_tag_generator( $contact_form, $args = '' ) {
156
  <input type="text" name="multistep" class="tag code" readonly="readonly" onfocus="this.select()" />
157
 
158
  <div class="submitbox">
159
- <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
160
  </div>
161
 
162
  <br class="clear" />
163
 
164
- <p class="description mail-tag"><label><?php echo esc_html( __( "This field should not be used on the Mail tab.", 'contact-form-7' ) ); ?></label>
165
  </p>
166
  <?php cf7msm_form_tag_footer_text();?>
167
  </div>
44
  function cf7msm_add_tag_generator_multistep() {
45
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
46
  $tag_generator = WPCF7_TagGenerator::get_instance();
47
+ $tag_generator->add( 'multistep', esc_html( __( 'multistep', 'contact-form-7-multi-step-module' ) ), 'cf7msm_multistep_tag_generator' );
48
  }
49
  }
50
  add_action( 'admin_init', 'cf7msm_add_tag_generator_multistep', 30 );
111
  <tbody>
112
  <tr>
113
  <th scope="row">
114
+ <?php echo esc_html( __('Current Step', 'contact-form-7-multi-step-module' ) ); ?>
115
  </th>
116
  <td>
117
  <input id="tag-generator-panel-current-step" type="number" name="values_current_step" class="oneline cf7msm-multistep-values" min="1" />
118
  <label for="tag-generator-panel-current-step">
119
+ <span class="description"><?php echo esc_html( __( 'The current step of this multi-step form.', 'contact-form-7-multi-step-module' ) ) ?> </span>
120
  </label>
121
  </td>
122
  </tr>
127
  <td>
128
  <input id="tag-generator-panel-total-steps" type="number" name="values_total_steps" class="oneline cf7msm-multistep-values" min="1" />
129
  <label for="tag-generator-panel-total-steps">
130
+ <span class="description"><?php echo esc_html( __( 'The total number of steps in your multi-step form.', 'contact-form-7-multi-step-module' ) ) ?> </span>
131
  </label>
132
  <br>
133
  </td>
140
  <input id="tag-generator-panel-next-url" type="text" name="next_url" class="oneline cf7msm-multistep-values" />
141
  <br>
142
  <label for="tag-generator-panel-next-url">
143
+ <span class="description"><?php echo esc_html( __( 'The URL of the page that contains the next form. (Leave blank on last step)', 'contact-form-7-multi-step-module' ) ) ?> </span>
144
  </label>
145
  </td>
146
  </tr>
147
  </tbody>
148
  </table>
149
  <p class="cf7msm-faq" style="display:none;">
150
+ <?php printf( cf7msm_kses( __( '<strong>Warning:</strong> Your form may be at risk of being too large for this plugin. <a href="%s" target="_blank">See here for more information.</a>', 'contact-form-7-multi-step-module' ) ), 'https://webheadcoder.com/too-many-cookies/' ); ?>
151
  </p>
152
  </fieldset>
153
  </div>
156
  <input type="text" name="multistep" class="tag code" readonly="readonly" onfocus="this.select()" />
157
 
158
  <div class="submitbox">
159
+ <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7-multi-step-module' ) ); ?>" />
160
  </div>
161
 
162
  <br class="clear" />
163
 
164
+ <p class="description mail-tag"><label><?php echo esc_html( __( "This field should not be used on the Mail tab.", 'contact-form-7-multi-step-module' ) ); ?></label>
165
  </p>
166
  <?php cf7msm_form_tag_footer_text();?>
167
  </div>
form-tags/module-session.php CHANGED
@@ -116,11 +116,11 @@ function cf7msm_multiform_shortcode_handler( $tag ) {
116
  function cf7msm_add_tag_generator_form_field() {
117
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
118
  $tag_generator = WPCF7_TagGenerator::get_instance();
119
- $tag_generator->add( 'form-field', __( 'form field', 'contact-form-7-multi-step-module' ), 'cf7msm_form_field_tag_pane' );
120
  }
121
  else if ( function_exists( 'wpcf7_add_tag_generator' ) ) {
122
- wpcf7_add_tag_generator( 'form', __( 'Form value', 'wpcf7' ),
123
- 'wpcf7-tg-pane-form', 'wpcf7_tg_pane_form' );
124
  }
125
  }
126
  add_action( 'admin_init', 'cf7msm_add_tag_generator_form_field', 30 );
@@ -135,16 +135,16 @@ function cf7msm_form_field_tag_pane( $contact_form, $args = '' ) {
135
  ?>
136
  <div class="control-box cf7msm-multistep">
137
  <fieldset>
138
- <legend><?php cf7msm_form_tag_header_text( 'Generate a form-tag to show a field from a previous form in a multistep form' ); ?></legend>
139
 
140
  <table class="form-table">
141
  <tbody>
142
  <tr>
143
- <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
144
  <td><input type="text" name="values" class="tg-name oneline" id="tag-generator-panel-name" />
145
  <br>
146
  <label for="tag-generator-panel-name">
147
- <span class="description">The name of the field from a form in a previous step.</span>
148
  </label>
149
  </td>
150
  </tr>
@@ -178,17 +178,17 @@ function wpcf7_tg_pane_form() {
178
  <form action="">
179
 
180
  <table>
181
- <tr><td><?php echo esc_html( __( 'Name of previous form field', 'wpcf7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
182
 
183
  <tr>
184
- <td><code>id</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
185
  <input type="text" name="id" class="idvalue oneline option" /></td>
186
  </tr>
187
  </table>
188
 
189
- <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7' ) ); ?><br /><input type="text" name="form" class="tag" readonly="readonly" onfocus="this.select()" /></div>
190
 
191
- <div class="tg-mail-tag"><?php echo esc_html( __( "Mail fields currently not supported.", 'wpcf7' ) ); ?><br /><span class="arrow">&#11015;</span>&nbsp;<input type="text" readonly="readonly" /></div>
192
  </form>
193
  </div>
194
  <?php
116
  function cf7msm_add_tag_generator_form_field() {
117
  if ( class_exists( 'WPCF7_TagGenerator' ) ) {
118
  $tag_generator = WPCF7_TagGenerator::get_instance();
119
+ $tag_generator->add( 'form-field', esc_html( __( 'form field', 'contact-form-7-multi-step-module' ) ), 'cf7msm_form_field_tag_pane' );
120
  }
121
  else if ( function_exists( 'wpcf7_add_tag_generator' ) ) {
122
+ wpcf7_add_tag_generator( 'form', esc_html( __( 'Form value', 'contact-form-7-multi-step-module' ),
123
+ 'wpcf7-tg-pane-form', 'wpcf7_tg_pane_form' ) );
124
  }
125
  }
126
  add_action( 'admin_init', 'cf7msm_add_tag_generator_form_field', 30 );
135
  ?>
136
  <div class="control-box cf7msm-multistep">
137
  <fieldset>
138
+ <legend><?php cf7msm_form_tag_header_text( esc_html( __( 'Generate a form-tag to show a field from a previous form in a multistep form', 'contact-form-7-multi-step-module' ) ) ); ?></legend>
139
 
140
  <table class="form-table">
141
  <tbody>
142
  <tr>
143
+ <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7-multi-step-module' ) ); ?></label></th>
144
  <td><input type="text" name="values" class="tg-name oneline" id="tag-generator-panel-name" />
145
  <br>
146
  <label for="tag-generator-panel-name">
147
+ <span class="description"><?php echo esc_html( __( 'The name of the field from a form in a previous step.' ) ); ?></span>
148
  </label>
149
  </td>
150
  </tr>
178
  <form action="">
179
 
180
  <table>
181
+ <tr><td><?php echo esc_html( __( 'Name of previous form field', 'contact-form-7-multi-step-module' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
182
 
183
  <tr>
184
+ <td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7-multi-step-module' ) ); ?>)<br />
185
  <input type="text" name="id" class="idvalue oneline option" /></td>
186
  </tr>
187
  </table>
188
 
189
+ <div class="tg-tag"><?php echo esc_html( __( 'Copy this code and paste it into the form left.', 'contact-form-7-multi-step-module' ) ); ?><br /><input type="text" name="form" class="tag" readonly="readonly" onfocus="this.select()" /></div>
190
 
191
+ <div class="tg-mail-tag"><?php echo esc_html( __( 'Mail fields currently not supported.', 'contact-form-7-multi-step-module' ) ); ?><br /><span class="arrow">&#11015;</span>&nbsp;<input type="text" readonly="readonly" /></div>
192
  </form>
193
  </div>
194
  <?php
languages/contact-form-7-multi-step-module.pot CHANGED
@@ -1,135 +1,182 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: contact-form-7-multi-step-module\n"
4
- "POT-Creation-Date: 2016-12-03 12:55+0100\n"
5
- "PO-Revision-Date: 2016-12-03 12:55+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.8\n"
13
- "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-SearchPath-0: .\n"
 
 
 
17
 
18
- #: contact-form-7-multi-step-module.php:226
19
- #: contact-form-7-multi-step-module.php:230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgid "Please fill out the form on the previous page"
21
  msgstr ""
22
 
23
- #: contact-form-7-multi-step-module.php:431
24
  #, php-format
25
  msgid ". For more details, see %s."
26
  msgstr ""
27
 
28
- #: contact-form-7-multi-step-module.php:432
29
- msgid "https://wordpress.org/plugins/contact-form-7-multi-step-module/"
30
  msgstr ""
31
 
32
- #: contact-form-7-multi-step-module.php:432
33
- msgid "the plugin page on WordPress.org"
 
 
 
34
  msgstr ""
35
 
36
- #: form-tags/module-back.php:52
37
  msgid "Previous"
38
  msgstr ""
39
 
40
- #: form-tags/module-back.php:56
41
  msgid "Back"
42
  msgstr ""
43
 
44
- #: form-tags/module-back.php:77
45
  msgid "previous"
46
  msgstr ""
47
 
48
- #: form-tags/module-back.php:81
49
  msgid "Back button"
50
  msgstr ""
51
 
52
- #: form-tags/module-back.php:102 form-tags/module-back.php:155
 
 
 
 
53
  msgid "Label"
54
  msgstr ""
55
 
56
- #: form-tags/module-back.php:110
 
 
 
 
57
  msgid "Id attribute"
58
  msgstr ""
59
 
60
- #: form-tags/module-back.php:115
61
  msgid "Class attribute"
62
  msgstr ""
63
 
64
- #: form-tags/module-back.php:127 form-tags/module-multistep.php:152
65
- #: form-tags/module-session.php:154
66
  msgid "Insert Tag"
67
  msgstr ""
68
 
69
- #: form-tags/module-back.php:132 form-tags/module-multistep.php:157
70
- #: form-tags/module-session.php:159
71
  msgid "This field should not be used on the Mail tab."
72
  msgstr ""
73
 
74
- #: form-tags/module-back.php:147 form-tags/module-back.php:150
75
- #: form-tags/module-back.php:155 form-tags/module-hidden.php:163
76
- #: form-tags/module-hidden.php:168 form-tags/module-session.php:178
77
  msgid "optional"
78
  msgstr ""
79
 
80
- #: form-tags/module-back.php:162 form-tags/module-hidden.php:176
81
- #: form-tags/module-session.php:183
82
  msgid "Copy this code and paste it into the form left."
83
  msgstr ""
84
 
85
- #: form-tags/module-hidden.php:149
86
- msgid "Hidden field"
87
- msgstr ""
88
-
89
- #: form-tags/module-hidden.php:160 form-tags/module-session.php:137
90
- msgid "Name"
91
  msgstr ""
92
 
93
- #: form-tags/module-hidden.php:168
94
- msgid "Default value"
95
  msgstr ""
96
 
97
- #: form-tags/module-hidden.php:171
98
- msgid "Use this text as watermark?"
99
  msgstr ""
100
 
101
- #: form-tags/module-hidden.php:178
102
- msgid "And, put this code into the Mail fields below."
103
  msgstr ""
104
 
105
- #: form-tags/module-multistep.php:40
106
- msgid "multistep"
107
  msgstr ""
108
 
109
- #: form-tags/module-multistep.php:107
110
- msgid "Current Step"
111
  msgstr ""
112
 
113
- #: form-tags/module-multistep.php:118
114
- msgid "Total Steps"
 
115
  msgstr ""
116
 
117
- #: form-tags/module-multistep.php:130
118
- msgid "Next Page URL"
 
 
 
 
119
  msgstr ""
120
 
121
- #: form-tags/module-session.php:113
122
  msgid "form field"
123
  msgstr ""
124
 
125
- #: form-tags/module-session.php:116
126
  msgid "Form value"
127
  msgstr ""
128
 
129
- #: form-tags/module-session.php:175
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  msgid "Name of previous form field"
131
  msgstr ""
132
 
133
- #: form-tags/module-session.php:185
134
  msgid "Mail fields currently not supported."
135
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Contact Form 7 Multi-Step Forms\n"
4
+ "POT-Creation-Date: 2017-12-21 16:43-1000\n"
5
+ "PO-Revision-Date: 2017-12-21 16:43-1000\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.0.5\n"
13
+ "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-SearchPath-0: form-tags/module-back.php\n"
17
+ "X-Poedit-SearchPath-1: form-tags/module-multistep.php\n"
18
+ "X-Poedit-SearchPath-2: form-tags/module-session.php\n"
19
+ "X-Poedit-SearchPath-3: contact-form-7-multi-step-module.php\n"
20
 
21
+ #: contact-form-7-multi-step-module.php:66
22
+ #, php-format
23
+ msgid ""
24
+ "Please update the Contact Form 7 plugin. Contact Form 7 Multi-Step Form "
25
+ "plugin requires Contact Form 7 version %s or above."
26
+ msgstr ""
27
+
28
+ #: contact-form-7-multi-step-module.php:70
29
+ msgid ""
30
+ "The Contact Form 7 is installed, but <strong>you must activate Contact Form "
31
+ "7</strong> below for the Contact Form 7 Multi-Step Form to work."
32
+ msgstr ""
33
+
34
+ #: contact-form-7-multi-step-module.php:72
35
+ #, php-format
36
+ msgid ""
37
+ "The Contact Form 7 plugin must be installed for the Contact Form 7 Multi-"
38
+ "Step Form to work. <a href=\"%s\" class=\"thickbox\" title=\"Contact Form "
39
+ "7\">Install Now.</a>"
40
+ msgstr ""
41
+
42
+ #: contact-form-7-multi-step-module.php:257
43
+ #: contact-form-7-multi-step-module.php:261
44
  msgid "Please fill out the form on the previous page"
45
  msgstr ""
46
 
47
+ #: contact-form-7-multi-step-module.php:468
48
  #, php-format
49
  msgid ". For more details, see %s."
50
  msgstr ""
51
 
52
+ #: contact-form-7-multi-step-module.php:471
53
+ msgid "the plugin page on WordPress.org"
54
  msgstr ""
55
 
56
+ #: contact-form-7-multi-step-module.php:487
57
+ #, php-format
58
+ msgid ""
59
+ "Like the Multi-step addition to CF7? Let me know - <a href=\"%s\"> target="
60
+ "\"_blank\">Donate</a> and <a href=\"%s\" target=\"_blank\">Review</a>."
61
  msgstr ""
62
 
63
+ #: form-tags/module-back.php:58
64
  msgid "Previous"
65
  msgstr ""
66
 
67
+ #: form-tags/module-back.php:62
68
  msgid "Back"
69
  msgstr ""
70
 
71
+ #: form-tags/module-back.php:83
72
  msgid "previous"
73
  msgstr ""
74
 
75
+ #: form-tags/module-back.php:87
76
  msgid "Back button"
77
  msgstr ""
78
 
79
+ #: form-tags/module-back.php:104
80
+ msgid "Generate a form-tag for a previous button for a multistep form"
81
+ msgstr ""
82
+
83
+ #: form-tags/module-back.php:108 form-tags/module-back.php:161
84
  msgid "Label"
85
  msgstr ""
86
 
87
+ #: form-tags/module-back.php:111
88
+ msgid "The label on the button."
89
+ msgstr ""
90
+
91
+ #: form-tags/module-back.php:116
92
  msgid "Id attribute"
93
  msgstr ""
94
 
95
+ #: form-tags/module-back.php:121
96
  msgid "Class attribute"
97
  msgstr ""
98
 
99
+ #: form-tags/module-back.php:133 form-tags/module-multistep.php:159
100
+ #: form-tags/module-session.php:160
101
  msgid "Insert Tag"
102
  msgstr ""
103
 
104
+ #: form-tags/module-back.php:138 form-tags/module-multistep.php:164
105
+ #: form-tags/module-session.php:165
106
  msgid "This field should not be used on the Mail tab."
107
  msgstr ""
108
 
109
+ #: form-tags/module-back.php:153 form-tags/module-back.php:156
110
+ #: form-tags/module-back.php:161 form-tags/module-session.php:184
 
111
  msgid "optional"
112
  msgstr ""
113
 
114
+ #: form-tags/module-back.php:168 form-tags/module-session.php:189
 
115
  msgid "Copy this code and paste it into the form left."
116
  msgstr ""
117
 
118
+ #: form-tags/module-multistep.php:47
119
+ msgid "multistep"
 
 
 
 
120
  msgstr ""
121
 
122
+ #: form-tags/module-multistep.php:114
123
+ msgid "Current Step"
124
  msgstr ""
125
 
126
+ #: form-tags/module-multistep.php:119
127
+ msgid "The current step of this multi-step form."
128
  msgstr ""
129
 
130
+ #: form-tags/module-multistep.php:125
131
+ msgid "Total Steps"
132
  msgstr ""
133
 
134
+ #: form-tags/module-multistep.php:130
135
+ msgid "The total number of steps in your multi-step form."
136
  msgstr ""
137
 
138
+ #: form-tags/module-multistep.php:137
139
+ msgid "Next Page URL"
140
  msgstr ""
141
 
142
+ #: form-tags/module-multistep.php:143
143
+ msgid ""
144
+ "The URL of the page that contains the next form. (Leave blank on last step)"
145
  msgstr ""
146
 
147
+ #: form-tags/module-multistep.php:150
148
+ #, php-format
149
+ msgid ""
150
+ "<strong>Warning:</strong> Your form may be at risk of being too large for "
151
+ "this plugin. <a href=\"%s\" target=\"_blank\">See here for more information."
152
+ "</a>"
153
  msgstr ""
154
 
155
+ #: form-tags/module-session.php:119
156
  msgid "form field"
157
  msgstr ""
158
 
159
+ #: form-tags/module-session.php:122
160
  msgid "Form value"
161
  msgstr ""
162
 
163
+ #: form-tags/module-session.php:138
164
+ msgid ""
165
+ "Generate a form-tag to show a field from a previous form in a multistep form"
166
+ msgstr ""
167
+
168
+ #: form-tags/module-session.php:143
169
+ msgid "Name"
170
+ msgstr ""
171
+
172
+ #: form-tags/module-session.php:147
173
+ msgid "The name of the field from a form in a previous step."
174
+ msgstr ""
175
+
176
+ #: form-tags/module-session.php:181
177
  msgid "Name of previous form field"
178
  msgstr ""
179
 
180
+ #: form-tags/module-session.php:191
181
  msgid "Mail fields currently not supported."
182
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://webheadcoder.com/donate-cf7-multi-step-forms
4
  Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
5
  Requires at least: 4.7
6
  Tested up to: 4.9.1
7
- Stable tag: 2.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,6 +100,9 @@ The `multistep` form tag is a hidden field and tries not to add any spacing to y
100
 
101
  == Changelog ==
102
 
 
 
 
103
  = 2.25 =
104
  **Contact From 7 version 4.8 or above is required for this version**.
105
  fixed incompatible JSON_UNESCAPED_UNICODE for PHP versions < 5.4.
4
  Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
5
  Requires at least: 4.7
6
  Tested up to: 4.9.1
7
+ Stable tag: 2.26
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.26 =
104
+ updated i18n code.
105
+
106
  = 2.25 =
107
  **Contact From 7 version 4.8 or above is required for this version**.
108
  fixed incompatible JSON_UNESCAPED_UNICODE for PHP versions < 5.4.