Version Description
Download this release
Release Info
Developer | eherman24 |
Plugin | Easy Forms for MailChimp |
Version | 6.0.3.9 |
Comparing to | |
See all releases |
Code changes from version 6.0.3.8 to 6.0.3.9
- admin/class-yikes-inc-easy-mailchimp-extender-admin.php +1 -1
- admin/partials/welcome-page/welcome-sections/add-ons-section.php +1 -1
- includes/class-yikes-inc-easy-mailchimp-extender.php +1 -1
- public/partials/shortcodes/process/process_form_submission.php +12 -0
- public/partials/shortcodes/process/process_form_submission_ajax.php +16 -2
- readme.txt +1 -9
- yikes-inc-easy-mailchimp-extender.php +1 -1
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -765,7 +765,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
765 |
case 'd/m/Y':
|
766 |
case 'dd/mm/yyyy':
|
767 |
case 'DD/MM/YYYY':
|
768 |
-
return( 'dd/mm/
|
769 |
break;
|
770 |
}
|
771 |
}
|
765 |
case 'd/m/Y':
|
766 |
case 'dd/mm/yyyy':
|
767 |
case 'DD/MM/YYYY':
|
768 |
+
return( 'dd/mm/yyyy' );
|
769 |
break;
|
770 |
}
|
771 |
}
|
admin/partials/welcome-page/welcome-sections/add-ons-section.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
// enqueue add-ons css
|
3 |
-
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-addons-styles', YIKES_MC_URL . 'admin/css/yikes-inc-easy-mailchimp-extender-addons.min.css', array(), '6.0.3.
|
4 |
?>
|
5 |
<!-- we're just overriding the header size here -->
|
6 |
<style>
|
1 |
<?php
|
2 |
// enqueue add-ons css
|
3 |
+
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-addons-styles', YIKES_MC_URL . 'admin/css/yikes-inc-easy-mailchimp-extender-addons.min.css', array(), '6.0.3.9', 'all' );
|
4 |
?>
|
5 |
<!-- we're just overriding the header size here -->
|
6 |
<style>
|
includes/class-yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -62,7 +62,7 @@ class Yikes_Inc_Easy_Mailchimp_Extender {
|
|
62 |
*/
|
63 |
public function __construct() {
|
64 |
$this->yikes_inc_easy_mailchimp_extender = 'yikes-inc-easy-mailchimp-extender';
|
65 |
-
$this->version = '6.0.3.
|
66 |
$this->load_dependencies();
|
67 |
$this->set_locale();
|
68 |
$this->define_admin_hooks();
|
62 |
*/
|
63 |
public function __construct() {
|
64 |
$this->yikes_inc_easy_mailchimp_extender = 'yikes-inc-easy-mailchimp-extender';
|
65 |
+
$this->version = '6.0.3.9';
|
66 |
$this->load_dependencies();
|
67 |
$this->set_locale();
|
68 |
$this->define_admin_hooks();
|
public/partials/shortcodes/process/process_form_submission.php
CHANGED
@@ -79,6 +79,18 @@ if ( ! isset( $_POST['yikes_easy_mc_new_subscriber'] ) || ! wp_verify_nonce( $_P
|
|
79 |
// loop to push variables to our array
|
80 |
foreach ( $_POST as $merge_tag => $value ) {
|
81 |
if( $merge_tag != 'yikes_easy_mc_new_subscriber' && $merge_tag != '_wp_http_referer' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
if( is_numeric( $merge_tag ) ) { // this is is an interest group!
|
83 |
$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
|
84 |
} else { // or else it's just a standard merge variable
|
79 |
// loop to push variables to our array
|
80 |
foreach ( $_POST as $merge_tag => $value ) {
|
81 |
if( $merge_tag != 'yikes_easy_mc_new_subscriber' && $merge_tag != '_wp_http_referer' ) {
|
82 |
+
// check if the current iteration has a 'date_format' key set
|
83 |
+
// (aka - date/birthday fields)
|
84 |
+
if( isset( $form_settings['fields'][$merge_tag]['date_format'] ) ) {
|
85 |
+
// check if EU date format
|
86 |
+
if( $form_settings['fields'][$merge_tag]['date_format'] == 'DD/MM/YYYY' ) {
|
87 |
+
// convert '/' to '.' and to UNIX timestamp
|
88 |
+
$value = date( 'Y-m-d', strtotime( str_replace( '/', '.', $value ) ) );
|
89 |
+
} else {
|
90 |
+
// convert to UNIX timestamp
|
91 |
+
$value = date( 'Y-m-d', strtotime( $value ) );
|
92 |
+
}
|
93 |
+
}
|
94 |
if( is_numeric( $merge_tag ) ) { // this is is an interest group!
|
95 |
$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
|
96 |
} else { // or else it's just a standard merge variable
|
public/partials/shortcodes/process/process_form_submission_ajax.php
CHANGED
@@ -23,6 +23,8 @@
|
|
23 |
$submission_settings = json_decode( stripslashes( $form_data['submission_settings'] ), true );
|
24 |
// decode our optin settings
|
25 |
$optin_settings = json_decode( stripslashes( $form_data['optin_settings'] ), true );
|
|
|
|
|
26 |
/* Decode our error messages
|
27 |
* Workaround for international characters (cyrillic etc)
|
28 |
* See: https://wordpress.org/support/topic/custom-messages-do-not-support-cyrillic-characters?replies=11#post-7629620
|
@@ -76,10 +78,22 @@
|
|
76 |
exit();
|
77 |
}
|
78 |
}
|
79 |
-
|
80 |
// loop to push variables to our array
|
81 |
foreach ( $data as $merge_tag => $value ) {
|
82 |
-
if( $merge_tag != 'yikes_easy_mc_new_subscriber' && $merge_tag != '_wp_http_referer' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
if( is_numeric( $merge_tag ) ) { // this is is an interest group!
|
84 |
$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
|
85 |
} else { // or else it's just a standard merge variable
|
23 |
$submission_settings = json_decode( stripslashes( $form_data['submission_settings'] ), true );
|
24 |
// decode our optin settings
|
25 |
$optin_settings = json_decode( stripslashes( $form_data['optin_settings'] ), true );
|
26 |
+
// decode our fields
|
27 |
+
$form_fields = json_decode( stripslashes( $form_data['fields'] ), true );
|
28 |
/* Decode our error messages
|
29 |
* Workaround for international characters (cyrillic etc)
|
30 |
* See: https://wordpress.org/support/topic/custom-messages-do-not-support-cyrillic-characters?replies=11#post-7629620
|
78 |
exit();
|
79 |
}
|
80 |
}
|
81 |
+
|
82 |
// loop to push variables to our array
|
83 |
foreach ( $data as $merge_tag => $value ) {
|
84 |
+
if( $merge_tag != 'yikes_easy_mc_new_subscriber' && $merge_tag != '_wp_http_referer' ) {
|
85 |
+
// check if the current iteration has a 'date_format' key set
|
86 |
+
// (aka - date/birthday fields)
|
87 |
+
if( isset( $form_fields[$merge_tag]['date_format'] ) ) {
|
88 |
+
// check if EU date format
|
89 |
+
if( $form_fields[$merge_tag]['date_format'] == 'DD/MM/YYYY' ) {
|
90 |
+
// convert '/' to '.' and to UNIX timestamp
|
91 |
+
$value = date( 'Y-m-d', strtotime( str_replace( '/', '.', $value ) ) );
|
92 |
+
} else {
|
93 |
+
// convert to UNIX timestamp
|
94 |
+
$value = date( 'Y-m-d', strtotime( $value ) );
|
95 |
+
}
|
96 |
+
}
|
97 |
if( is_numeric( $merge_tag ) ) { // this is is an interest group!
|
98 |
$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
|
99 |
} else { // or else it's just a standard merge variable
|
readme.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
=== Easy Forms for MailChimp ===
|
2 |
-
added `stripslashes()` to the following settings fields :
|
3 |
-
Updated readme FAQ section
|
4 |
-
added `stripslashes()` to the following settings fields :
|
5 |
-
Updated readme FAQ section
|
6 |
-
added `stripslashes()` to the following settings fields :
|
7 |
-
Updated readme FAQ section
|
8 |
-
added `stripslashes()` to the following settings fields :
|
9 |
-
Updated readme FAQ section
|
1 |
+
=== Easy Forms for MailChimp ===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Forms for MailChimp by YIKES
|
4 |
* Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
|
5 |
* Description: YIKES Easy Forms for MailChimp links your site to MailChimp and allows you to generate and display mailing list opt-in forms anywhere on your site with ease.
|
6 |
-
* Version: 6.0.3.
|
7 |
* Author: YIKES
|
8 |
* Author URI: http://www.yikesinc.com/
|
9 |
* License: GPL-3.0+
|
3 |
* Plugin Name: Easy Forms for MailChimp by YIKES
|
4 |
* Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
|
5 |
* Description: YIKES Easy Forms for MailChimp links your site to MailChimp and allows you to generate and display mailing list opt-in forms anywhere on your site with ease.
|
6 |
+
* Version: 6.0.3.9
|
7 |
* Author: YIKES
|
8 |
* Author URI: http://www.yikesinc.com/
|
9 |
* License: GPL-3.0+
|