Official MailerLite Sign Up Forms - Version 1.1.2

Version Description

  • just number update
Download this release

Release Info

Developer mailerlite
Plugin Icon 128x128 Official MailerLite Sign Up Forms
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

mailerlite.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability
6
  * to embed MailerLite webforms and create custom ones just with few clicks.
7
- * Version: 1.0.18
8
  * Author: MailerGroup
9
  * Author URI: https://www.mailerlite.com
10
  * License: GPLv2 or later
@@ -28,7 +28,7 @@
28
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
30
 
31
- define('MAILERLITE_VERSION', '1.1.1');
32
 
33
  define('MAILERLITE_PHP_VERSION', '5.0.1');
34
  define('MAILERLITE_WP_VERSION', '3.0.1');
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability
6
  * to embed MailerLite webforms and create custom ones just with few clicks.
7
+ * Version: 1.1.2
8
  * Author: MailerGroup
9
  * Author URI: https://www.mailerlite.com
10
  * License: GPLv2 or later
28
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
30
 
31
+ define('MAILERLITE_VERSION', '1.1.2');
32
 
33
  define('MAILERLITE_PHP_VERSION', '5.0.1');
34
  define('MAILERLITE_WP_VERSION', '3.0.1');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailerlite.com/
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.1
7
- Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,6 +127,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
127
 
128
  == Changelog ==
129
 
 
 
130
  = 1.1.1 =
131
  * updated readme and version constants
132
  = 1.1 =
@@ -172,6 +174,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
172
 
173
  == Upgrade Notice ==
174
 
 
 
175
  = 1.1.1 =
176
  * updated readme and version constants
177
  = 1.1 =
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.1
7
+ Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.1.2 =
131
+ * just number update
132
  = 1.1.1 =
133
  * updated readme and version constants
134
  = 1.1 =
174
 
175
  == Upgrade Notice ==
176
 
177
+ = 1.1.2 =
178
+ * just number update
179
  = 1.1.1 =
180
  * updated readme and version constants
181
  = 1.1 =
trunk/include/templates/forms/custom_form.php CHANGED
@@ -37,28 +37,31 @@
37
  <? endif; ?>
38
 
39
  <script type="text/javascript">
 
 
40
 
41
- jQuery(document).ready(function () {
42
- var form_container = jQuery("#mailerlite-form_<?php echo $form_id; ?>[data-temp-id=<?php echo $unique_id; ?>] form");
43
- form_container.submit(function (e) {
44
- e.preventDefault();
45
- }).validate({
46
- submitHandler: function (form) {
47
 
48
- jQuery(this.submitButton).prop('disabled', true);
49
 
50
- form_container.find('.mailerlite-subscribe-button-container').fadeOut(function () {
51
- form_container.find('.mailerlite-form-loader').fadeIn()
52
- });
53
 
54
- var data = jQuery(form).serialize();
55
 
56
- jQuery.post('<?php echo admin_url( 'admin-ajax.php' ); ?>', data, function (response) {
57
- form_container.find('.mailerlite-form-inputs').fadeOut(function () {
58
- form_container.find('.mailerlite-form-response').fadeIn()
59
- });
60
- });
61
- }
 
62
  });
63
- });
64
  </script>
37
  <? endif; ?>
38
 
39
  <script type="text/javascript">
40
+ (function() {
41
+ var jQuery = jQueryWP || jQuery;
42
 
43
+ jQuery(document).ready(function () {
44
+ var form_container = jQuery("#mailerlite-form_<?php echo $form_id; ?>[data-temp-id=<?php echo $unique_id; ?>] form");
45
+ form_container.submit(function (e) {
46
+ e.preventDefault();
47
+ }).validate({
48
+ submitHandler: function (form) {
49
 
50
+ jQuery(this.submitButton).prop('disabled', true);
51
 
52
+ form_container.find('.mailerlite-subscribe-button-container').fadeOut(function () {
53
+ form_container.find('.mailerlite-form-loader').fadeIn()
54
+ });
55
 
56
+ var data = jQuery(form).serialize();
57
 
58
+ jQuery.post('<?php echo admin_url( 'admin-ajax.php' ); ?>', data, function (response) {
59
+ form_container.find('.mailerlite-form-inputs').fadeOut(function () {
60
+ form_container.find('.mailerlite-form-response').fadeIn()
61
+ });
62
+ });
63
+ }
64
+ });
65
  });
66
+ })();
67
  </script>
trunk/mailerlite.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability
6
  * to embed MailerLite webforms and create custom ones just with few clicks.
7
- * Version: 1.1.1
8
  * Author: MailerGroup
9
  * Author URI: https://www.mailerlite.com
10
  * License: GPLv2 or later
@@ -28,7 +28,7 @@
28
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
30
 
31
- define('MAILERLITE_VERSION', '1.1.1');
32
 
33
  define('MAILERLITE_PHP_VERSION', '5.0.1');
34
  define('MAILERLITE_WP_VERSION', '3.0.1');
@@ -125,4 +125,4 @@ require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-widget.php');
125
  require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-shortcode.php');
126
 
127
  add_action('init', array('MailerLite_Shortcode', 'init'));
128
- add_action('init', array('MailerLite_Form', 'init'));
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability
6
  * to embed MailerLite webforms and create custom ones just with few clicks.
7
+ * Version: 1.1.2
8
  * Author: MailerGroup
9
  * Author URI: https://www.mailerlite.com
10
  * License: GPLv2 or later
28
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
30
 
31
+ define('MAILERLITE_VERSION', '1.1.2');
32
 
33
  define('MAILERLITE_PHP_VERSION', '5.0.1');
34
  define('MAILERLITE_WP_VERSION', '3.0.1');
125
  require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-shortcode.php');
126
 
127
  add_action('init', array('MailerLite_Shortcode', 'init'));
128
+ add_action('init', array('MailerLite_Form', 'init'));
trunk/readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailerlite.com/
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.1
7
- Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,6 +127,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
127
 
128
  == Changelog ==
129
 
 
 
130
  = 1.1.1 =
131
  * updated readme and version constants
132
  = 1.1 =
@@ -172,6 +174,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
172
 
173
  == Upgrade Notice ==
174
 
 
 
175
  = 1.1.1 =
176
  * updated readme and version constants
177
  = 1.1 =
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.1
7
+ Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.1.2 =
131
+ * wordpress issue bug fix
132
  = 1.1.1 =
133
  * updated readme and version constants
134
  = 1.1 =
174
 
175
  == Upgrade Notice ==
176
 
177
+ = 1.1.2 =
178
+ * wordpress issue bug fix
179
  = 1.1.1 =
180
  * updated readme and version constants
181
  = 1.1 =