Version Description
- Improved form accessibility
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Subscribe |
Version | 1.2.12 |
Comparing to | |
See all releases |
Code changes from version 1.2.11 to 1.2.12
- Gruntfile.js +0 -0
- assets/css/wp-subscribe-form.css +1 -1
- assets/css/wp-subscribe-options.css +0 -0
- assets/js/jquery.cookie.js +0 -0
- assets/js/jquery.exitIntent.js +0 -0
- assets/js/magnificpopup.js +0 -0
- assets/js/wp-subscribe-admin.js +0 -0
- assets/js/wp-subscribe-form.js +0 -0
- assets/js/wp-subscribe-options.js +0 -0
- includes/class-wps-base.php +0 -0
- includes/subscription/class-wps-aweber.php +0 -0
- includes/subscription/class-wps-base.php +0 -0
- includes/subscription/class-wps-feedburner.php +0 -0
- includes/subscription/class-wps-mailchimp.php +0 -0
- includes/subscription/libs/aweber_api/aweber.php +0 -0
- includes/subscription/libs/aweber_api/aweber_api.php +0 -0
- includes/subscription/libs/aweber_api/aweber_collection.php +0 -0
- includes/subscription/libs/aweber_api/aweber_entry.php +0 -0
- includes/subscription/libs/aweber_api/aweber_entry_data_array.php +0 -0
- includes/subscription/libs/aweber_api/aweber_response.php +0 -0
- includes/subscription/libs/aweber_api/curl_object.php +0 -0
- includes/subscription/libs/aweber_api/curl_response.php +0 -0
- includes/subscription/libs/aweber_api/exceptions.php +0 -0
- includes/subscription/libs/aweber_api/oauth_adapter.php +0 -0
- includes/subscription/libs/aweber_api/oauth_application.php +0 -0
- includes/subscription/libs/mailchimp.php +0 -0
- includes/wps-functions-options.php +0 -0
- includes/wps-helpers.php +22 -21
- includes/wps-widget.php +0 -0
- languages/wp-subscribe.mo +0 -0
- languages/wp-subscribe.po +0 -0
- languages/wp-subscribe.pot +0 -0
- package.json +0 -0
- readme.txt +5 -2
- wp-subscribe.php +3 -3
Gruntfile.js
CHANGED
File without changes
|
assets/css/wp-subscribe-form.css
CHANGED
@@ -2,4 +2,4 @@
|
|
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 input.consent-field{width:17px;height:17px;margin-top:2px;margin-right:6px;cursor:pointer}.wp-subscribe-wrap .wps-consent-wrapper{margin-top:20px;text-align:left;display:block}.wp-subscribe-wrap .wps-consent-wrapper label{color:#fff;opacity:0.8;font-weight:normal}.wp-subscribe-wrap .wps-consent-wrapper label input{float:left;margin-bottom:5px}.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,.thanks,.error{display:none}.wp-subscribe-wrap.loading .wp-subscribe-loader{display:block}
|
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{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:45px;margin:0;padding:10px 0;text-align:center;text-indent:10px;border:none;border-radius:0;-webkit-box-shadow:none;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 input.consent-field{width:17px;height:17px;margin-top:2px;margin-right:6px;cursor:pointer}.wp-subscribe-wrap .wps-consent-wrapper{margin-top:20px;text-align:left;display:block}.wp-subscribe-wrap .wps-consent-wrapper label{color:#fff;opacity:0.8;font-weight:normal}.wp-subscribe-wrap .wps-consent-wrapper label input{float:left;margin-bottom:5px}.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;line-height:1;margin-top:20px;cursor:pointer;text-transform:uppercase;color:#f47555;background:#fff;-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.05);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,.thanks,.error{display:none}.wp-subscribe-wrap.loading .wp-subscribe-loader{display:block}
|
assets/css/wp-subscribe-options.css
CHANGED
File without changes
|
assets/js/jquery.cookie.js
CHANGED
File without changes
|
assets/js/jquery.exitIntent.js
CHANGED
File without changes
|
assets/js/magnificpopup.js
CHANGED
File without changes
|
assets/js/wp-subscribe-admin.js
CHANGED
File without changes
|
assets/js/wp-subscribe-form.js
CHANGED
File without changes
|
assets/js/wp-subscribe-options.js
CHANGED
File without changes
|
includes/class-wps-base.php
CHANGED
File without changes
|
includes/subscription/class-wps-aweber.php
CHANGED
File without changes
|
includes/subscription/class-wps-base.php
CHANGED
File without changes
|
includes/subscription/class-wps-feedburner.php
CHANGED
File without changes
|
includes/subscription/class-wps-mailchimp.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber_api.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber_collection.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber_entry.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber_entry_data_array.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/aweber_response.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/curl_object.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/curl_response.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/exceptions.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/oauth_adapter.php
CHANGED
File without changes
|
includes/subscription/libs/aweber_api/oauth_application.php
CHANGED
File without changes
|
includes/subscription/libs/mailchimp.php
CHANGED
File without changes
|
includes/wps-functions-options.php
CHANGED
File without changes
|
includes/wps-helpers.php
CHANGED
@@ -41,34 +41,35 @@ function wps_the_form( $options = null ) {
|
|
41 |
|
42 |
<p class="text"><?php echo wp_kses_post( $options['text'] ) ?></p>
|
43 |
|
44 |
-
<?php
|
|
|
45 |
$service->the_form( $wp_subscribe_forms, $options );
|
46 |
-
else:
|
|
|
|
|
47 |
|
48 |
-
|
|
|
|
|
49 |
|
50 |
-
|
51 |
-
<input class="regular-text name-field" type="text" name="name" placeholder="<?php echo esc_attr( $options['name_placeholder'] ) ?>" required>
|
52 |
-
<?php endif; ?>
|
53 |
|
54 |
-
|
55 |
|
56 |
-
|
57 |
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
|
61 |
-
<?php if( !empty( $options['consent_text'] ) ) : ?>
|
62 |
-
<div class="wps-consent-wrapper">
|
63 |
-
<label for="consent-field">
|
64 |
-
<input class="consent-field" id="consent-field" type="checkbox" name="consent" required>
|
65 |
-
<?php _e( $options['consent_text'] ) ?>
|
66 |
-
</label>
|
67 |
-
</div>
|
68 |
-
<?php endif; ?>
|
69 |
-
<input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ) ?>">
|
70 |
-
|
71 |
-
</form>
|
72 |
|
73 |
<?php endif; ?>
|
74 |
|
41 |
|
42 |
<p class="text"><?php echo wp_kses_post( $options['text'] ) ?></p>
|
43 |
|
44 |
+
<?php
|
45 |
+
if ( method_exists( $service, 'the_form' ) ) :
|
46 |
$service->the_form( $wp_subscribe_forms, $options );
|
47 |
+
else :
|
48 |
+
?>
|
49 |
+
<form action="<?php echo esc_url( $current_url ); ?>" method="post" class="wp-subscribe-form wp-subscribe-<?php echo esc_attr( $options['service'] ); ?>" id="wp-subscribe-form-<?php echo esc_attr( $wp_subscribe_forms ); ?>">
|
50 |
|
51 |
+
<?php if ( ! empty( $options['include_name_field'] ) ) : ?>
|
52 |
+
<input class="regular-text name-field" type="text" name="name" placeholder="<?php echo esc_attr( $options['name_placeholder'] ); ?>" title="<?php echo esc_attr( $options['name_placeholder'] ); ?>" required>
|
53 |
+
<?php endif; ?>
|
54 |
|
55 |
+
<input class="regular-text email-field" type="email" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ); ?>" title="<?php echo esc_attr( $options['email_placeholder'] ); ?>" required>
|
|
|
|
|
56 |
|
57 |
+
<input type="hidden" name="form_type" value="<?php echo esc_attr( $options['form_type'] ); ?>">
|
58 |
|
59 |
+
<input type="hidden" name="service" value="<?php echo esc_attr( $options['service'] ); ?>">
|
60 |
|
61 |
+
<input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? esc_attr( $options['widget_id'] ) : '0'; ?>">
|
62 |
+
<?php if ( ! empty( $options['consent_text'] ) ) : ?>
|
63 |
+
<div class="wps-consent-wrapper">
|
64 |
+
<label for="consent-field">
|
65 |
+
<input class="consent-field" id="consent-field" type="checkbox" name="consent" required>
|
66 |
+
<?php _e( $options['consent_text'] ); ?>
|
67 |
+
</label>
|
68 |
+
</div>
|
69 |
+
<?php endif; ?>
|
70 |
+
<input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ); ?>">
|
71 |
|
72 |
+
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
<?php endif; ?>
|
75 |
|
includes/wps-widget.php
CHANGED
File without changes
|
languages/wp-subscribe.mo
CHANGED
File without changes
|
languages/wp-subscribe.po
CHANGED
File without changes
|
languages/wp-subscribe.pot
CHANGED
File without changes
|
package.json
CHANGED
File without changes
|
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: 5.0.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -82,6 +82,9 @@ Please disable all plugins and check if plugin is working properly. Then you can
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
85 |
= 1.2.11 =
|
86 |
* Added validation for name and email fields
|
87 |
|
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: 5.0.2
|
7 |
+
Stable tag: 1.2.12
|
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.12 =
|
86 |
+
* Improved form accessibility
|
87 |
+
|
88 |
= 1.2.11 =
|
89 |
* Added validation for name and email fields
|
90 |
|
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.
|
7 |
* Author: MyThemeShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
* Text Domain: wp-subscribe
|
@@ -194,7 +194,7 @@ if( ! class_exists('MTS_WP_Subscribe') ) :
|
|
194 |
load_textdomain( 'wp-subscribe', WP_LANG_DIR . '/wp-subscribe/wp-subscribe-' . $locale . '.mo' );
|
195 |
load_plugin_textdomain( 'wp-subscribe', false, $this->plugin_dir() . '/languages' );
|
196 |
}
|
197 |
-
|
198 |
public function connect_aweber() {
|
199 |
|
200 |
// check for data
|
@@ -375,4 +375,4 @@ if( ! class_exists('MTS_WP_Subscribe') ) :
|
|
375 |
}
|
376 |
wps(); // Init it
|
377 |
|
378 |
-
endif;
|
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.12
|
7 |
* Author: MyThemeShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
* Text Domain: wp-subscribe
|
194 |
load_textdomain( 'wp-subscribe', WP_LANG_DIR . '/wp-subscribe/wp-subscribe-' . $locale . '.mo' );
|
195 |
load_plugin_textdomain( 'wp-subscribe', false, $this->plugin_dir() . '/languages' );
|
196 |
}
|
197 |
+
|
198 |
public function connect_aweber() {
|
199 |
|
200 |
// check for data
|
375 |
}
|
376 |
wps(); // Init it
|
377 |
|
378 |
+
endif;
|