Changeset 2717363
- Timestamp:
- 05/03/2022 02:13:18 AM (4 years ago)
- Location:
- wp-subscribe
- Files:
-
- 10 added
- 29 edited
- 1 copied
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
tags/1.2.13 (copied) (copied from wp-subscribe/trunk)
-
tags/1.2.13/.csscomb.json (added)
-
tags/1.2.13/.gitattributes (added)
-
tags/1.2.13/.jshintrc (added)
-
tags/1.2.13/assets/css/wp-subscribe-form.css (modified) (1 diff)
-
tags/1.2.13/assets/js/wp-subscribe-admin.js (modified) (1 diff)
-
tags/1.2.13/includes/subscription/class-wps-aweber.php (modified) (3 diffs)
-
tags/1.2.13/includes/subscription/class-wps-base.php (modified) (3 diffs)
-
tags/1.2.13/includes/subscription/class-wps-feedburner.php (modified) (2 diffs)
-
tags/1.2.13/includes/subscription/class-wps-mailchimp.php (modified) (1 diff)
-
tags/1.2.13/includes/wps-functions-options.php (modified) (2 diffs)
-
tags/1.2.13/includes/wps-helpers.php (modified) (4 diffs)
-
tags/1.2.13/includes/wps-widget.php (modified) (22 diffs)
-
tags/1.2.13/languages/wp-subscribe.mo (added)
-
tags/1.2.13/languages/wp-subscribe.po (added)
-
tags/1.2.13/languages/wp-subscribe.pot (modified) (2 diffs)
-
tags/1.2.13/readme.txt (modified) (2 diffs)
-
tags/1.2.13/wp-subscribe.php (modified) (5 diffs)
-
trunk/.csscomb.json (added)
-
trunk/.gitattributes (added)
-
trunk/.jshintrc (added)
-
trunk/assets/css/wp-subscribe-form.css (modified) (1 diff)
-
trunk/assets/js/wp-subscribe-admin.js (modified) (1 diff)
-
trunk/includes/subscription/class-wps-aweber.php (modified) (3 diffs)
-
trunk/includes/subscription/class-wps-base.php (modified) (3 diffs)
-
trunk/includes/subscription/class-wps-feedburner.php (modified) (2 diffs)
-
trunk/includes/subscription/class-wps-mailchimp.php (modified) (1 diff)
-
trunk/includes/wps-functions-options.php (modified) (2 diffs)
-
trunk/includes/wps-helpers.php (modified) (4 diffs)
-
trunk/includes/wps-widget.php (modified) (22 diffs)
-
trunk/languages/wp-subscribe.mo (added)
-
trunk/languages/wp-subscribe.po (added)
-
trunk/languages/wp-subscribe.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-subscribe.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-subscribe/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-subscribe/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-subscribe/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-subscribe/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-subscribe/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-subscribe/tags/1.2.13/assets/css/wp-subscribe-form.css
r1715462 r2717363 3 3 * Name: wp-subscribe-form.css 4 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,.thanks,.error{display:none}.wp-subscribe-wrap.loading .wp-subscribe-loader{display:block}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} -
wp-subscribe/tags/1.2.13/assets/js/wp-subscribe-admin.js
r1739908 r2717363 196 196 }); 197 197 198 jQuery(document).on('click', '.wpsubscribe-dismiss-notice', function(e){ 199 e.preventDefault(); 200 jQuery(this).parent().remove(); 201 jQuery.ajax({ 202 type: "POST", 203 url: ajaxurl, 204 data: { 205 action: 'mts_dismiss_wpsubscribe_notice', 206 dismiss: jQuery(this).data('ignore') 207 } 208 }); 209 return false; 210 }); 211 198 212 }( jQuery ) ); -
wp-subscribe/tags/1.2.13/includes/subscription/class-wps-aweber.php
r1715462 r2717363 3 3 * Aweber Subscription 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 5 10 class WPS_Subscription_Aweber extends WPS_Subscription_Base { 6 11 … … 218 223 <br /> 219 224 <ul> 220 <li><?php printf( wp_kses_post( __( '<span>1.</span> <a href="%s" target="_blank">Click here</a> <span>to open the authorization page and log in.</span>', 'content-locker' ) ), 'https://auth.aweber.com/1.0/oauth/authorize_app/1afc783e' ) ?></li> 221 <li><?php echo wp_kses_post( __( '<span>2.</span> Copy and paste the authorization code in the field below.', 'content-locker' ) ) ?></li> 225 <li> 226 <?php 227 // Translators: %1$s is "1." and %2$s is is the URL to the Aweber authorization page. 228 printf( wp_kses_post( __( '%1$s <a href="%2$s" target="_blank">Click here</a> <span>to open the authorization page and log in.</span>', 'content-locker' ) ), '<span>1.</span>', 'https://auth.aweber.com/1.0/oauth/authorize_app/1afc783e' ); 229 ?> 230 </li> 231 <li> 232 <?php 233 // Translators: %s is "2.". 234 printf( wp_kses_post( __( '%s Copy and paste the authorization code in the field below.', 'content-locker' ) ), '<span>2.</span>' ); 235 ?> 236 </li> 222 237 </ul> 223 238 … … 228 243 <div class="alert alert-hint mb30 <?php echo empty( $instance['aweber_access_key'] ) ? ' hidden' : '' ?>"> 229 244 <p> 230 <strong><?php _e( 'Your Aweber Account is connected.', 'content-locker' ) ?></strong>245 <strong><?php esc_html_e( 'Your Aweber Account is connected.', 'content-locker' ) ?></strong> 231 246 <?php echo wp_kses_post( __( '<a href="#" class="aweber_disconnect">Click here</a> <span>to disconnect.</span>', 'content-locker' ) ) ?> 232 247 </p> -
wp-subscribe/tags/1.2.13/includes/subscription/class-wps-base.php
r1715462 r2717363 3 3 * A class for subscription services 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 5 10 abstract class WPS_Subscription_Base { 6 11 … … 125 130 126 131 if( !empty( $this->options['include_name_field'] ) ) { 127 printf( '<input class="regular-text name-field" type="text" name="%s" placeholder="%s" >', esc_attr( $name ), esc_attr( $this->options['name_placeholder'] ) );132 printf( '<input class="regular-text name-field" type="text" name="%s" placeholder="%s" required>', esc_attr( $name ), esc_attr( $this->options['name_placeholder'] ) ); 128 133 } 129 134 } … … 131 136 public function the_email_field( $name ) { 132 137 133 printf( '<input class="regular-text email-field" type=" text" name="%s" placeholder="%s">', esc_attr( $name ), esc_attr( $this->options['email_placeholder'] ) );138 printf( '<input class="regular-text email-field" type="email" name="%s" placeholder="%s" required>', esc_attr( $name ), esc_attr( $this->options['email_placeholder'] ) ); 134 139 } 135 140 -
wp-subscribe/tags/1.2.13/includes/subscription/class-wps-feedburner.php
r1715462 r2717363 4 4 */ 5 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 6 10 class WPS_Subscription_FeedBurner extends WPS_Subscription_Base { 7 11 8 public function the_form( $id, $options ) {12 public function the_form( $id, $options ) { 9 13 ?> 10 14 11 <form action="https://feedburner.google.com/fb/a/mailverify?uri=<?php echo $options['feedburner_id'] ?>" method="post" class="wp-subscribe-form wp-subscribe-feedburner" id="wp-subscribe-form-<?php echo $id?>" target="popupwindow">15 <form action="https://feedburner.google.com/fb/a/mailverify?uri=<?php echo esc_attr( $options['feedburner_id'] ); ?>" method="post" class="wp-subscribe-form wp-subscribe-feedburner" id="wp-subscribe-form-<?php echo esc_attr( $id ); ?>" target="popupwindow"> 12 16 13 <input class="regular-text email-field" type=" text" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>">17 <input class="regular-text email-field" type="email" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>" required> 14 18 15 <input type="hidden" name="uri" value="<?php echo $options['feedburner_id']?>">19 <input type="hidden" name="uri" value="<?php echo esc_attr( $options['feedburner_id'] ); ?>"> 16 20 17 21 <input type="hidden" name="loc" value="en_US"> 18 22 19 <input type="hidden" name="form_type" value="<?php echo $options['form_type']?>">23 <input type="hidden" name="form_type" value="<?php echo esc_attr( $options['form_type'] ); ?>"> 20 24 21 <input type="hidden" name="service" value="<?php echo $options['service']?>">25 <input type="hidden" name="service" value="<?php echo esc_attr( $options['service'] ); ?>"> 22 26 23 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? $options['widget_id'] : '0'; ?>"> 24 27 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? esc_attr( $options['widget_id'] ) : '0'; ?>"> 28 <?php if( ! empty( $options['consent_text'] ) ) : ?> 29 <div class="wps-consent-wrapper"> 30 <label for="consent-field"> 31 <input class="consent-field" id="consent-field" type="checkbox" name="consent" required /> 32 <?php echo wp_kses_post( $options['consent_text'] ); ?> 33 </label> 34 </div> 35 <?php endif; ?> 25 36 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ) ?>"> 26 37 … … 37 48 'name' => 'feedburner_id', 38 49 'type' => 'text', 39 'title' => esc_html__( 'Feedburner ID', 'wp-subscribe' ),50 'title' => __( 'Feedburner ID', 'wp-subscribe' ), 40 51 ) 41 52 ); -
wp-subscribe/tags/1.2.13/includes/subscription/class-wps-mailchimp.php
r1715462 r2717363 3 3 * MailChimp Subscription 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 5 9 6 10 class WPS_Subscription_MailChimp extends WPS_Subscription_Base { -
wp-subscribe/tags/1.2.13/includes/wps-functions-options.php
r1715462 r2717363 7 7 * Get mailing services 8 8 * 9 * @use filter wp_subscribe_mailing_services9 * @use filter wp_subscribe_mailing_services 10 10 * @return array 11 11 */ … … 14 14 $services = array( 15 15 16 'aweber' => array(17 'title' => esc_html__( 'Aweber', 'wp-subscribe' ),18 'description' => esc_html__( 'Adds subscribers to your Aweber account.', 'wp-subscribe' ),19 'class' => 'WPS_Subscription_Aweber'20 ),16 'aweber' => array( 17 'title' => __( 'Aweber', 'wp-subscribe' ), 18 'description' => __( 'Adds subscribers to your Aweber account.', 'wp-subscribe' ), 19 'class' => 'WPS_Subscription_Aweber' 20 ), 21 21 22 22 'feedburner' => array( 23 'title' => esc_html__( 'FeedBurner', 'wp-subscribe' ),24 'description' => esc_html__( 'Adds subscribers to your FeedBurner account.', 'wp-subscribe' ),25 'class' => 'WPS_Subscription_FeedBurner'26 ),23 'title' => __( 'FeedBurner', 'wp-subscribe' ), 24 'description' => __( 'Adds subscribers to your FeedBurner account.', 'wp-subscribe' ), 25 'class' => 'WPS_Subscription_FeedBurner' 26 ), 27 27 28 28 'mailchimp' => array( 29 'title' => esc_html__( 'MailChimp', 'wp-subscribe' ),30 'description' => esc_html__( 'Adds subscribers to your MailChimp account.', 'wp-subscribe' ),29 'title' => __( 'MailChimp', 'wp-subscribe' ), 30 'description' => __( 'Adds subscribers to your MailChimp account.', 'wp-subscribe' ), 31 31 'class' => 'WPS_Subscription_MailChimp' 32 )32 ) 33 33 ); 34 34 -
wp-subscribe/tags/1.2.13/includes/wps-helpers.php
r1823647 r2717363 31 31 ?> 32 32 <?php if( isset( $options['before_widget'] ) ) : ?> 33 <?php echo $options['before_widget']?>33 <?php echo wp_kses_post( $options['before_widget'] ); ?> 34 34 <?php else: ?> 35 35 <div class="wp-subscribe-popup-form-wrapper"> 36 36 <?php endif; ?> 37 37 38 <div id="wp-subscribe" class="wp-subscribe-wrap wp-subscribe wp-subscribe-<?php echo $wp_subscribe_forms?>" data-thanks_page="<?php echo absint( isset( $options['thanks_page'] ) ? $options['thanks_page'] : 0 ) ?>" data-thanks_page_url="<?php echo isset( $options['thanks_page_url'] ) ? esc_url( $options['thanks_page_url'] ) : '' ?>" data-thanks_page_new_window="0">38 <div id="wp-subscribe" class="wp-subscribe-wrap wp-subscribe wp-subscribe-<?php echo esc_attr( $wp_subscribe_forms ); ?>" data-thanks_page="<?php echo absint( isset( $options['thanks_page'] ) ? $options['thanks_page'] : 0 ) ?>" data-thanks_page_url="<?php echo isset( $options['thanks_page_url'] ) ? esc_url( $options['thanks_page_url'] ) : '' ?>" data-thanks_page_new_window="0"> 39 39 40 40 <h4 class="title"><?php echo wp_kses_post( $options['title'] )?></h4> … … 42 42 <p class="text"><?php echo wp_kses_post( $options['text'] ) ?></p> 43 43 44 <?php if( method_exists( $service, 'the_form' ) ) : 44 <?php 45 if ( method_exists( $service, 'the_form' ) ) : 45 46 $service->the_form( $wp_subscribe_forms, $options ); 46 else: ?> 47 48 <form action="<?php echo $current_url ?>" method="post" class="wp-subscribe-form wp-subscribe-<?php echo $options['service'] ?>" id="wp-subscribe-form-<?php echo $wp_subscribe_forms ?>"> 49 50 <?php if( !empty( $options['include_name_field'] ) ) : ?> 51 <input class="regular-text name-field" type="text" name="name" placeholder="<?php echo esc_attr( $options['name_placeholder'] ) ?>"> 52 <?php endif; ?> 53 54 <input class="regular-text email-field" type="text" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>"> 55 56 <input type="hidden" name="form_type" value="<?php echo $options['form_type'] ?>"> 57 58 <input type="hidden" name="service" value="<?php echo $options['service'] ?>"> 59 60 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? $options['widget_id'] : '0'; ?>"> 61 62 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ) ?>"> 63 64 </form> 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 echo wp_kses_post( $options['consent_text'] ); ?> 67 </label> 68 <?php endif; ?> 69 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ); ?>"> 70 71 </form> 65 72 66 73 <?php endif; ?> … … 84 91 <div class="clear"></div> 85 92 86 <p class="footer-text"><?php echo $options['footer_text'];?></p>93 <p class="footer-text"><?php echo wp_kses_post( $options['footer_text'] );?></p> 87 94 88 95 </div> 89 96 90 97 <?php if( isset( $options['after_widget'] ) ) : ?> 91 <?php echo $options['after_widget']?>98 <?php echo wp_kses_post( $options['after_widget'] ); ?> 92 99 <?php else: ?> 93 100 </div><!-- /form-wrapper --> … … 187 194 ) ) ); 188 195 ?> 189 <input class="<?php echo esc_attr( $class ) ?>" id="<?php echo esc_attr( $id ) ?>" name="<?php echo esc_attr( $name ) ?>" type="text" value="<?php echo esc_attr( $value ) ?>"<?php if( isset( $data_id ) ) { printf( 'data-id="%s"', $data_id); } ?>>196 <input class="<?php echo esc_attr( $class ) ?>" id="<?php echo esc_attr( $id ) ?>" name="<?php echo esc_attr( $name ) ?>" type="text" value="<?php echo esc_attr( $value ) ?>"<?php if( isset( $data_id ) ) { printf( 'data-id="%s"', esc_attr( $data_id ) ); } ?>> 190 197 <?php 191 198 } -
wp-subscribe/tags/1.2.13/includes/wps-widget.php
r1715462 r2717363 5 5 */ 6 6 7 if( ! class_exists('wp_subscribe') ) : 7 if ( ! defined( 'ABSPATH' ) ) { 8 exit; 9 } 8 10 9 11 class wp_subscribe extends WP_Widget { … … 12 14 * The Constructor 13 15 */ 14 public function __construct() {15 16 add_action( 'wp_enqueue_scripts',array( &$this, 'register_scripts' ) );17 add_action( 'admin_enqueue_scripts',array( &$this, 'enqueue_scripts' ) );18 add_action( 'customize_controls_enqueue_scripts',array( &$this, 'enqueue_scripts' ) );19 20 // Widget settings21 $widget_ops = array(22 'classname' => 'wp_subscribe',23 'description' => esc_html__( 'Displays subscription form, supports FeedBurner, MailChimp & AWeber.', 'wp-subscribe' )16 public function __construct() { 17 18 add_action( 'wp_enqueue_scripts', array( &$this, 'register_scripts' ) ); 19 add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_scripts' ) ); 20 add_action( 'customize_controls_enqueue_scripts', array( &$this, 'enqueue_scripts' ) ); 21 22 // Widget settings 23 $widget_ops = array( 24 'classname' => 'wp_subscribe', 25 'description' => esc_html__( 'Displays subscription form, supports FeedBurner, MailChimp & AWeber.', 'wp-subscribe' ) 24 26 ); 25 27 26 // Widget control settings27 $control_ops = array(28 // Widget control settings 29 $control_ops = array( 28 30 'id_base' => 'wp_subscribe' 29 31 ); 30 32 31 // Create the widget.32 parent::__construct(33 // Create the widget. 34 parent::__construct( 33 35 'wp_subscribe', 34 36 esc_html__( 'WP Subscribe Widget', 'wp-subscribe' ), … … 36 38 $control_ops 37 39 ); 38 }40 } 39 41 40 42 /** … … 46 48 return apply_filters( 'wp_subscribe_form_defaults', array( 47 49 'service' => 'feedburner', 48 'include_name_field' => false, 49 50 'title' => esc_html__( 'Get more stuff', 'wp-subscribe' ), 51 'text' => esc_html__( 'Subscribe to our mailing list and get interesting stuff and updates to your email inbox.', 'wp-subscribe' ), 52 'email_placeholder' => esc_html__( 'Enter your email here', 'wp-subscribe' ), 53 'name_placeholder' => esc_html__( 'Enter your name here', 'wp-subscribe' ), 54 'button_text' => esc_html__( 'Sign Up Now', 'wp-subscribe' ), 55 'success_message' => esc_html__( 'Thank you for subscribing.', 'wp-subscribe' ), 56 'error_message' => esc_html__( 'Something went wrong.', 'wp-subscribe' ), 57 'footer_text' => esc_html__( 'we respect your privacy and take protecting it seriously', 'wp-subscribe' ) 58 )); 59 } 50 'include_name_field' => false, 51 52 'title' => __( 'Get more stuff', 'wp-subscribe' ), 53 'text' => __( 'Subscribe to our mailing list and get interesting stuff and updates to your email inbox.', 'wp-subscribe' ), 54 'email_placeholder' => __( 'Enter your email here', 'wp-subscribe' ), 55 'consent_text' => __( 'I consent to my submitted data being collected via this form*', 'wp-subscribe' ), 56 'name_placeholder' => __( 'Enter your name here', 'wp-subscribe' ), 57 'button_text' => __( 'Sign Up Now', 'wp-subscribe' ), 58 'success_message' => __( 'Thank you for subscribing.', 'wp-subscribe' ), 59 'error_message' => __( 'Something went wrong.', 'wp-subscribe' ), 60 'footer_text' => __( 'we respect your privacy and take protecting it seriously', 'wp-subscribe' ) 61 )); 62 } 60 63 61 64 /** … … 63 66 * @return void 64 67 */ 65 function register_scripts() {66 67 wp_register_style( 'wp-subscribe', wps()->plugin_url() . '/assets/css/wp-subscribe-form.css' );68 wp_register_script( 'wp-subscribe', wps()->plugin_url() . '/assets/js/wp-subscribe-form.js', array( 'jquery' ) );69 70 wp_localize_script( 'wp-subscribe', 'wp_subscribe', array(68 function register_scripts() { 69 70 wp_register_style( 'wp-subscribe', wps()->plugin_url() . '/assets/css/wp-subscribe-form.css' ); 71 wp_register_script( 'wp-subscribe', wps()->plugin_url() . '/assets/js/wp-subscribe-form.js', array( 'jquery' ) ); 72 73 wp_localize_script( 'wp-subscribe', 'wp_subscribe', array( 71 74 'ajaxurl' => admin_url( 'admin-ajax.php' ) 72 75 ) ); 73 }76 } 74 77 75 78 /** … … 77 80 * @return void 78 81 */ 79 function enqueue_scripts() { 80 82 function enqueue_scripts() { 81 83 $screen = get_current_screen(); 82 84 $current_filter = current_filter(); 83 84 if ( 'widgets' === $screen->id || 'customize_controls_enqueue_scripts' === $current_filter ) { 85 86 wp_enqueue_style( 'wp-subscribe-options', wps()->plugin_url() . '/assets/css/wp-subscribe-options.css' ); 87 wp_enqueue_script( 'wp-subscribe-admin', wps()->plugin_url() . '/assets/js/wp-subscribe-admin.js', array( 'jquery' ) ); 88 } 89 } 85 if ( 'widgets' === $screen->id || 'customize_controls_enqueue_scripts' === $current_filter ) { 86 wp_enqueue_style( 'wp-subscribe-options', wps()->plugin_url() . '/assets/css/wp-subscribe-options.css' ); 87 } 88 89 wp_enqueue_script( 'wp-subscribe-admin', wps()->plugin_url() . '/assets/js/wp-subscribe-admin.js', array( 'jquery' ) ); 90 } 90 91 91 92 /** … … 95 96 * @return void 96 97 */ 97 function widget( $args, $instance ) {98 99 extract( $args ); 100 $instance = wp_parse_args( (array) $instance, $this->get_defaults() );98 function widget( $args, $instance ) { 99 100 extract( $args ); 101 $instance = wp_parse_args( (array) $instance, $this->get_defaults() ); 101 102 102 103 $instance['before_widget'] = $before_widget; … … 106 107 107 108 wps_the_form( $instance ); 108 }109 } 109 110 110 111 /** … … 116 117 * @return array 117 118 */ 118 function update( $new_instance, $old_instance ) {119 function update( $new_instance, $old_instance ) { 119 120 120 121 $instance = $old_instance; 121 $instance = array_merge( $instance, $new_instance );122 123 // Feedburner ID -- make sure the user didn't insert full url124 if( isset( $instance['feedburner_id'] ) && 0 === strpos( $instance['feedburner_id'], 'http' ) ) {122 $instance = array_merge( $instance, $new_instance ); 123 124 // Feedburner ID -- make sure the user didn't insert full url 125 if( isset( $instance['feedburner_id'] ) && 0 === strpos( $instance['feedburner_id'], 'http' ) ) { 125 126 $instance['feedburner_id'] = substr( $instance['feedburner_id'], strrpos( $instance['feedburner_id'], '/' ) + 1 ); 126 127 } 127 128 128 return $instance;129 }129 return $instance; 130 } 130 131 131 132 /** … … 135 136 * @return void 136 137 */ 137 function form( $instance ) {138 function form( $instance ) { 138 139 139 140 $instance = wp_parse_args( (array) $instance, $this->get_defaults() ); 140 141 $services = wps_get_mailing_services('options'); 141 ?>142 <div class="wp_subscribe_options_form">143 144 <!-- Hidden title field to prevent WP picking up Title Color field as widget title -->145 <input type="hidden" value="" id="<?php echo $this->get_field_id('title') ?>" name="<?php echo $this->get_field_name('title')?>">142 ?> 143 <div class="wp_subscribe_options_form"> 144 145 <!-- Hidden title field to prevent WP picking up Title Color field as widget title --> 146 <input type="hidden" value="" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>"> 146 147 147 148 <?php $this->field_select(array( … … 154 155 )); ?> 155 156 156 <div class="wp_subscribe_account_details">157 <div class="wp_subscribe_account_details"> 157 158 158 159 <?php foreach( $services as $service_id => $service_name ): ?> … … 165 166 <?php endforeach; ?> 166 167 167 </div><!-- .wp_subscribe_account_details -->168 169 <p class="wp_subscribe_include_name">170 171 <label for="<?php echo $this->get_field_id('include_name_field')?>">172 <input type="hidden" name="<?php echo $this->get_field_name('include_name_field'); ?>" value="0">173 <input id="<?php echo $this->get_field_id('include_name_field'); ?>" type="checkbox" class="include-name-field" name="<?php echo $this->get_field_name('include_name_field'); ?>" value="1" <?php checked($instance['include_name_field']); ?>>174 <?php echo wp_kses_post( __( 'Include <strong>Name</strong> field', 'wp-subscribe' ) ) ?>175 </label>168 </div><!-- .wp_subscribe_account_details --> 169 170 <p class="wp_subscribe_include_name"> 171 172 <label for="<?php echo esc_attr( $this->get_field_id('include_name_field') ); ?>"> 173 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name('include_name_field') ); ?>" value="0"> 174 <input id="<?php echo esc_attr( $this->get_field_id('include_name_field') ); ?>" type="checkbox" class="include-name-field" name="<?php echo esc_attr( $this->get_field_name('include_name_field') ); ?>" value="1" <?php checked($instance['include_name_field']); ?>> 175 <?php echo wp_kses_post( __( 'Include <strong>Name</strong> field', 'wp-subscribe' ) ) ?> 176 </label> 176 177 177 178 </p> 178 179 179 <h4 class="wp_subscribe_labels_header">180 <a class="wp-subscribe-toggle" href="#" rel="wp_subscribe_labels"><?php _e('Labels', 'wp-subscribe'); ?></a>180 <h4 class="wp_subscribe_labels_header"> 181 <a class="wp-subscribe-toggle" href="#" rel="wp_subscribe_labels"><?php esc_html_e('Labels', 'wp-subscribe'); ?></a> 181 182 </h4> 182 183 183 <div class="wp_subscribe_labels" style="display: none;">184 <div class="wp_subscribe_labels" style="display: none;"> 184 185 185 186 <?php … … 214 215 215 216 $this->field_text(array( 217 'id' => 'consent_text', 218 'name' => 'consent_text', 219 'title' => esc_html( 'Consent Label', 'wp-subscribe' ), 220 'value' => $instance['consent_text'] 221 )); 222 223 $this->field_text(array( 216 224 'id' => 'button_text', 217 225 'name' => 'button_text', … … 234 242 )); 235 243 236 $this->field_text (array(244 $this->field_textarea(array( 237 245 'id' => 'footer_text', 238 246 'name' => 'footer_text', … … 240 248 'value' => $instance['footer_text'] 241 249 )); 242 ?> 243 244 </div><!-- .wp_subscribe_labels --> 245 246 </div><!-- .wp_subscribe_options_form --> 247 <?php 248 } 249 250 // -------------------------- FIELD HELPRES ---------------------- 251 252 public function field_textarea( $args = array() ) { 253 250 ?> 251 252 </div><!-- .wp_subscribe_labels --> 253 254 </div><!-- .wp_subscribe_options_form --> 255 <?php 256 } 257 258 // -------------------------- FIELD HELPERS -------------------------- 259 260 public function field_textarea( $args = array() ) { 254 261 extract( $args ); 255 262 ?> 256 <p class="wp-subscribe-label-field wp-subscribe-<?php echo $id; ?>-field">257 <label for="<?php echo $this->get_field_id($id)?>">258 <?php echo $title?>259 </label>260 261 <textarea class="widefat" id="<?php echo $this->get_field_id($id) ?>" name="<?php echo $this->get_field_name($id)?>"><?php echo esc_textarea( $value ) ?></textarea>262 </p>263 264 <?php265 }263 <p class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 264 <label for="<?php echo esc_attr( $this->get_field_id($id) ); ?>"> 265 <?php echo wp_kses_post( $title ); ?> 266 </label> 267 268 <textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id($id) ); ?>" name="<?php echo esc_attr( $this->get_field_name($id) ); ?>"><?php echo esc_textarea( $value ) ?></textarea> 269 </p> 270 271 <?php 272 } 266 273 267 274 public function field_text( $args = array() ) { … … 269 276 extract( $args ); 270 277 ?> 271 <div class="wp-subscribe-label-field wp-subscribe-<?php echo $id; ?>-field">272 <label for="<?php echo $this->get_field_id( $id) ?>">273 <?php echo esc_html( $title ) ?>274 </label>278 <div class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 279 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ) ?>"> 280 <?php echo esc_html( $title ) ?> 281 </label> 275 282 276 283 <div class="wps-input-wrapper"> 277 284 278 285 <?php wps_field_text(array( 279 'id' => $this->get_field_id( $id ),280 'name' => $this->get_field_name( $id ),281 'value' => $value,286 'id' => $this->get_field_id( $id ), 287 'name' => $this->get_field_name( $id ), 288 'value' => $value, 282 289 'data_id' => $id 283 ) )?>290 ) ); ?> 284 291 285 292 <?php if( isset( $link ) ) { … … 293 300 </div> 294 301 295 </div>296 <?php297 }302 </div> 303 <?php 304 } 298 305 299 306 public function field_hidden( $args = array() ) { … … 302 309 303 310 wps_field_hidden(array( 304 'id' => $this->get_field_id( $id ),305 'name' => $this->get_field_name( $id ),306 'value' => $value,311 'id' => $this->get_field_id( $id ), 312 'name' => $this->get_field_name( $id ), 313 'value' => $value, 307 314 'data_id' => $id 308 315 )); 309 }316 } 310 317 311 318 public function field_raw( $args = array() ) { 312 319 313 320 call_user_func_array( $args['content'], array( $args['value'] ) ); 314 }321 } 315 322 316 323 public function field_checkbox( $args = array() ) { … … 318 325 extract( $args ); 319 326 ?> 320 <div class="wp-subscribe-<?php echo $id; ?>-field">321 322 <label for="<?php echo $this->get_field_id( $id )?>">323 324 <input type="hidden" name="<?php echo $this->get_field_name( $id ) ?>" value="0" data-id="<?php echo $this->get_field_id( $id )?>">325 326 <input type="checkbox" id="<?php echo $this->get_field_id( $id ) ?>" name="<?php echo $this->get_field_name( $id ) ?>" value="1"<?php checked( $value ) ?> data-id="<?php echo $id?>">327 328 <?php echo esc_html( $title)?>327 <div class="wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 328 329 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 330 331 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( $id ) ); ?>" value="0" data-id="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 332 333 <input type="checkbox" id="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $id ) ); ?>" value="1"<?php checked( $value ) ?> data-id="<?php echo esc_attr( $id ); ?>"> 334 335 <?php echo esc_html( $title ); ?> 329 336 330 337 </label> … … 334 341 } 335 342 336 public function field_select( $args = array() ) {343 public function field_select( $args = array() ) { 337 344 338 345 $options = array(); 339 346 extract( $args ); 340 ?>341 342 <div class="wp-subscribe-label-field wp-subscribe-<?php echo $id?>-field">343 <label for="<?php echo $this->get_field_id( $id )?>">344 <?php echo esc_html( $title ) ?>345 </label>347 ?> 348 349 <div class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 350 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 351 <?php echo esc_html( $title ) ?> 352 </label> 346 353 347 354 <div class="wps-input-wrapper"> 348 355 <?php wps_field_select(array( 349 'id' => $this->get_field_id( $id ),350 'name' => $this->get_field_name( $id ),351 'value' => $value,356 'id' => $this->get_field_id( $id ), 357 'name' => $this->get_field_name( $id ), 358 'value' => $value, 352 359 'options' => $options, 353 'class' => 'widefat list-selectbox'360 'class' => 'widefat list-selectbox' 354 361 )) ?> 355 362 … … 368 375 </div> 369 376 370 </div>371 372 <?php373 }377 </div> 378 379 <?php 380 } 374 381 } 375 382 … … 380 387 add_action( 'widgets_init', 'wps_register_widget' ); 381 388 function wps_register_widget() { 382 register_widget( 'wp_subscribe' );389 register_widget( 'wp_subscribe' ); 383 390 } 384 385 endif; -
wp-subscribe/tags/1.2.13/languages/wp-subscribe.pot
r1823649 r2717363 1 # Copyright (C) 20 18 WP Subscribe2 # This file is distributed under the same license as the WP Subscribe p ackage.1 # Copyright (C) 2022 MyThemeShop 2 # This file is distributed under the same license as the WP Subscribe plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Subscribe 1.2. 6\n"5 "Project-Id-Version: WP Subscribe 1.2.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-subscribe\n" 7 "POT-Creation-Date: 2018-02-17 01:23:40+00:00\n" 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 8 "Language-Team: LANGUAGE <[email protected]>\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 "Language-Team: LANGUAGE <[email protected]>\n" 14 15 #: includes/subscription/class-wps-aweber.php:67 12 "POT-Creation-Date: 2022-05-03T04:00:05+02:00\n" 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.6.0\n" 15 "X-Domain: wp-subscribe\n" 16 17 #. Plugin Name of the plugin 18 msgid "WP Subscribe" 19 msgstr "" 20 21 #. Plugin URI of the plugin 22 msgid "http://mythemeshop.com/plugins/wp-subscribe/" 23 msgstr "" 24 25 #. Description of the plugin 26 msgid "WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner." 27 msgstr "" 28 29 #. Author of the plugin 30 msgid "MyThemeShop" 31 msgstr "" 32 33 #. Author URI of the plugin 34 msgid "http://mythemeshop.com/" 35 msgstr "" 36 37 #: includes/subscription/class-wps-aweber.php:72 16 38 msgid "Unable to connect to Aweber. The Authorization Code is empty." 17 39 msgstr "" 18 40 19 #: includes/subscription/class-wps-aweber.php:77 20 msgid "" 21 "Unable to connect your Aweber Account. The Authorization Code is incorrect." 22 msgstr "" 23 24 #: includes/subscription/class-wps-aweber.php:203 41 #: includes/subscription/class-wps-aweber.php:82 42 msgid "Unable to connect your Aweber Account. The Authorization Code is incorrect." 43 msgstr "" 44 45 #: includes/subscription/class-wps-aweber.php:208 25 46 msgid "AWeber List" 26 47 msgstr "" 27 48 28 #: includes/subscription/class-wps-aweber.php:20 429 #: includes/subscription/class-wps-mailchimp.php:7 349 #: includes/subscription/class-wps-aweber.php:209 50 #: includes/subscription/class-wps-mailchimp.php:77 30 51 msgid "Select List" 31 52 msgstr "" 32 53 33 #: includes/subscription/class-wps-aweber.php:217 34 msgid "To connect your Aweber account:" 35 msgstr "" 36 37 #: includes/subscription/class-wps-aweber.php:220 38 msgid "" 39 "<span>1.</span> <a href=\"%s\" target=\"_blank\">Click here</a> <span>to " 40 "open the authorization page and log in.</span>" 41 msgstr "" 42 43 #: includes/subscription/class-wps-aweber.php:221 44 msgid "" 45 "<span>2.</span> Copy and paste the authorization code in the field below." 46 msgstr "" 47 48 #: includes/subscription/class-wps-aweber.php:230 49 msgid "Your Aweber Account is connected." 50 msgstr "" 51 52 #: includes/subscription/class-wps-aweber.php:231 53 msgid "" 54 "<a href=\"#\" class=\"aweber_disconnect\">Click here</a> <span>to disconnect." 55 "</span>" 56 msgstr "" 57 58 #: includes/subscription/class-wps-feedburner.php:39 54 #: includes/subscription/class-wps-feedburner.php:50 59 55 msgid "Feedburner ID" 60 56 msgstr "" 61 57 62 #: includes/subscription/class-wps-mailchimp.php:6 358 #: includes/subscription/class-wps-mailchimp.php:67 63 59 msgid "MailChimp API URL" 64 60 msgstr "" 65 61 66 #: includes/subscription/class-wps-mailchimp.php:6 462 #: includes/subscription/class-wps-mailchimp.php:68 67 63 msgid "The API key of your MailChimp account." 68 64 msgstr "" 69 65 70 #: includes/subscription/class-wps-mailchimp.php:7 266 #: includes/subscription/class-wps-mailchimp.php:76 71 67 msgid "MailChimp List" 72 68 msgstr "" 73 69 74 #: includes/subscription/class-wps-mailchimp.php:8 170 #: includes/subscription/class-wps-mailchimp.php:85 75 71 msgid "Send double opt-in notification" 76 72 msgstr "" … … 100 96 msgstr "" 101 97 102 #: includes/wps-helpers.php:2 1798 #: includes/wps-helpers.php:224 103 99 msgid "No Animation" 104 100 msgstr "" 105 101 106 #: includes/wps-helpers.php:2 18102 #: includes/wps-helpers.php:225 107 103 msgid "Attention Seekers" 108 104 msgstr "" 109 105 110 #: includes/wps-helpers.php:2 19106 #: includes/wps-helpers.php:226 111 107 msgid "bounce" 112 108 msgstr "" 113 109 114 #: includes/wps-helpers.php:22 0110 #: includes/wps-helpers.php:227 115 111 msgid "flash" 116 112 msgstr "" 117 113 118 #: includes/wps-helpers.php:22 1114 #: includes/wps-helpers.php:228 119 115 msgid "pulse" 120 116 msgstr "" 121 117 122 #: includes/wps-helpers.php:22 2118 #: includes/wps-helpers.php:229 123 119 msgid "rubberBand" 124 120 msgstr "" 125 121 126 #: includes/wps-helpers.php:2 23122 #: includes/wps-helpers.php:230 127 123 msgid "shake" 128 124 msgstr "" 129 125 130 #: includes/wps-helpers.php:2 24126 #: includes/wps-helpers.php:231 131 127 msgid "swing" 132 128 msgstr "" 133 129 134 #: includes/wps-helpers.php:2 25130 #: includes/wps-helpers.php:232 135 131 msgid "tada" 136 132 msgstr "" 137 133 138 #: includes/wps-helpers.php:2 26134 #: includes/wps-helpers.php:233 139 135 msgid "wobble" 140 136 msgstr "" 141 137 142 #: includes/wps-helpers.php:2 28138 #: includes/wps-helpers.php:235 143 139 msgid "Bouncing Entrances" 144 140 msgstr "" 145 141 146 #: includes/wps-helpers.php:2 29142 #: includes/wps-helpers.php:236 147 143 msgid "bounceIn" 148 144 msgstr "" 149 145 150 #: includes/wps-helpers.php:23 0146 #: includes/wps-helpers.php:237 151 147 msgid "bounceInDown" 152 148 msgstr "" 153 149 154 #: includes/wps-helpers.php:23 1150 #: includes/wps-helpers.php:238 155 151 msgid "bounceInLeft" 156 152 msgstr "" 157 153 158 #: includes/wps-helpers.php:23 2154 #: includes/wps-helpers.php:239 159 155 msgid "bounceInRight" 160 156 msgstr "" 161 157 162 #: includes/wps-helpers.php:2 33158 #: includes/wps-helpers.php:240 163 159 msgid "bounceInUp" 164 160 msgstr "" 165 161 166 #: includes/wps-helpers.php:2 35162 #: includes/wps-helpers.php:242 167 163 msgid "Fading Entrances" 168 164 msgstr "" 169 165 170 #: includes/wps-helpers.php:2 36166 #: includes/wps-helpers.php:243 171 167 msgid "fadeIn" 172 168 msgstr "" 173 169 174 #: includes/wps-helpers.php:2 37170 #: includes/wps-helpers.php:244 175 171 msgid "fadeInDown" 176 172 msgstr "" 177 173 178 #: includes/wps-helpers.php:2 38174 #: includes/wps-helpers.php:245 179 175 msgid "fadeInDownBig" 180 176 msgstr "" 181 177 182 #: includes/wps-helpers.php:2 39178 #: includes/wps-helpers.php:246 183 179 msgid "fadeInLeft" 184 180 msgstr "" 185 181 186 #: includes/wps-helpers.php:24 0182 #: includes/wps-helpers.php:247 187 183 msgid "fadeInLeftBig" 188 184 msgstr "" 189 185 190 #: includes/wps-helpers.php:24 1186 #: includes/wps-helpers.php:248 191 187 msgid "fadeInRight" 192 188 msgstr "" 193 189 194 #: includes/wps-helpers.php:24 2190 #: includes/wps-helpers.php:249 195 191 msgid "fadeInRightBig" 196 192 msgstr "" 197 193 198 #: includes/wps-helpers.php:2 43194 #: includes/wps-helpers.php:250 199 195 msgid "fadeInUp" 200 196 msgstr "" 201 197 202 #: includes/wps-helpers.php:2 44198 #: includes/wps-helpers.php:251 203 199 msgid "fadeInUpBig" 204 200 msgstr "" 205 201 206 #: includes/wps-helpers.php:2 46202 #: includes/wps-helpers.php:253 207 203 msgid "Flippers" 208 204 msgstr "" 209 205 210 #: includes/wps-helpers.php:2 47206 #: includes/wps-helpers.php:254 211 207 msgid "flipInX" 212 208 msgstr "" 213 209 214 #: includes/wps-helpers.php:2 48210 #: includes/wps-helpers.php:255 215 211 msgid "flipInY" 216 212 msgstr "" 217 213 218 #: includes/wps-helpers.php:25 0214 #: includes/wps-helpers.php:257 219 215 msgid "Lightspeed" 220 216 msgstr "" 221 217 222 #: includes/wps-helpers.php:25 1218 #: includes/wps-helpers.php:258 223 219 msgid "lightSpeedIn" 224 220 msgstr "" 225 221 226 #: includes/wps-helpers.php:2 53222 #: includes/wps-helpers.php:260 227 223 msgid "Rotating Entrances" 228 224 msgstr "" 229 225 230 #: includes/wps-helpers.php:2 54226 #: includes/wps-helpers.php:261 231 227 msgid "rotateIn" 232 228 msgstr "" 233 229 234 #: includes/wps-helpers.php:2 55230 #: includes/wps-helpers.php:262 235 231 msgid "rotateInDownLeft" 236 232 msgstr "" 237 233 238 #: includes/wps-helpers.php:2 56234 #: includes/wps-helpers.php:263 239 235 msgid "rotateInDownRight" 240 236 msgstr "" 241 237 242 #: includes/wps-helpers.php:2 57238 #: includes/wps-helpers.php:264 243 239 msgid "rotateInUpLeft" 244 240 msgstr "" 245 241 246 #: includes/wps-helpers.php:2 58242 #: includes/wps-helpers.php:265 247 243 msgid "rotateInUpRight" 248 244 msgstr "" 249 245 250 #: includes/wps-helpers.php:26 0246 #: includes/wps-helpers.php:267 251 247 msgid "Specials" 252 248 msgstr "" 253 249 254 #: includes/wps-helpers.php:26 1250 #: includes/wps-helpers.php:268 255 251 msgid "rollIn" 256 252 msgstr "" 257 253 258 #: includes/wps-helpers.php:2 63254 #: includes/wps-helpers.php:270 259 255 msgid "Zoom Entrances" 260 256 msgstr "" 261 257 262 #: includes/wps-helpers.php:2 64258 #: includes/wps-helpers.php:271 263 259 msgid "zoomIn" 264 260 msgstr "" 265 261 266 #: includes/wps-helpers.php:2 65262 #: includes/wps-helpers.php:272 267 263 msgid "zoomInDown" 268 264 msgstr "" 269 265 270 #: includes/wps-helpers.php:2 66266 #: includes/wps-helpers.php:273 271 267 msgid "zoomInLeft" 272 268 msgstr "" 273 269 274 #: includes/wps-helpers.php:2 67270 #: includes/wps-helpers.php:274 275 271 msgid "zoomInRight" 276 272 msgstr "" 277 273 278 #: includes/wps-helpers.php:2 68274 #: includes/wps-helpers.php:275 279 275 msgid "zoomInUp" 280 276 msgstr "" 281 277 282 #: includes/wps-widget.php:2 3278 #: includes/wps-widget.php:25 283 279 msgid "Displays subscription form, supports FeedBurner, MailChimp & AWeber." 284 280 msgstr "" 285 281 286 #: includes/wps-widget.php:3 4282 #: includes/wps-widget.php:36 287 283 msgid "WP Subscribe Widget" 288 284 msgstr "" 289 285 290 #: includes/wps-widget.php:5 0286 #: includes/wps-widget.php:52 291 287 msgid "Get more stuff" 292 288 msgstr "" 293 289 294 #: includes/wps-widget.php:51 295 msgid "" 296 "Subscribe to our mailing list and get interesting stuff and updates to your " 297 "email inbox." 298 msgstr "" 299 300 #: includes/wps-widget.php:52 290 #: includes/wps-widget.php:53 291 msgid "Subscribe to our mailing list and get interesting stuff and updates to your email inbox." 292 msgstr "" 293 294 #: includes/wps-widget.php:54 301 295 msgid "Enter your email here" 302 296 msgstr "" 303 297 304 #: includes/wps-widget.php:53 298 #: includes/wps-widget.php:55 299 msgid "I consent to my submitted data being collected via this form*" 300 msgstr "" 301 302 #: includes/wps-widget.php:56 305 303 msgid "Enter your name here" 306 304 msgstr "" 307 305 308 #: includes/wps-widget.php:5 4306 #: includes/wps-widget.php:57 309 307 msgid "Sign Up Now" 310 308 msgstr "" 311 309 312 #: includes/wps-widget.php:5 5310 #: includes/wps-widget.php:58 313 311 msgid "Thank you for subscribing." 314 312 msgstr "" 315 313 316 #: includes/wps-widget.php:5 6314 #: includes/wps-widget.php:59 317 315 msgid "Something went wrong." 318 316 msgstr "" 319 317 320 #: includes/wps-widget.php: 57318 #: includes/wps-widget.php:60 321 319 msgid "we respect your privacy and take protecting it seriously" 322 320 msgstr "" 323 321 324 #: includes/wps-widget.php:17 4322 #: includes/wps-widget.php:175 325 323 msgid "Include <strong>Name</strong> field" 326 324 msgstr "" 327 325 328 #: includes/wps-widget.php:18 0326 #: includes/wps-widget.php:181 329 327 msgid "Labels" 330 328 msgstr "" 331 329 332 #: includes/wps-widget.php:286 includes/wps-widget.php:361 330 #: includes/wps-widget.php:293 331 #: includes/wps-widget.php:368 333 332 msgid "Click here" 334 333 msgstr "" 335 334 336 #: includes/wps-widget.php:3 57335 #: includes/wps-widget.php:364 337 336 msgid "Get list" 338 337 msgstr "" 339 338 340 #: wp-subscribe.php:61 wp-subscribe.php:68 339 #: wp-subscribe.php:61 340 #: wp-subscribe.php:68 341 341 msgid "Cheatin’ huh?" 342 342 msgstr "" 343 343 344 #: wp-subscribe.php:160 344 #. Translators: %s is "WP Subscribe Pro" as a link. 345 #: wp-subscribe.php:125 346 msgid "Like WP Subscribe plugin? You will LOVE %s!" 347 msgstr "" 348 349 #: wp-subscribe.php:135 350 msgid "Thank you for trying WP Subscribe. We hope you will like it." 351 msgstr "" 352 353 #: wp-subscribe.php:206 345 354 msgid "No aweber authorization code found." 346 355 msgstr "" 347 356 348 #: wp-subscribe.php: 192357 #: wp-subscribe.php:238 349 358 msgid "No data found." 350 359 msgstr "" 351 360 352 #: wp-subscribe.php:2 00361 #: wp-subscribe.php:246 353 362 msgid "No email address found." 354 363 msgstr "" 355 364 356 #: wp-subscribe.php:2 07365 #: wp-subscribe.php:253 357 366 msgid "Not a valid email address." 358 367 msgstr "" 359 368 360 #: wp-subscribe.php:2 16369 #: wp-subscribe.php:262 361 370 msgid "Unknown mailing service called." 362 371 msgstr "" 363 372 364 #: wp-subscribe.php:2 51373 #: wp-subscribe.php:297 365 374 msgid "Not permitted." 366 375 msgstr "" 367 376 368 #: wp-subscribe.php: 260377 #: wp-subscribe.php:306 369 378 msgid "Service not defined." 370 379 msgstr "" 371 380 372 #: wp-subscribe.php: 278381 #: wp-subscribe.php:324 373 382 msgid "No lists found." 374 383 msgstr "" 375 376 #. Plugin Name of the plugin/theme377 msgid "WP Subscribe"378 msgstr ""379 380 #. Plugin URI of the plugin/theme381 msgid "http://mythemeshop.com/plugins/wp-subscribe/"382 msgstr ""383 384 #. Description of the plugin/theme385 msgid ""386 "WP Subscribe is a simple but powerful subscription plugin which supports "387 "MailChimp, Aweber and Feedburner."388 msgstr ""389 390 #. Author of the plugin/theme391 msgid "MyThemeShop"392 msgstr ""393 394 #. Author URI of the plugin/theme395 msgid "http://mythemeshop.com/"396 msgstr "" -
wp-subscribe/tags/1.2.13/readme.txt
r2357681 r2717363 4 4 Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner, 5 5 Requires at least: 4.0 6 Tested up to: 5. 57 Stable tag: 1.2.1 26 Tested up to: 5.9.3 7 Stable tag: 1.2.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 83 83 == Changelog == 84 85 = 1.2.13 = 86 * Fixed a security issue 84 87 85 88 = 1.2.12 = -
wp-subscribe/tags/1.2.13/wp-subscribe.php
r1849523 r2717363 4 4 * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/ 5 5 * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner. 6 * Version: 1.2. 76 * Version: 1.2.13 7 7 * Author: MyThemeShop 8 8 * Author URI: http://mythemeshop.com/ … … 28 28 * @var string 29 29 */ 30 private $version = '1.2. 6';30 private $version = '1.2.13'; 31 31 32 32 /** … … 78 78 include_once 'includes/wps-functions-options.php'; 79 79 include_once 'includes/wps-widget.php'; 80 80 register_activation_hook( __FILE__, array( $this, 'activate_plugin' ) ); 81 81 $this->autoloader(); 82 82 $this->hooks(); … … 109 109 $this->add_action( 'wp_ajax_nopriv_validate_subscribe', 'validate_subscribe' ); 110 110 $this->add_action( 'wp_ajax_connect_aweber', 'connect_aweber' ); 111 112 /* Display a notice */ 113 $this->add_action('admin_notices', 'wp_subscribe_admin_notice'); 114 $this->add_action('wp_ajax_mts_dismiss_wpsubscribe_notice', 'wp_subscribe_admin_notice_ignore'); 115 } 116 117 public function wp_subscribe_admin_notice() { 118 global $current_user ; 119 $user_id = $current_user->ID; 120 /* Check that the user hasn't already clicked to ignore the message */ 121 /* Only show the notice 2 days after plugin activation */ 122 if ( ! get_user_meta($user_id, 'wp_subscribe_ignore_notice') && time() >= (get_option( 'wp_subscribe_activated', 0 ) + (2 * 24 * 60 * 60)) ) { 123 echo '<div class="updated notice-info wp-subscribe-notice" id="wpsubscribe-notice" style="position:relative;">'; 124 // Translators: %s is "WP Subscribe Pro" as a link. 125 echo '<p>' . sprintf( __('Like WP Subscribe plugin? You will LOVE %s!', 'wp-subscribe'), '<a target="_blank" href="https://mythemeshop.com/plugins/wp-subscribe-pro/?utm_source=WP+Subscribe&utm_medium=Notification+Link&utm_content=WP+Subscribe+Pro+LP&utm_campaign=WordPressOrg"><strong>WP Subscribe Pro</strong></a>' ) . '</p><a class="notice-dismiss wpsubscribe-dismiss-notice" data-ignore="0" href="#"></a>'; 126 echo "</div>"; 127 } 128 /* Other notice appears right after activating */ 129 /* And it gets hidden after showing 3 times */ 130 if ( ! get_user_meta($user_id, 'wp_subscribe_ignore_notice_2') && get_option('wp_subscribe_notice_views', 0) < 3 && get_option( 'wp_subscribe_activated', 0 ) ) { 131 $views = get_option('wp_subscribe_notice_views', 0); 132 update_option( 'wp_subscribe_notice_views', ($views + 1) ); 133 echo '<div class="updated notice-info wp-subscribe-notice" id="wpsubscribe-notice2" style="position:relative;">'; 134 echo '<p>'; 135 esc_html_e('Thank you for trying WP Subscribe. We hope you will like it.', 'wp-subscribe'); 136 echo '</p>'; 137 echo '<a class="notice-dismiss wpsubscribe-dismiss-notice" data-ignore="1" href="#"></a>'; 138 echo "</div>"; 139 } 140 } 141 142 public function wp_subscribe_admin_notice_ignore() { 143 global $current_user; 144 $user_id = $current_user->ID; 145 /* If user clicks to ignore the notice, add that to their user meta */ 146 if ( isset($_POST['dismiss']) ) { 147 if ( '0' == $_POST['dismiss'] ) { 148 add_user_meta($user_id, 'wp_subscribe_ignore_notice', '1', true); 149 } elseif ( '1' == $_POST['dismiss'] ) { 150 add_user_meta($user_id, 'wp_subscribe_ignore_notice_2', '1', true); 151 } 152 } 153 } 154 155 public function activate_plugin() { 156 update_option('wp_subscribe_activated', time()); 111 157 } 112 158 … … 150 196 load_plugin_textdomain( 'wp-subscribe', false, $this->plugin_dir() . '/languages' ); 151 197 } 152 198 153 199 public function connect_aweber() { 154 200 -
wp-subscribe/trunk/assets/css/wp-subscribe-form.css
r1715462 r2717363 3 3 * Name: wp-subscribe-form.css 4 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,.thanks,.error{display:none}.wp-subscribe-wrap.loading .wp-subscribe-loader{display:block}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} -
wp-subscribe/trunk/assets/js/wp-subscribe-admin.js
r1739908 r2717363 196 196 }); 197 197 198 jQuery(document).on('click', '.wpsubscribe-dismiss-notice', function(e){ 199 e.preventDefault(); 200 jQuery(this).parent().remove(); 201 jQuery.ajax({ 202 type: "POST", 203 url: ajaxurl, 204 data: { 205 action: 'mts_dismiss_wpsubscribe_notice', 206 dismiss: jQuery(this).data('ignore') 207 } 208 }); 209 return false; 210 }); 211 198 212 }( jQuery ) ); -
wp-subscribe/trunk/includes/subscription/class-wps-aweber.php
r1715462 r2717363 3 3 * Aweber Subscription 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 5 10 class WPS_Subscription_Aweber extends WPS_Subscription_Base { 6 11 … … 218 223 <br /> 219 224 <ul> 220 <li><?php printf( wp_kses_post( __( '<span>1.</span> <a href="%s" target="_blank">Click here</a> <span>to open the authorization page and log in.</span>', 'content-locker' ) ), 'https://auth.aweber.com/1.0/oauth/authorize_app/1afc783e' ) ?></li> 221 <li><?php echo wp_kses_post( __( '<span>2.</span> Copy and paste the authorization code in the field below.', 'content-locker' ) ) ?></li> 225 <li> 226 <?php 227 // Translators: %1$s is "1." and %2$s is is the URL to the Aweber authorization page. 228 printf( wp_kses_post( __( '%1$s <a href="%2$s" target="_blank">Click here</a> <span>to open the authorization page and log in.</span>', 'content-locker' ) ), '<span>1.</span>', 'https://auth.aweber.com/1.0/oauth/authorize_app/1afc783e' ); 229 ?> 230 </li> 231 <li> 232 <?php 233 // Translators: %s is "2.". 234 printf( wp_kses_post( __( '%s Copy and paste the authorization code in the field below.', 'content-locker' ) ), '<span>2.</span>' ); 235 ?> 236 </li> 222 237 </ul> 223 238 … … 228 243 <div class="alert alert-hint mb30 <?php echo empty( $instance['aweber_access_key'] ) ? ' hidden' : '' ?>"> 229 244 <p> 230 <strong><?php _e( 'Your Aweber Account is connected.', 'content-locker' ) ?></strong>245 <strong><?php esc_html_e( 'Your Aweber Account is connected.', 'content-locker' ) ?></strong> 231 246 <?php echo wp_kses_post( __( '<a href="#" class="aweber_disconnect">Click here</a> <span>to disconnect.</span>', 'content-locker' ) ) ?> 232 247 </p> -
wp-subscribe/trunk/includes/subscription/class-wps-base.php
r1715462 r2717363 3 3 * A class for subscription services 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 5 10 abstract class WPS_Subscription_Base { 6 11 … … 125 130 126 131 if( !empty( $this->options['include_name_field'] ) ) { 127 printf( '<input class="regular-text name-field" type="text" name="%s" placeholder="%s" >', esc_attr( $name ), esc_attr( $this->options['name_placeholder'] ) );132 printf( '<input class="regular-text name-field" type="text" name="%s" placeholder="%s" required>', esc_attr( $name ), esc_attr( $this->options['name_placeholder'] ) ); 128 133 } 129 134 } … … 131 136 public function the_email_field( $name ) { 132 137 133 printf( '<input class="regular-text email-field" type=" text" name="%s" placeholder="%s">', esc_attr( $name ), esc_attr( $this->options['email_placeholder'] ) );138 printf( '<input class="regular-text email-field" type="email" name="%s" placeholder="%s" required>', esc_attr( $name ), esc_attr( $this->options['email_placeholder'] ) ); 134 139 } 135 140 -
wp-subscribe/trunk/includes/subscription/class-wps-feedburner.php
r1715462 r2717363 4 4 */ 5 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 9 6 10 class WPS_Subscription_FeedBurner extends WPS_Subscription_Base { 7 11 8 public function the_form( $id, $options ) {12 public function the_form( $id, $options ) { 9 13 ?> 10 14 11 <form action="https://feedburner.google.com/fb/a/mailverify?uri=<?php echo $options['feedburner_id'] ?>" method="post" class="wp-subscribe-form wp-subscribe-feedburner" id="wp-subscribe-form-<?php echo $id?>" target="popupwindow">15 <form action="https://feedburner.google.com/fb/a/mailverify?uri=<?php echo esc_attr( $options['feedburner_id'] ); ?>" method="post" class="wp-subscribe-form wp-subscribe-feedburner" id="wp-subscribe-form-<?php echo esc_attr( $id ); ?>" target="popupwindow"> 12 16 13 <input class="regular-text email-field" type=" text" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>">17 <input class="regular-text email-field" type="email" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>" required> 14 18 15 <input type="hidden" name="uri" value="<?php echo $options['feedburner_id']?>">19 <input type="hidden" name="uri" value="<?php echo esc_attr( $options['feedburner_id'] ); ?>"> 16 20 17 21 <input type="hidden" name="loc" value="en_US"> 18 22 19 <input type="hidden" name="form_type" value="<?php echo $options['form_type']?>">23 <input type="hidden" name="form_type" value="<?php echo esc_attr( $options['form_type'] ); ?>"> 20 24 21 <input type="hidden" name="service" value="<?php echo $options['service']?>">25 <input type="hidden" name="service" value="<?php echo esc_attr( $options['service'] ); ?>"> 22 26 23 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? $options['widget_id'] : '0'; ?>"> 24 27 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? esc_attr( $options['widget_id'] ) : '0'; ?>"> 28 <?php if( ! empty( $options['consent_text'] ) ) : ?> 29 <div class="wps-consent-wrapper"> 30 <label for="consent-field"> 31 <input class="consent-field" id="consent-field" type="checkbox" name="consent" required /> 32 <?php echo wp_kses_post( $options['consent_text'] ); ?> 33 </label> 34 </div> 35 <?php endif; ?> 25 36 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ) ?>"> 26 37 … … 37 48 'name' => 'feedburner_id', 38 49 'type' => 'text', 39 'title' => esc_html__( 'Feedburner ID', 'wp-subscribe' ),50 'title' => __( 'Feedburner ID', 'wp-subscribe' ), 40 51 ) 41 52 ); -
wp-subscribe/trunk/includes/subscription/class-wps-mailchimp.php
r1715462 r2717363 3 3 * MailChimp Subscription 4 4 */ 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; 8 } 5 9 6 10 class WPS_Subscription_MailChimp extends WPS_Subscription_Base { -
wp-subscribe/trunk/includes/wps-functions-options.php
r1715462 r2717363 7 7 * Get mailing services 8 8 * 9 * @use filter wp_subscribe_mailing_services9 * @use filter wp_subscribe_mailing_services 10 10 * @return array 11 11 */ … … 14 14 $services = array( 15 15 16 'aweber' => array(17 'title' => esc_html__( 'Aweber', 'wp-subscribe' ),18 'description' => esc_html__( 'Adds subscribers to your Aweber account.', 'wp-subscribe' ),19 'class' => 'WPS_Subscription_Aweber'20 ),16 'aweber' => array( 17 'title' => __( 'Aweber', 'wp-subscribe' ), 18 'description' => __( 'Adds subscribers to your Aweber account.', 'wp-subscribe' ), 19 'class' => 'WPS_Subscription_Aweber' 20 ), 21 21 22 22 'feedburner' => array( 23 'title' => esc_html__( 'FeedBurner', 'wp-subscribe' ),24 'description' => esc_html__( 'Adds subscribers to your FeedBurner account.', 'wp-subscribe' ),25 'class' => 'WPS_Subscription_FeedBurner'26 ),23 'title' => __( 'FeedBurner', 'wp-subscribe' ), 24 'description' => __( 'Adds subscribers to your FeedBurner account.', 'wp-subscribe' ), 25 'class' => 'WPS_Subscription_FeedBurner' 26 ), 27 27 28 28 'mailchimp' => array( 29 'title' => esc_html__( 'MailChimp', 'wp-subscribe' ),30 'description' => esc_html__( 'Adds subscribers to your MailChimp account.', 'wp-subscribe' ),29 'title' => __( 'MailChimp', 'wp-subscribe' ), 30 'description' => __( 'Adds subscribers to your MailChimp account.', 'wp-subscribe' ), 31 31 'class' => 'WPS_Subscription_MailChimp' 32 )32 ) 33 33 ); 34 34 -
wp-subscribe/trunk/includes/wps-helpers.php
r1823647 r2717363 31 31 ?> 32 32 <?php if( isset( $options['before_widget'] ) ) : ?> 33 <?php echo $options['before_widget']?>33 <?php echo wp_kses_post( $options['before_widget'] ); ?> 34 34 <?php else: ?> 35 35 <div class="wp-subscribe-popup-form-wrapper"> 36 36 <?php endif; ?> 37 37 38 <div id="wp-subscribe" class="wp-subscribe-wrap wp-subscribe wp-subscribe-<?php echo $wp_subscribe_forms?>" data-thanks_page="<?php echo absint( isset( $options['thanks_page'] ) ? $options['thanks_page'] : 0 ) ?>" data-thanks_page_url="<?php echo isset( $options['thanks_page_url'] ) ? esc_url( $options['thanks_page_url'] ) : '' ?>" data-thanks_page_new_window="0">38 <div id="wp-subscribe" class="wp-subscribe-wrap wp-subscribe wp-subscribe-<?php echo esc_attr( $wp_subscribe_forms ); ?>" data-thanks_page="<?php echo absint( isset( $options['thanks_page'] ) ? $options['thanks_page'] : 0 ) ?>" data-thanks_page_url="<?php echo isset( $options['thanks_page_url'] ) ? esc_url( $options['thanks_page_url'] ) : '' ?>" data-thanks_page_new_window="0"> 39 39 40 40 <h4 class="title"><?php echo wp_kses_post( $options['title'] )?></h4> … … 42 42 <p class="text"><?php echo wp_kses_post( $options['text'] ) ?></p> 43 43 44 <?php if( method_exists( $service, 'the_form' ) ) : 44 <?php 45 if ( method_exists( $service, 'the_form' ) ) : 45 46 $service->the_form( $wp_subscribe_forms, $options ); 46 else: ?> 47 48 <form action="<?php echo $current_url ?>" method="post" class="wp-subscribe-form wp-subscribe-<?php echo $options['service'] ?>" id="wp-subscribe-form-<?php echo $wp_subscribe_forms ?>"> 49 50 <?php if( !empty( $options['include_name_field'] ) ) : ?> 51 <input class="regular-text name-field" type="text" name="name" placeholder="<?php echo esc_attr( $options['name_placeholder'] ) ?>"> 52 <?php endif; ?> 53 54 <input class="regular-text email-field" type="text" name="email" placeholder="<?php echo esc_attr( $options['email_placeholder'] ) ?>"> 55 56 <input type="hidden" name="form_type" value="<?php echo $options['form_type'] ?>"> 57 58 <input type="hidden" name="service" value="<?php echo $options['service'] ?>"> 59 60 <input type="hidden" name="widget" value="<?php echo isset( $options['widget_id'] ) ? $options['widget_id'] : '0'; ?>"> 61 62 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ) ?>"> 63 64 </form> 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 echo wp_kses_post( $options['consent_text'] ); ?> 67 </label> 68 <?php endif; ?> 69 <input class="submit" type="submit" name="submit" value="<?php echo esc_attr( $options['button_text'] ); ?>"> 70 71 </form> 65 72 66 73 <?php endif; ?> … … 84 91 <div class="clear"></div> 85 92 86 <p class="footer-text"><?php echo $options['footer_text'];?></p>93 <p class="footer-text"><?php echo wp_kses_post( $options['footer_text'] );?></p> 87 94 88 95 </div> 89 96 90 97 <?php if( isset( $options['after_widget'] ) ) : ?> 91 <?php echo $options['after_widget']?>98 <?php echo wp_kses_post( $options['after_widget'] ); ?> 92 99 <?php else: ?> 93 100 </div><!-- /form-wrapper --> … … 187 194 ) ) ); 188 195 ?> 189 <input class="<?php echo esc_attr( $class ) ?>" id="<?php echo esc_attr( $id ) ?>" name="<?php echo esc_attr( $name ) ?>" type="text" value="<?php echo esc_attr( $value ) ?>"<?php if( isset( $data_id ) ) { printf( 'data-id="%s"', $data_id); } ?>>196 <input class="<?php echo esc_attr( $class ) ?>" id="<?php echo esc_attr( $id ) ?>" name="<?php echo esc_attr( $name ) ?>" type="text" value="<?php echo esc_attr( $value ) ?>"<?php if( isset( $data_id ) ) { printf( 'data-id="%s"', esc_attr( $data_id ) ); } ?>> 190 197 <?php 191 198 } -
wp-subscribe/trunk/includes/wps-widget.php
r1715462 r2717363 5 5 */ 6 6 7 if( ! class_exists('wp_subscribe') ) : 7 if ( ! defined( 'ABSPATH' ) ) { 8 exit; 9 } 8 10 9 11 class wp_subscribe extends WP_Widget { … … 12 14 * The Constructor 13 15 */ 14 public function __construct() {15 16 add_action( 'wp_enqueue_scripts',array( &$this, 'register_scripts' ) );17 add_action( 'admin_enqueue_scripts',array( &$this, 'enqueue_scripts' ) );18 add_action( 'customize_controls_enqueue_scripts',array( &$this, 'enqueue_scripts' ) );19 20 // Widget settings21 $widget_ops = array(22 'classname' => 'wp_subscribe',23 'description' => esc_html__( 'Displays subscription form, supports FeedBurner, MailChimp & AWeber.', 'wp-subscribe' )16 public function __construct() { 17 18 add_action( 'wp_enqueue_scripts', array( &$this, 'register_scripts' ) ); 19 add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_scripts' ) ); 20 add_action( 'customize_controls_enqueue_scripts', array( &$this, 'enqueue_scripts' ) ); 21 22 // Widget settings 23 $widget_ops = array( 24 'classname' => 'wp_subscribe', 25 'description' => esc_html__( 'Displays subscription form, supports FeedBurner, MailChimp & AWeber.', 'wp-subscribe' ) 24 26 ); 25 27 26 // Widget control settings27 $control_ops = array(28 // Widget control settings 29 $control_ops = array( 28 30 'id_base' => 'wp_subscribe' 29 31 ); 30 32 31 // Create the widget.32 parent::__construct(33 // Create the widget. 34 parent::__construct( 33 35 'wp_subscribe', 34 36 esc_html__( 'WP Subscribe Widget', 'wp-subscribe' ), … … 36 38 $control_ops 37 39 ); 38 }40 } 39 41 40 42 /** … … 46 48 return apply_filters( 'wp_subscribe_form_defaults', array( 47 49 'service' => 'feedburner', 48 'include_name_field' => false, 49 50 'title' => esc_html__( 'Get more stuff', 'wp-subscribe' ), 51 'text' => esc_html__( 'Subscribe to our mailing list and get interesting stuff and updates to your email inbox.', 'wp-subscribe' ), 52 'email_placeholder' => esc_html__( 'Enter your email here', 'wp-subscribe' ), 53 'name_placeholder' => esc_html__( 'Enter your name here', 'wp-subscribe' ), 54 'button_text' => esc_html__( 'Sign Up Now', 'wp-subscribe' ), 55 'success_message' => esc_html__( 'Thank you for subscribing.', 'wp-subscribe' ), 56 'error_message' => esc_html__( 'Something went wrong.', 'wp-subscribe' ), 57 'footer_text' => esc_html__( 'we respect your privacy and take protecting it seriously', 'wp-subscribe' ) 58 )); 59 } 50 'include_name_field' => false, 51 52 'title' => __( 'Get more stuff', 'wp-subscribe' ), 53 'text' => __( 'Subscribe to our mailing list and get interesting stuff and updates to your email inbox.', 'wp-subscribe' ), 54 'email_placeholder' => __( 'Enter your email here', 'wp-subscribe' ), 55 'consent_text' => __( 'I consent to my submitted data being collected via this form*', 'wp-subscribe' ), 56 'name_placeholder' => __( 'Enter your name here', 'wp-subscribe' ), 57 'button_text' => __( 'Sign Up Now', 'wp-subscribe' ), 58 'success_message' => __( 'Thank you for subscribing.', 'wp-subscribe' ), 59 'error_message' => __( 'Something went wrong.', 'wp-subscribe' ), 60 'footer_text' => __( 'we respect your privacy and take protecting it seriously', 'wp-subscribe' ) 61 )); 62 } 60 63 61 64 /** … … 63 66 * @return void 64 67 */ 65 function register_scripts() {66 67 wp_register_style( 'wp-subscribe', wps()->plugin_url() . '/assets/css/wp-subscribe-form.css' );68 wp_register_script( 'wp-subscribe', wps()->plugin_url() . '/assets/js/wp-subscribe-form.js', array( 'jquery' ) );69 70 wp_localize_script( 'wp-subscribe', 'wp_subscribe', array(68 function register_scripts() { 69 70 wp_register_style( 'wp-subscribe', wps()->plugin_url() . '/assets/css/wp-subscribe-form.css' ); 71 wp_register_script( 'wp-subscribe', wps()->plugin_url() . '/assets/js/wp-subscribe-form.js', array( 'jquery' ) ); 72 73 wp_localize_script( 'wp-subscribe', 'wp_subscribe', array( 71 74 'ajaxurl' => admin_url( 'admin-ajax.php' ) 72 75 ) ); 73 }76 } 74 77 75 78 /** … … 77 80 * @return void 78 81 */ 79 function enqueue_scripts() { 80 82 function enqueue_scripts() { 81 83 $screen = get_current_screen(); 82 84 $current_filter = current_filter(); 83 84 if ( 'widgets' === $screen->id || 'customize_controls_enqueue_scripts' === $current_filter ) { 85 86 wp_enqueue_style( 'wp-subscribe-options', wps()->plugin_url() . '/assets/css/wp-subscribe-options.css' ); 87 wp_enqueue_script( 'wp-subscribe-admin', wps()->plugin_url() . '/assets/js/wp-subscribe-admin.js', array( 'jquery' ) ); 88 } 89 } 85 if ( 'widgets' === $screen->id || 'customize_controls_enqueue_scripts' === $current_filter ) { 86 wp_enqueue_style( 'wp-subscribe-options', wps()->plugin_url() . '/assets/css/wp-subscribe-options.css' ); 87 } 88 89 wp_enqueue_script( 'wp-subscribe-admin', wps()->plugin_url() . '/assets/js/wp-subscribe-admin.js', array( 'jquery' ) ); 90 } 90 91 91 92 /** … … 95 96 * @return void 96 97 */ 97 function widget( $args, $instance ) {98 99 extract( $args ); 100 $instance = wp_parse_args( (array) $instance, $this->get_defaults() );98 function widget( $args, $instance ) { 99 100 extract( $args ); 101 $instance = wp_parse_args( (array) $instance, $this->get_defaults() ); 101 102 102 103 $instance['before_widget'] = $before_widget; … … 106 107 107 108 wps_the_form( $instance ); 108 }109 } 109 110 110 111 /** … … 116 117 * @return array 117 118 */ 118 function update( $new_instance, $old_instance ) {119 function update( $new_instance, $old_instance ) { 119 120 120 121 $instance = $old_instance; 121 $instance = array_merge( $instance, $new_instance );122 123 // Feedburner ID -- make sure the user didn't insert full url124 if( isset( $instance['feedburner_id'] ) && 0 === strpos( $instance['feedburner_id'], 'http' ) ) {122 $instance = array_merge( $instance, $new_instance ); 123 124 // Feedburner ID -- make sure the user didn't insert full url 125 if( isset( $instance['feedburner_id'] ) && 0 === strpos( $instance['feedburner_id'], 'http' ) ) { 125 126 $instance['feedburner_id'] = substr( $instance['feedburner_id'], strrpos( $instance['feedburner_id'], '/' ) + 1 ); 126 127 } 127 128 128 return $instance;129 }129 return $instance; 130 } 130 131 131 132 /** … … 135 136 * @return void 136 137 */ 137 function form( $instance ) {138 function form( $instance ) { 138 139 139 140 $instance = wp_parse_args( (array) $instance, $this->get_defaults() ); 140 141 $services = wps_get_mailing_services('options'); 141 ?>142 <div class="wp_subscribe_options_form">143 144 <!-- Hidden title field to prevent WP picking up Title Color field as widget title -->145 <input type="hidden" value="" id="<?php echo $this->get_field_id('title') ?>" name="<?php echo $this->get_field_name('title')?>">142 ?> 143 <div class="wp_subscribe_options_form"> 144 145 <!-- Hidden title field to prevent WP picking up Title Color field as widget title --> 146 <input type="hidden" value="" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>"> 146 147 147 148 <?php $this->field_select(array( … … 154 155 )); ?> 155 156 156 <div class="wp_subscribe_account_details">157 <div class="wp_subscribe_account_details"> 157 158 158 159 <?php foreach( $services as $service_id => $service_name ): ?> … … 165 166 <?php endforeach; ?> 166 167 167 </div><!-- .wp_subscribe_account_details -->168 169 <p class="wp_subscribe_include_name">170 171 <label for="<?php echo $this->get_field_id('include_name_field')?>">172 <input type="hidden" name="<?php echo $this->get_field_name('include_name_field'); ?>" value="0">173 <input id="<?php echo $this->get_field_id('include_name_field'); ?>" type="checkbox" class="include-name-field" name="<?php echo $this->get_field_name('include_name_field'); ?>" value="1" <?php checked($instance['include_name_field']); ?>>174 <?php echo wp_kses_post( __( 'Include <strong>Name</strong> field', 'wp-subscribe' ) ) ?>175 </label>168 </div><!-- .wp_subscribe_account_details --> 169 170 <p class="wp_subscribe_include_name"> 171 172 <label for="<?php echo esc_attr( $this->get_field_id('include_name_field') ); ?>"> 173 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name('include_name_field') ); ?>" value="0"> 174 <input id="<?php echo esc_attr( $this->get_field_id('include_name_field') ); ?>" type="checkbox" class="include-name-field" name="<?php echo esc_attr( $this->get_field_name('include_name_field') ); ?>" value="1" <?php checked($instance['include_name_field']); ?>> 175 <?php echo wp_kses_post( __( 'Include <strong>Name</strong> field', 'wp-subscribe' ) ) ?> 176 </label> 176 177 177 178 </p> 178 179 179 <h4 class="wp_subscribe_labels_header">180 <a class="wp-subscribe-toggle" href="#" rel="wp_subscribe_labels"><?php _e('Labels', 'wp-subscribe'); ?></a>180 <h4 class="wp_subscribe_labels_header"> 181 <a class="wp-subscribe-toggle" href="#" rel="wp_subscribe_labels"><?php esc_html_e('Labels', 'wp-subscribe'); ?></a> 181 182 </h4> 182 183 183 <div class="wp_subscribe_labels" style="display: none;">184 <div class="wp_subscribe_labels" style="display: none;"> 184 185 185 186 <?php … … 214 215 215 216 $this->field_text(array( 217 'id' => 'consent_text', 218 'name' => 'consent_text', 219 'title' => esc_html( 'Consent Label', 'wp-subscribe' ), 220 'value' => $instance['consent_text'] 221 )); 222 223 $this->field_text(array( 216 224 'id' => 'button_text', 217 225 'name' => 'button_text', … … 234 242 )); 235 243 236 $this->field_text (array(244 $this->field_textarea(array( 237 245 'id' => 'footer_text', 238 246 'name' => 'footer_text', … … 240 248 'value' => $instance['footer_text'] 241 249 )); 242 ?> 243 244 </div><!-- .wp_subscribe_labels --> 245 246 </div><!-- .wp_subscribe_options_form --> 247 <?php 248 } 249 250 // -------------------------- FIELD HELPRES ---------------------- 251 252 public function field_textarea( $args = array() ) { 253 250 ?> 251 252 </div><!-- .wp_subscribe_labels --> 253 254 </div><!-- .wp_subscribe_options_form --> 255 <?php 256 } 257 258 // -------------------------- FIELD HELPERS -------------------------- 259 260 public function field_textarea( $args = array() ) { 254 261 extract( $args ); 255 262 ?> 256 <p class="wp-subscribe-label-field wp-subscribe-<?php echo $id; ?>-field">257 <label for="<?php echo $this->get_field_id($id)?>">258 <?php echo $title?>259 </label>260 261 <textarea class="widefat" id="<?php echo $this->get_field_id($id) ?>" name="<?php echo $this->get_field_name($id)?>"><?php echo esc_textarea( $value ) ?></textarea>262 </p>263 264 <?php265 }263 <p class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 264 <label for="<?php echo esc_attr( $this->get_field_id($id) ); ?>"> 265 <?php echo wp_kses_post( $title ); ?> 266 </label> 267 268 <textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id($id) ); ?>" name="<?php echo esc_attr( $this->get_field_name($id) ); ?>"><?php echo esc_textarea( $value ) ?></textarea> 269 </p> 270 271 <?php 272 } 266 273 267 274 public function field_text( $args = array() ) { … … 269 276 extract( $args ); 270 277 ?> 271 <div class="wp-subscribe-label-field wp-subscribe-<?php echo $id; ?>-field">272 <label for="<?php echo $this->get_field_id( $id) ?>">273 <?php echo esc_html( $title ) ?>274 </label>278 <div class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 279 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ) ?>"> 280 <?php echo esc_html( $title ) ?> 281 </label> 275 282 276 283 <div class="wps-input-wrapper"> 277 284 278 285 <?php wps_field_text(array( 279 'id' => $this->get_field_id( $id ),280 'name' => $this->get_field_name( $id ),281 'value' => $value,286 'id' => $this->get_field_id( $id ), 287 'name' => $this->get_field_name( $id ), 288 'value' => $value, 282 289 'data_id' => $id 283 ) )?>290 ) ); ?> 284 291 285 292 <?php if( isset( $link ) ) { … … 293 300 </div> 294 301 295 </div>296 <?php297 }302 </div> 303 <?php 304 } 298 305 299 306 public function field_hidden( $args = array() ) { … … 302 309 303 310 wps_field_hidden(array( 304 'id' => $this->get_field_id( $id ),305 'name' => $this->get_field_name( $id ),306 'value' => $value,311 'id' => $this->get_field_id( $id ), 312 'name' => $this->get_field_name( $id ), 313 'value' => $value, 307 314 'data_id' => $id 308 315 )); 309 }316 } 310 317 311 318 public function field_raw( $args = array() ) { 312 319 313 320 call_user_func_array( $args['content'], array( $args['value'] ) ); 314 }321 } 315 322 316 323 public function field_checkbox( $args = array() ) { … … 318 325 extract( $args ); 319 326 ?> 320 <div class="wp-subscribe-<?php echo $id; ?>-field">321 322 <label for="<?php echo $this->get_field_id( $id )?>">323 324 <input type="hidden" name="<?php echo $this->get_field_name( $id ) ?>" value="0" data-id="<?php echo $this->get_field_id( $id )?>">325 326 <input type="checkbox" id="<?php echo $this->get_field_id( $id ) ?>" name="<?php echo $this->get_field_name( $id ) ?>" value="1"<?php checked( $value ) ?> data-id="<?php echo $id?>">327 328 <?php echo esc_html( $title)?>327 <div class="wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 328 329 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 330 331 <input type="hidden" name="<?php echo esc_attr( $this->get_field_name( $id ) ); ?>" value="0" data-id="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 332 333 <input type="checkbox" id="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $id ) ); ?>" value="1"<?php checked( $value ) ?> data-id="<?php echo esc_attr( $id ); ?>"> 334 335 <?php echo esc_html( $title ); ?> 329 336 330 337 </label> … … 334 341 } 335 342 336 public function field_select( $args = array() ) {343 public function field_select( $args = array() ) { 337 344 338 345 $options = array(); 339 346 extract( $args ); 340 ?>341 342 <div class="wp-subscribe-label-field wp-subscribe-<?php echo $id?>-field">343 <label for="<?php echo $this->get_field_id( $id )?>">344 <?php echo esc_html( $title ) ?>345 </label>347 ?> 348 349 <div class="wp-subscribe-label-field wp-subscribe-<?php echo esc_attr( $id ); ?>-field"> 350 <label for="<?php echo esc_attr( $this->get_field_id( $id ) ); ?>"> 351 <?php echo esc_html( $title ) ?> 352 </label> 346 353 347 354 <div class="wps-input-wrapper"> 348 355 <?php wps_field_select(array( 349 'id' => $this->get_field_id( $id ),350 'name' => $this->get_field_name( $id ),351 'value' => $value,356 'id' => $this->get_field_id( $id ), 357 'name' => $this->get_field_name( $id ), 358 'value' => $value, 352 359 'options' => $options, 353 'class' => 'widefat list-selectbox'360 'class' => 'widefat list-selectbox' 354 361 )) ?> 355 362 … … 368 375 </div> 369 376 370 </div>371 372 <?php373 }377 </div> 378 379 <?php 380 } 374 381 } 375 382 … … 380 387 add_action( 'widgets_init', 'wps_register_widget' ); 381 388 function wps_register_widget() { 382 register_widget( 'wp_subscribe' );389 register_widget( 'wp_subscribe' ); 383 390 } 384 385 endif; -
wp-subscribe/trunk/languages/wp-subscribe.pot
r1823649 r2717363 1 # Copyright (C) 20 18 WP Subscribe2 # This file is distributed under the same license as the WP Subscribe p ackage.1 # Copyright (C) 2022 MyThemeShop 2 # This file is distributed under the same license as the WP Subscribe plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Subscribe 1.2. 6\n"5 "Project-Id-Version: WP Subscribe 1.2.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-subscribe\n" 7 "POT-Creation-Date: 2018-02-17 01:23:40+00:00\n" 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 8 "Language-Team: LANGUAGE <[email protected]>\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 "Language-Team: LANGUAGE <[email protected]>\n" 14 15 #: includes/subscription/class-wps-aweber.php:67 12 "POT-Creation-Date: 2022-05-03T04:00:05+02:00\n" 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.6.0\n" 15 "X-Domain: wp-subscribe\n" 16 17 #. Plugin Name of the plugin 18 msgid "WP Subscribe" 19 msgstr "" 20 21 #. Plugin URI of the plugin 22 msgid "http://mythemeshop.com/plugins/wp-subscribe/" 23 msgstr "" 24 25 #. Description of the plugin 26 msgid "WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner." 27 msgstr "" 28 29 #. Author of the plugin 30 msgid "MyThemeShop" 31 msgstr "" 32 33 #. Author URI of the plugin 34 msgid "http://mythemeshop.com/" 35 msgstr "" 36 37 #: includes/subscription/class-wps-aweber.php:72 16 38 msgid "Unable to connect to Aweber. The Authorization Code is empty." 17 39 msgstr "" 18 40 19 #: includes/subscription/class-wps-aweber.php:77 20 msgid "" 21 "Unable to connect your Aweber Account. The Authorization Code is incorrect." 22 msgstr "" 23 24 #: includes/subscription/class-wps-aweber.php:203 41 #: includes/subscription/class-wps-aweber.php:82 42 msgid "Unable to connect your Aweber Account. The Authorization Code is incorrect." 43 msgstr "" 44 45 #: includes/subscription/class-wps-aweber.php:208 25 46 msgid "AWeber List" 26 47 msgstr "" 27 48 28 #: includes/subscription/class-wps-aweber.php:20 429 #: includes/subscription/class-wps-mailchimp.php:7 349 #: includes/subscription/class-wps-aweber.php:209 50 #: includes/subscription/class-wps-mailchimp.php:77 30 51 msgid "Select List" 31 52 msgstr "" 32 53 33 #: includes/subscription/class-wps-aweber.php:217 34 msgid "To connect your Aweber account:" 35 msgstr "" 36 37 #: includes/subscription/class-wps-aweber.php:220 38 msgid "" 39 "<span>1.</span> <a href=\"%s\" target=\"_blank\">Click here</a> <span>to " 40 "open the authorization page and log in.</span>" 41 msgstr "" 42 43 #: includes/subscription/class-wps-aweber.php:221 44 msgid "" 45 "<span>2.</span> Copy and paste the authorization code in the field below." 46 msgstr "" 47 48 #: includes/subscription/class-wps-aweber.php:230 49 msgid "Your Aweber Account is connected." 50 msgstr "" 51 52 #: includes/subscription/class-wps-aweber.php:231 53 msgid "" 54 "<a href=\"#\" class=\"aweber_disconnect\">Click here</a> <span>to disconnect." 55 "</span>" 56 msgstr "" 57 58 #: includes/subscription/class-wps-feedburner.php:39 54 #: includes/subscription/class-wps-feedburner.php:50 59 55 msgid "Feedburner ID" 60 56 msgstr "" 61 57 62 #: includes/subscription/class-wps-mailchimp.php:6 358 #: includes/subscription/class-wps-mailchimp.php:67 63 59 msgid "MailChimp API URL" 64 60 msgstr "" 65 61 66 #: includes/subscription/class-wps-mailchimp.php:6 462 #: includes/subscription/class-wps-mailchimp.php:68 67 63 msgid "The API key of your MailChimp account." 68 64 msgstr "" 69 65 70 #: includes/subscription/class-wps-mailchimp.php:7 266 #: includes/subscription/class-wps-mailchimp.php:76 71 67 msgid "MailChimp List" 72 68 msgstr "" 73 69 74 #: includes/subscription/class-wps-mailchimp.php:8 170 #: includes/subscription/class-wps-mailchimp.php:85 75 71 msgid "Send double opt-in notification" 76 72 msgstr "" … … 100 96 msgstr "" 101 97 102 #: includes/wps-helpers.php:2 1798 #: includes/wps-helpers.php:224 103 99 msgid "No Animation" 104 100 msgstr "" 105 101 106 #: includes/wps-helpers.php:2 18102 #: includes/wps-helpers.php:225 107 103 msgid "Attention Seekers" 108 104 msgstr "" 109 105 110 #: includes/wps-helpers.php:2 19106 #: includes/wps-helpers.php:226 111 107 msgid "bounce" 112 108 msgstr "" 113 109 114 #: includes/wps-helpers.php:22 0110 #: includes/wps-helpers.php:227 115 111 msgid "flash" 116 112 msgstr "" 117 113 118 #: includes/wps-helpers.php:22 1114 #: includes/wps-helpers.php:228 119 115 msgid "pulse" 120 116 msgstr "" 121 117 122 #: includes/wps-helpers.php:22 2118 #: includes/wps-helpers.php:229 123 119 msgid "rubberBand" 124 120 msgstr "" 125 121 126 #: includes/wps-helpers.php:2 23122 #: includes/wps-helpers.php:230 127 123 msgid "shake" 128 124 msgstr "" 129 125 130 #: includes/wps-helpers.php:2 24126 #: includes/wps-helpers.php:231 131 127 msgid "swing" 132 128 msgstr "" 133 129 134 #: includes/wps-helpers.php:2 25130 #: includes/wps-helpers.php:232 135 131 msgid "tada" 136 132 msgstr "" 137 133 138 #: includes/wps-helpers.php:2 26134 #: includes/wps-helpers.php:233 139 135 msgid "wobble" 140 136 msgstr "" 141 137 142 #: includes/wps-helpers.php:2 28138 #: includes/wps-helpers.php:235 143 139 msgid "Bouncing Entrances" 144 140 msgstr "" 145 141 146 #: includes/wps-helpers.php:2 29142 #: includes/wps-helpers.php:236 147 143 msgid "bounceIn" 148 144 msgstr "" 149 145 150 #: includes/wps-helpers.php:23 0146 #: includes/wps-helpers.php:237 151 147 msgid "bounceInDown" 152 148 msgstr "" 153 149 154 #: includes/wps-helpers.php:23 1150 #: includes/wps-helpers.php:238 155 151 msgid "bounceInLeft" 156 152 msgstr "" 157 153 158 #: includes/wps-helpers.php:23 2154 #: includes/wps-helpers.php:239 159 155 msgid "bounceInRight" 160 156 msgstr "" 161 157 162 #: includes/wps-helpers.php:2 33158 #: includes/wps-helpers.php:240 163 159 msgid "bounceInUp" 164 160 msgstr "" 165 161 166 #: includes/wps-helpers.php:2 35162 #: includes/wps-helpers.php:242 167 163 msgid "Fading Entrances" 168 164 msgstr "" 169 165 170 #: includes/wps-helpers.php:2 36166 #: includes/wps-helpers.php:243 171 167 msgid "fadeIn" 172 168 msgstr "" 173 169 174 #: includes/wps-helpers.php:2 37170 #: includes/wps-helpers.php:244 175 171 msgid "fadeInDown" 176 172 msgstr "" 177 173 178 #: includes/wps-helpers.php:2 38174 #: includes/wps-helpers.php:245 179 175 msgid "fadeInDownBig" 180 176 msgstr "" 181 177 182 #: includes/wps-helpers.php:2 39178 #: includes/wps-helpers.php:246 183 179 msgid "fadeInLeft" 184 180 msgstr "" 185 181 186 #: includes/wps-helpers.php:24 0182 #: includes/wps-helpers.php:247 187 183 msgid "fadeInLeftBig" 188 184 msgstr "" 189 185 190 #: includes/wps-helpers.php:24 1186 #: includes/wps-helpers.php:248 191 187 msgid "fadeInRight" 192 188 msgstr "" 193 189 194 #: includes/wps-helpers.php:24 2190 #: includes/wps-helpers.php:249 195 191 msgid "fadeInRightBig" 196 192 msgstr "" 197 193 198 #: includes/wps-helpers.php:2 43194 #: includes/wps-helpers.php:250 199 195 msgid "fadeInUp" 200 196 msgstr "" 201 197 202 #: includes/wps-helpers.php:2 44198 #: includes/wps-helpers.php:251 203 199 msgid "fadeInUpBig" 204 200 msgstr "" 205 201 206 #: includes/wps-helpers.php:2 46202 #: includes/wps-helpers.php:253 207 203 msgid "Flippers" 208 204 msgstr "" 209 205 210 #: includes/wps-helpers.php:2 47206 #: includes/wps-helpers.php:254 211 207 msgid "flipInX" 212 208 msgstr "" 213 209 214 #: includes/wps-helpers.php:2 48210 #: includes/wps-helpers.php:255 215 211 msgid "flipInY" 216 212 msgstr "" 217 213 218 #: includes/wps-helpers.php:25 0214 #: includes/wps-helpers.php:257 219 215 msgid "Lightspeed" 220 216 msgstr "" 221 217 222 #: includes/wps-helpers.php:25 1218 #: includes/wps-helpers.php:258 223 219 msgid "lightSpeedIn" 224 220 msgstr "" 225 221 226 #: includes/wps-helpers.php:2 53222 #: includes/wps-helpers.php:260 227 223 msgid "Rotating Entrances" 228 224 msgstr "" 229 225 230 #: includes/wps-helpers.php:2 54226 #: includes/wps-helpers.php:261 231 227 msgid "rotateIn" 232 228 msgstr "" 233 229 234 #: includes/wps-helpers.php:2 55230 #: includes/wps-helpers.php:262 235 231 msgid "rotateInDownLeft" 236 232 msgstr "" 237 233 238 #: includes/wps-helpers.php:2 56234 #: includes/wps-helpers.php:263 239 235 msgid "rotateInDownRight" 240 236 msgstr "" 241 237 242 #: includes/wps-helpers.php:2 57238 #: includes/wps-helpers.php:264 243 239 msgid "rotateInUpLeft" 244 240 msgstr "" 245 241 246 #: includes/wps-helpers.php:2 58242 #: includes/wps-helpers.php:265 247 243 msgid "rotateInUpRight" 248 244 msgstr "" 249 245 250 #: includes/wps-helpers.php:26 0246 #: includes/wps-helpers.php:267 251 247 msgid "Specials" 252 248 msgstr "" 253 249 254 #: includes/wps-helpers.php:26 1250 #: includes/wps-helpers.php:268 255 251 msgid "rollIn" 256 252 msgstr "" 257 253 258 #: includes/wps-helpers.php:2 63254 #: includes/wps-helpers.php:270 259 255 msgid "Zoom Entrances" 260 256 msgstr "" 261 257 262 #: includes/wps-helpers.php:2 64258 #: includes/wps-helpers.php:271 263 259 msgid "zoomIn" 264 260 msgstr "" 265 261 266 #: includes/wps-helpers.php:2 65262 #: includes/wps-helpers.php:272 267 263 msgid "zoomInDown" 268 264 msgstr "" 269 265 270 #: includes/wps-helpers.php:2 66266 #: includes/wps-helpers.php:273 271 267 msgid "zoomInLeft" 272 268 msgstr "" 273 269 274 #: includes/wps-helpers.php:2 67270 #: includes/wps-helpers.php:274 275 271 msgid "zoomInRight" 276 272 msgstr "" 277 273 278 #: includes/wps-helpers.php:2 68274 #: includes/wps-helpers.php:275 279 275 msgid "zoomInUp" 280 276 msgstr "" 281 277 282 #: includes/wps-widget.php:2 3278 #: includes/wps-widget.php:25 283 279 msgid "Displays subscription form, supports FeedBurner, MailChimp & AWeber." 284 280 msgstr "" 285 281 286 #: includes/wps-widget.php:3 4282 #: includes/wps-widget.php:36 287 283 msgid "WP Subscribe Widget" 288 284 msgstr "" 289 285 290 #: includes/wps-widget.php:5 0286 #: includes/wps-widget.php:52 291 287 msgid "Get more stuff" 292 288 msgstr "" 293 289 294 #: includes/wps-widget.php:51 295 msgid "" 296 "Subscribe to our mailing list and get interesting stuff and updates to your " 297 "email inbox." 298 msgstr "" 299 300 #: includes/wps-widget.php:52 290 #: includes/wps-widget.php:53 291 msgid "Subscribe to our mailing list and get interesting stuff and updates to your email inbox." 292 msgstr "" 293 294 #: includes/wps-widget.php:54 301 295 msgid "Enter your email here" 302 296 msgstr "" 303 297 304 #: includes/wps-widget.php:53 298 #: includes/wps-widget.php:55 299 msgid "I consent to my submitted data being collected via this form*" 300 msgstr "" 301 302 #: includes/wps-widget.php:56 305 303 msgid "Enter your name here" 306 304 msgstr "" 307 305 308 #: includes/wps-widget.php:5 4306 #: includes/wps-widget.php:57 309 307 msgid "Sign Up Now" 310 308 msgstr "" 311 309 312 #: includes/wps-widget.php:5 5310 #: includes/wps-widget.php:58 313 311 msgid "Thank you for subscribing." 314 312 msgstr "" 315 313 316 #: includes/wps-widget.php:5 6314 #: includes/wps-widget.php:59 317 315 msgid "Something went wrong." 318 316 msgstr "" 319 317 320 #: includes/wps-widget.php: 57318 #: includes/wps-widget.php:60 321 319 msgid "we respect your privacy and take protecting it seriously" 322 320 msgstr "" 323 321 324 #: includes/wps-widget.php:17 4322 #: includes/wps-widget.php:175 325 323 msgid "Include <strong>Name</strong> field" 326 324 msgstr "" 327 325 328 #: includes/wps-widget.php:18 0326 #: includes/wps-widget.php:181 329 327 msgid "Labels" 330 328 msgstr "" 331 329 332 #: includes/wps-widget.php:286 includes/wps-widget.php:361 330 #: includes/wps-widget.php:293 331 #: includes/wps-widget.php:368 333 332 msgid "Click here" 334 333 msgstr "" 335 334 336 #: includes/wps-widget.php:3 57335 #: includes/wps-widget.php:364 337 336 msgid "Get list" 338 337 msgstr "" 339 338 340 #: wp-subscribe.php:61 wp-subscribe.php:68 339 #: wp-subscribe.php:61 340 #: wp-subscribe.php:68 341 341 msgid "Cheatin’ huh?" 342 342 msgstr "" 343 343 344 #: wp-subscribe.php:160 344 #. Translators: %s is "WP Subscribe Pro" as a link. 345 #: wp-subscribe.php:125 346 msgid "Like WP Subscribe plugin? You will LOVE %s!" 347 msgstr "" 348 349 #: wp-subscribe.php:135 350 msgid "Thank you for trying WP Subscribe. We hope you will like it." 351 msgstr "" 352 353 #: wp-subscribe.php:206 345 354 msgid "No aweber authorization code found." 346 355 msgstr "" 347 356 348 #: wp-subscribe.php: 192357 #: wp-subscribe.php:238 349 358 msgid "No data found." 350 359 msgstr "" 351 360 352 #: wp-subscribe.php:2 00361 #: wp-subscribe.php:246 353 362 msgid "No email address found." 354 363 msgstr "" 355 364 356 #: wp-subscribe.php:2 07365 #: wp-subscribe.php:253 357 366 msgid "Not a valid email address." 358 367 msgstr "" 359 368 360 #: wp-subscribe.php:2 16369 #: wp-subscribe.php:262 361 370 msgid "Unknown mailing service called." 362 371 msgstr "" 363 372 364 #: wp-subscribe.php:2 51373 #: wp-subscribe.php:297 365 374 msgid "Not permitted." 366 375 msgstr "" 367 376 368 #: wp-subscribe.php: 260377 #: wp-subscribe.php:306 369 378 msgid "Service not defined." 370 379 msgstr "" 371 380 372 #: wp-subscribe.php: 278381 #: wp-subscribe.php:324 373 382 msgid "No lists found." 374 383 msgstr "" 375 376 #. Plugin Name of the plugin/theme377 msgid "WP Subscribe"378 msgstr ""379 380 #. Plugin URI of the plugin/theme381 msgid "http://mythemeshop.com/plugins/wp-subscribe/"382 msgstr ""383 384 #. Description of the plugin/theme385 msgid ""386 "WP Subscribe is a simple but powerful subscription plugin which supports "387 "MailChimp, Aweber and Feedburner."388 msgstr ""389 390 #. Author of the plugin/theme391 msgid "MyThemeShop"392 msgstr ""393 394 #. Author URI of the plugin/theme395 msgid "http://mythemeshop.com/"396 msgstr "" -
wp-subscribe/trunk/readme.txt
r2357681 r2717363 4 4 Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner, 5 5 Requires at least: 4.0 6 Tested up to: 5. 57 Stable tag: 1.2.1 26 Tested up to: 5.9.3 7 Stable tag: 1.2.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 83 83 == Changelog == 84 85 = 1.2.13 = 86 * Fixed a security issue 84 87 85 88 = 1.2.12 = -
wp-subscribe/trunk/wp-subscribe.php
r1849523 r2717363 4 4 * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/ 5 5 * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner. 6 * Version: 1.2. 76 * Version: 1.2.13 7 7 * Author: MyThemeShop 8 8 * Author URI: http://mythemeshop.com/ … … 28 28 * @var string 29 29 */ 30 private $version = '1.2. 6';30 private $version = '1.2.13'; 31 31 32 32 /** … … 78 78 include_once 'includes/wps-functions-options.php'; 79 79 include_once 'includes/wps-widget.php'; 80 80 register_activation_hook( __FILE__, array( $this, 'activate_plugin' ) ); 81 81 $this->autoloader(); 82 82 $this->hooks(); … … 109 109 $this->add_action( 'wp_ajax_nopriv_validate_subscribe', 'validate_subscribe' ); 110 110 $this->add_action( 'wp_ajax_connect_aweber', 'connect_aweber' ); 111 112 /* Display a notice */ 113 $this->add_action('admin_notices', 'wp_subscribe_admin_notice'); 114 $this->add_action('wp_ajax_mts_dismiss_wpsubscribe_notice', 'wp_subscribe_admin_notice_ignore'); 115 } 116 117 public function wp_subscribe_admin_notice() { 118 global $current_user ; 119 $user_id = $current_user->ID; 120 /* Check that the user hasn't already clicked to ignore the message */ 121 /* Only show the notice 2 days after plugin activation */ 122 if ( ! get_user_meta($user_id, 'wp_subscribe_ignore_notice') && time() >= (get_option( 'wp_subscribe_activated', 0 ) + (2 * 24 * 60 * 60)) ) { 123 echo '<div class="updated notice-info wp-subscribe-notice" id="wpsubscribe-notice" style="position:relative;">'; 124 // Translators: %s is "WP Subscribe Pro" as a link. 125 echo '<p>' . sprintf( __('Like WP Subscribe plugin? You will LOVE %s!', 'wp-subscribe'), '<a target="_blank" href="https://mythemeshop.com/plugins/wp-subscribe-pro/?utm_source=WP+Subscribe&utm_medium=Notification+Link&utm_content=WP+Subscribe+Pro+LP&utm_campaign=WordPressOrg"><strong>WP Subscribe Pro</strong></a>' ) . '</p><a class="notice-dismiss wpsubscribe-dismiss-notice" data-ignore="0" href="#"></a>'; 126 echo "</div>"; 127 } 128 /* Other notice appears right after activating */ 129 /* And it gets hidden after showing 3 times */ 130 if ( ! get_user_meta($user_id, 'wp_subscribe_ignore_notice_2') && get_option('wp_subscribe_notice_views', 0) < 3 && get_option( 'wp_subscribe_activated', 0 ) ) { 131 $views = get_option('wp_subscribe_notice_views', 0); 132 update_option( 'wp_subscribe_notice_views', ($views + 1) ); 133 echo '<div class="updated notice-info wp-subscribe-notice" id="wpsubscribe-notice2" style="position:relative;">'; 134 echo '<p>'; 135 esc_html_e('Thank you for trying WP Subscribe. We hope you will like it.', 'wp-subscribe'); 136 echo '</p>'; 137 echo '<a class="notice-dismiss wpsubscribe-dismiss-notice" data-ignore="1" href="#"></a>'; 138 echo "</div>"; 139 } 140 } 141 142 public function wp_subscribe_admin_notice_ignore() { 143 global $current_user; 144 $user_id = $current_user->ID; 145 /* If user clicks to ignore the notice, add that to their user meta */ 146 if ( isset($_POST['dismiss']) ) { 147 if ( '0' == $_POST['dismiss'] ) { 148 add_user_meta($user_id, 'wp_subscribe_ignore_notice', '1', true); 149 } elseif ( '1' == $_POST['dismiss'] ) { 150 add_user_meta($user_id, 'wp_subscribe_ignore_notice_2', '1', true); 151 } 152 } 153 } 154 155 public function activate_plugin() { 156 update_option('wp_subscribe_activated', time()); 111 157 } 112 158 … … 150 196 load_plugin_textdomain( 'wp-subscribe', false, $this->plugin_dir() . '/languages' ); 151 197 } 152 198 153 199 public function connect_aweber() { 154 200
Note: See TracChangeset
for help on using the changeset viewer.