Easy Forms for MailChimp - Version 5.3.3

Version Description

  • February 26th, 2015 =

  • Enhancement: Added a new filter to alter field labels. Very helpful when you want to alter the default 'Email Address' field label to something else. (yikes_mc_field_label) (see 'filters' section in 'Other Notes')

Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Easy Forms for MailChimp
Version 5.3.3
Comparing to
See all releases

Code changes from version 5.3.2 to 5.3.3

lib/inc/yks-mc-frontend-form-display.php CHANGED
@@ -53,7 +53,7 @@ based on the setting in the dashboard, table vs div
53
 
54
  <tr class="yks-mailchimpFormTableRow yks-mc-tr-<?php echo sanitize_title( $field['label'] ); ?>" <?php if($field['active'] == 0) { echo 'style="display:none;"'; } ?>>
55
  <td class="prompt yks-mailchimpFormTableRowLabel">
56
- <label class="prompt yks-mailchimpFormTableRowLabel<?php echo $reqlabel; ?> yks-mc-label-<?php echo sanitize_title( $field['label'] ); ?>" for="<?php echo $field['id']; ?>"><?php echo $field['label']; ?><?php echo $reqindicator; ?></label>
57
  <!-- run our function to generate the input fields for the form, passing in the field -->
58
  <?php echo $this->getFrontendFormDisplay_field($field,$num); ?>
59
  </td>
@@ -145,7 +145,7 @@ based on the setting in the dashboard, table vs div
145
  }
146
  ?>
147
  <div class="yks-mailchimpFormDivRow yks-mc-form-row-<?php echo sanitize_title( $field['label'] ); ?>" <?php if($field['active'] == 0) { echo 'style="display:none;"'; } ?>>
148
- <label class="prompt yks-mailchimpFormDivRowLabel<?php echo $reqlabel; ?> yks-mc-label-<?php echo sanitize_title( $field['label'] ); ?>" for="<?php echo $field['id']; ?>"><?php echo $field['label']; ?><?php echo $reqindicator; ?></label>
149
  <div class="yks-mailchimpFormDivRowField yks-mc-input-field-row-<?php echo sanitize_title( $field['label'] ); ?>">
150
  <!-- run our function to generate the input fields for the form, passing in the field -->
151
  <?php echo $this->getFrontendFormDisplay_field($field,$num); ?>
53
 
54
  <tr class="yks-mailchimpFormTableRow yks-mc-tr-<?php echo sanitize_title( $field['label'] ); ?>" <?php if($field['active'] == 0) { echo 'style="display:none;"'; } ?>>
55
  <td class="prompt yks-mailchimpFormTableRowLabel">
56
+ <label class="prompt yks-mailchimpFormTableRowLabel<?php echo $reqlabel; ?> yks-mc-label-<?php echo sanitize_title( $field['label'] ); ?>" for="<?php echo $field['id']; ?>"><?php echo apply_filters( 'yikes_mc_field_label' , $field['label'] ); ?><?php echo $reqindicator; ?></label>
57
  <!-- run our function to generate the input fields for the form, passing in the field -->
58
  <?php echo $this->getFrontendFormDisplay_field($field,$num); ?>
59
  </td>
145
  }
146
  ?>
147
  <div class="yks-mailchimpFormDivRow yks-mc-form-row-<?php echo sanitize_title( $field['label'] ); ?>" <?php if($field['active'] == 0) { echo 'style="display:none;"'; } ?>>
148
+ <label class="prompt yks-mailchimpFormDivRowLabel<?php echo $reqlabel; ?> yks-mc-label-<?php echo sanitize_title( $field['label'] ); ?>" for="<?php echo $field['id']; ?>"><?php echo apply_filters( 'yikes_mc_field_label' , $field['label'] ); ?><?php echo $reqindicator; ?></label>
149
  <div class="yks-mailchimpFormDivRowField yks-mc-input-field-row-<?php echo sanitize_title( $field['label'] ); ?>">
150
  <!-- run our function to generate the input fields for the form, passing in the field -->
151
  <?php echo $this->getFrontendFormDisplay_field($field,$num); ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yikesinc.com
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
- Stable tag: 5.3.2
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
@@ -342,6 +342,46 @@ N/A
342
 
343
  **Filters**
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  **Filter Name:**
346
  `yks_mailchimp_user_role`
347
 
@@ -795,6 +835,10 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
795
 
796
  == Changelog ==
797
 
 
 
 
 
798
  = 5.3.2 - February 17th, 2015 =
799
 
800
  * Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
@@ -1069,6 +1113,9 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
1069
 
1070
  == Upgrade Notice ==
1071
 
 
 
 
1072
  = 5.3.2 - February 17th, 2015 =
1073
  * Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
1074
 
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
+ Stable tag: 5.3.3
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
342
 
343
  **Filters**
344
 
345
+ **Filter Name:**
346
+ `yikes_mc_field_label`
347
+
348
+ **Accepted Parameters:**
349
+ `$label`
350
+
351
+ **Parameter Info:**
352
+
353
+ `$label = the text of the field label you would like to alter.`
354
+
355
+ **Description:**
356
+ The following example will change the default 'Email Address' label to 'Email!'
357
+
358
+ **Example:**
359
+ This example will alter the 'Email Address' field label, and return 'Email!'
360
+
361
+ `
362
+ <?php
363
+ /**
364
+ * This example will alter the 'Email Address' field label, and return a
365
+ * new custom label name ('Email!')
366
+ * anything else falls under 'default' and returns the un-altered label
367
+ */
368
+ function alter_mailchimp_field_labels( $label ) {
369
+
370
+ switch ( $label ) {
371
+ default :
372
+ echo $label;
373
+ break;
374
+
375
+ case 'Email Address': // text of the existing label
376
+ echo 'Email!'; // new email label text
377
+ break;
378
+ }
379
+ }
380
+ add_filter( 'yikes_mc_field_label' , 'alter_mailchimp_field_labels' );
381
+ ?>
382
+ `
383
+ <br />
384
+
385
  **Filter Name:**
386
  `yks_mailchimp_user_role`
387
 
835
 
836
  == Changelog ==
837
 
838
+ = 5.3.3 - February 26th, 2015 =
839
+
840
+ * Enhancement: Added a new filter to alter field labels. Very helpful when you want to alter the default 'Email Address' field label to something else. (`yikes_mc_field_label`) (see 'filters' section in 'Other Notes')
841
+
842
  = 5.3.2 - February 17th, 2015 =
843
 
844
  * Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
1113
 
1114
  == Upgrade Notice ==
1115
 
1116
+ = 5.3.3 - February 26th, 2015 =
1117
+ * Enhancement: Added a new filter to alter field labels. Very helpful when you want to alter the default 'Email Address' field label to something else. (`yikes_mc_field_label`) (see 'filters' section in 'Other Notes')
1118
+
1119
  = 5.3.2 - February 17th, 2015 =
1120
  * Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
1121
 
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
- Version: 5.3.2
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
- if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.3.2');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
+ Version: 5.3.3
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
+ if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.3.3');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');