WP Subscribe - Version 1.2.1

Version Description

  • Provided backward compatibility for CSS
  • Provided backward compatibility for Scoped CSS
  • Remove magnific popup classes from inline form
  • Add loader when submitting form
  • Fixed inline form responsiveness
  • Minify the CSS File
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Subscribe
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Gruntfile.js DELETED
@@ -1,69 +0,0 @@
1
- module.exports = function(grunt) {
2
-
3
- // Project configuration.
4
- grunt.initConfig({
5
- pkg: grunt.file.readJSON('package.json'),
6
-
7
- // Generate POT files.
8
- makepot: {
9
- dist: {
10
- options: {
11
- type: 'wp-plugin',
12
- mainFile: 'wp-subscribe-pro.php',
13
- domainPath: 'languages',
14
- potHeaders: {
15
- 'report-msgid-bugs-to': 'https://community.mythemeshop.com/',
16
- 'language-team': 'MyThemeShop <support-team@mythemeshop.com>'
17
- },
18
- potFilename: 'wp-subscribe-pro.pot',
19
- exclude: [
20
- 'node_modules/.*'
21
- ]
22
- }
23
- }
24
- },
25
-
26
- // Check textdomain errors.
27
- checktextdomain: {
28
- options: {
29
- // Keywords specs wordpress
30
- keywords: [
31
- '__:1,2d',
32
- '_e:1,2d',
33
- '_x:1,2c,3d',
34
- 'esc_html__:1,2d',
35
- 'esc_html_e:1,2d',
36
- 'esc_html_x:1,2c,3d',
37
- 'esc_attr__:1,2d',
38
- 'esc_attr_e:1,2d',
39
- 'esc_attr_x:1,2c,3d',
40
- '_ex:1,2c,3d',
41
- '_n:1,2,4d',
42
- '_nx:1,2,4c,5d',
43
- '_n_noop:1,2,3d',
44
- '_nx_noop:1,2,3c,4d'
45
- ]
46
- },
47
-
48
- plugin: {
49
- //cwd: '/',
50
- src: ['**/*.php', '!node_modules/**'],
51
- expand: true,
52
- options: {
53
- text_domain: ['wp-subscribe']
54
- }
55
- }
56
- }
57
- });
58
-
59
- // Default task(s).
60
- grunt.registerTask('default', [
61
- 'checktextdomain', 'makepot'
62
- ]);
63
-
64
- // Load the plugin that provides the tasks.
65
- grunt.loadNpmTasks( 'grunt-wp-i18n' );
66
-
67
- // Quality Assurance
68
- grunt.loadNpmTasks( 'grunt-checktextdomain' );
69
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/wp-subscribe-form.css CHANGED
@@ -1,31 +1,5 @@
1
- /*
2
- Plugin Name: WP Subscribe Pro
3
- Plugin URI: http://mythemeshop.com/plugins/wp-subscribe-pro/
4
- Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
5
- Author: MyThemeShop
6
- Author URI: http://mythemeshop.com/
7
- */
8
- .wp-subscribe-wrap { padding: 20px; background: #f47555; text-align: center;}
9
- .wp-subscribe-wrap h4.title { font-size: 22px; color: #FFFFFF; line-height: 1; text-transform: uppercase; margin-bottom: 0; }
10
- .wp-subscribe-wrap h4.title span { display: inline-block; font-weight: bold; font-size: 38px; margin-top: 15px; }
11
- .wp-subscribe-wrap p { color: #FFFFFF; margin: 0; }
12
- .wp-subscribe-wrap p.text { margin: 15px 0; opacity: 0.8; }
13
- .wp-subscribe-wrap input { border: none; width: 100%; box-sizing: border-box; padding: 10px 0; margin: 0; box-shadow: none; border-radius: 0; height: 45px; text-indent: 10px; text-align: center;}
14
- .wp-subscribe-wrap .email-field { margin-top: 10px }
15
- .wp-subscribe-wrap input.email-field, .wp-subscribe-wrap input.name-field { color: #FFFFFF; background: #d56144; }
16
- .wp-subscribe-wrap input::-webkit-input-placeholder { color: inherit; opacity: 0.8; }
17
- .wp-subscribe-wrap input:-moz-input-placeholder { color: inherit; opacity: 0.8; }
18
- .wp-subscribe-wrap input::-moz-input-placeholder { color: inherit; opacity: 0.8; }
19
- .wp-subscribe-wrap input::-ms-input-placeholder { color: inherit; opacity: 0.8; }
20
- .wp-subscribe-wrap input:focus::-webkit-input-placeholder {color: transparent !important;}
21
- .wp-subscribe-wrap input:focus::-moz-input-placeholder {color: transparent !important;}
22
- .wp-subscribe-wrap input:focus:-moz-input-placeholder {color: transparent !important;}
23
- .wp-subscribe-wrap input:focus::input-placeholder {color: transparent !important;}
24
- .wp-subscribe-wrap input.submit { background: #FFFFFF; color: #f47555; margin-top: 20px; font-size: 18px; text-transform: uppercase; font-weight: 500; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05); cursor: pointer;}
25
- .wp-subscribe-wrap p.footer-text { margin-top: 10px; font-size: 12px; }
26
- #wp_subscribe_popup .wp-subscribe-wrap h4.title { margin-top: 0 }
27
- .wp-subscribe.loading { position: relative }
28
- .wp-subscribe.loading:after { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.3); }
29
- .wp-subscribe-single .wp-subscribe-wrap {text-align: left; margin: 10px 0; clear: both;}
30
- .wp-subscribe-single .wp-subscribe-wrap input {text-align: left;}
31
- .wp-subscribe-wrap .error, .wp-subscribe-wrap .thanks {margin-top: 10px;}
1
+ /*!
2
+ * Plugin: WP Subscribe Pro
3
+ * Name: wp-subscribe-form.css
4
+ * Written by: MyThemeShop
5
+ */.wp-subscribe-wrap{padding:20px;text-align:center;background:#f47555}.wp-subscribe-wrap h4.title{font-size:22px;line-height:1;margin-bottom:0;text-transform:uppercase;color:#fff}.wp-subscribe-wrap h4.title span{font-size:38px;font-weight:bold;display:inline-block;margin-top:15px}#wp_subscribe_popup .wp-subscribe-wrap h4.title{margin-top:0}.wp-subscribe-wrap p{margin:0;color:#fff}.wp-subscribe-wrap p.text{margin:15px 0;opacity:.8}.wp-subscribe-wrap p.footer-text{font-size:12px;margin-top:10px}.wp-subscribe-wrap input{box-sizing:border-box;width:100%;height:45px;margin:0;padding:10px 0;text-align:center;text-indent:10px;border:none;border-radius:0;box-shadow:none}.wp-subscribe-wrap input::-webkit-input-placeholder{opacity:.8;color:inherit}.wp-subscribe-wrap input:-moz-placeholder{opacity:.8;color:inherit}.wp-subscribe-wrap input::-moz-placeholder{opacity:.8;color:inherit}.wp-subscribe-wrap input:-ms-input-placeholder{opacity:.8;color:inherit}.wp-subscribe-wrap input:focus::-webkit-input-placeholder{color:transparent !important}.wp-subscribe-wrap input:focus:-moz-placeholder{color:transparent !important}.wp-subscribe-wrap input:focus::-moz-placeholder{color:transparent !important}.wp-subscribe-wrap input:focus:-ms-input-placeholder{color:transparent !important}.wp-subscribe-wrap .email-field{margin-top:10px}.wp-subscribe-wrap input.email-field,.wp-subscribe-wrap input.name-field{color:#fff;background:#d56144}.wp-subscribe-wrap input.submit{font-size:18px;font-weight:500;margin-top:20px;cursor:pointer;text-transform:uppercase;color:#f47555;background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}.wp-subscribe-single .wp-subscribe-wrap{clear:both;margin:10px 0;text-align:left}.wp-subscribe-single .wp-subscribe-wrap input{text-align:left}.wp-subscribe-wrap .error,.wp-subscribe-wrap .thanks{margin-top:10px}.wp-subscribe-wrap .wp-subscribe-loader{display:none;padding:1em;text-align:center;vertical-align:top}.wp-subscribe-wrap.loading .wp-subscribe-form{display:none}.wp-subscribe-wrap.loading .wp-subscribe-loader{display:block}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/wp-subscribe-form.js CHANGED
@@ -19,6 +19,9 @@ jQuery(document).ready(function($) {
19
  $widget = form.closest('.wp-subscribe').addClass('loading'),
20
  fields = {};
21
 
 
 
 
22
  if ( form.hasClass('wp-subscribe-feedburner') ) {
23
 
24
  var original = window.open;
@@ -39,6 +42,7 @@ jQuery(document).ready(function($) {
39
  clearInterval( interval );
40
 
41
  form.hide();
 
42
  $widget.find('.error').hide();
43
  $widget.find('.thanks').show();
44
 
19
  $widget = form.closest('.wp-subscribe').addClass('loading'),
20
  fields = {};
21
 
22
+ $widget.find('.error').hide();
23
+ $widget.find('.thanks').hide();
24
+
25
  if ( form.hasClass('wp-subscribe-feedburner') ) {
26
 
27
  var original = window.open;
42
  clearInterval( interval );
43
 
44
  form.hide();
45
+ $widget.removeClass('loading');
46
  $widget.find('.error').hide();
47
  $widget.find('.thanks').show();
48
 
includes/wps-helpers.php CHANGED
@@ -67,6 +67,14 @@ function wps_the_form( $options = null ) {
67
 
68
  <?php endif; ?>
69
 
 
 
 
 
 
 
 
 
70
  <?php if( !empty( $options['success_message'] ) ) {
71
  printf( '<p class="thanks">%s</p>', wp_kses_post( $options['success_message'] ) );
72
  } ?>
@@ -99,7 +107,7 @@ function wps_the_form( $options = null ) {
99
  function wps_the_form_css( $id, $options, $type = 'subscribe_form' ) {
100
 
101
  $css = array();
102
- $id = "\n.wp-subscribe-{$id} ";
103
 
104
  if ( 'subscribe_form' == $type ) {
105
  $css[] = sprintf( '{background: %s}', $options['background_color'] );
67
 
68
  <?php endif; ?>
69
 
70
+ <div class="wp-subscribe-loader">
71
+ <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="40px" height="40px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
72
+ <path fill="<?php echo $options['title_color'] ?>" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
73
+ <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"/>
74
+ </path>
75
+ </svg>
76
+ </div>
77
+
78
  <?php if( !empty( $options['success_message'] ) ) {
79
  printf( '<p class="thanks">%s</p>', wp_kses_post( $options['success_message'] ) );
80
  } ?>
107
  function wps_the_form_css( $id, $options, $type = 'subscribe_form' ) {
108
 
109
  $css = array();
110
+ $id = "\n#wp-subscribe.wp-subscribe-{$id} ";
111
 
112
  if ( 'subscribe_form' == $type ) {
113
  $css[] = sprintf( '{background: %s}', $options['background_color'] );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mythemeshop
3
  Creator's website link: http://mythemeshop.com/plugins/wp-subscribe/
4
  Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner,
5
  Requires at least: 4.0
6
- Tested up to: 4.7.3
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,6 +82,14 @@ Please disable all plugins and check if plugin is working properly. Then you can
82
 
83
  == Changelog ==
84
 
 
 
 
 
 
 
 
 
85
  = 1.2.0 =
86
  * Whole plugin is re-written in OOP
87
  * Huge performance Improvements
3
  Creator's website link: http://mythemeshop.com/plugins/wp-subscribe/
4
  Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner,
5
  Requires at least: 4.0
6
+ Tested up to: 4.8
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
 
83
  == Changelog ==
84
 
85
+ = 1.2.1 =
86
+ * Provided backward compatibility for CSS
87
+ * Provided backward compatibility for Scoped CSS
88
+ * Remove magnific popup classes from inline form
89
+ * Add loader when submitting form
90
+ * Fixed inline form responsiveness
91
+ * Minify the CSS File
92
+
93
  = 1.2.0 =
94
  * Whole plugin is re-written in OOP
95
  * Huge performance Improvements
wp-subscribe.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Subscribe
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
5
  * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
6
- * Version: 1.2.0
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-subscribe
@@ -27,7 +27,7 @@ if( ! class_exists('MTS_WP_Subscribe') ) :
27
  * Plugin Version
28
  * @var string
29
  */
30
- private $version = '1.2.0';
31
 
32
  /**
33
  * Hold an instance of MTS_WP_Subscribe class
3
  * Plugin Name: WP Subscribe
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
5
  * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
6
+ * Version: 1.2.1
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-subscribe
27
  * Plugin Version
28
  * @var string
29
  */
30
+ private $version = '1.2.1';
31
 
32
  /**
33
  * Hold an instance of MTS_WP_Subscribe class