From 0ac47187361f4d57108ad3081ed55e316d1bf9cc Mon Sep 17 00:00:00 2001 From: polepalligayathridevi Date: Fri, 23 Feb 2024 15:13:59 +0530 Subject: [PATCH 1/5] [INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] added for in the label and id in the email input field --- README.txt | 2 +- changelog.md | 3 +++ plugin.php | 6 +++--- views/widget.subscribe.display.php | 12 ++++++------ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.txt b/README.txt index 6af6e65..21dd898 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: sailthru-wp Tags: personalization, email, Requires at least: 5.5 Tested up to: 5.7 -Stable tag: 4.3.1 +Stable tag: 4.3.2 Provides an integration with Sailthru diff --git a/changelog.md b/changelog.md index bce557c..4e7d266 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## v4.3.2 (2024-02-23) +Added for in label and id in input field + ## v4.3.1 (2023-07-07) Added fix for ad-blocker diff --git a/plugin.php b/plugin.php index d6a9d56..39f325c 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Sailthru for WordPress Plugin URI: http://sailthru.com/ Description: Add the power of Sailthru to your WordPress set up. -Version: 4.3.1 +Version: 4.3.2 Requires at least: 5.5 Author: Sailthru Author URI: http://sailthru.com @@ -36,7 +36,7 @@ * @var const $version The current version of the plugin. */ if ( ! defined( 'SAILTHRU_PLUGIN_VERSION' ) ) { - define( 'SAILTHRU_PLUGIN_VERSION', '4.3.1' ); + define( 'SAILTHRU_PLUGIN_VERSION', '4.3.2' ); } if ( ! defined( 'SAILTHRU_PLUGIN_PATH' ) ) { @@ -180,7 +180,7 @@ function sailthru_deactivate( $network_wide ) { */ function sailthru_uninstall( $network_wide ) { remove_options(); -} +} function remove_options() { diff --git a/views/widget.subscribe.display.php b/views/widget.subscribe.display.php index ba991d4..7646090 100644 --- a/views/widget.subscribe.display.php +++ b/views/widget.subscribe.display.php @@ -63,8 +63,8 @@
- - + +
'; } elseif ( 'checkbox' === $customfields[ $field_key ]['sailthru_customfield_type'] ) { $items = explode( ',', $customfields[ $field_key ]['sailthru_customfield_value'] ); - + echo '
'; echo ''; - + foreach ( $items as $item ) { - + if ( ! empty( $item ) ) { $vals = explode( ':', $item ); @@ -199,7 +199,7 @@ } - + echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . ''; } } From b69c64007b872845532f67360ddc77c89979cb99 Mon Sep 17 00:00:00 2001 From: polepalligayathridevi Date: Fri, 23 Feb 2024 17:34:25 +0530 Subject: [PATCH 2/5] [INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] fix the spacing issue --- plugin.php | 2 +- views/widget.subscribe.display.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.php b/plugin.php index 39f325c..a53dfa0 100644 --- a/plugin.php +++ b/plugin.php @@ -180,7 +180,7 @@ function sailthru_deactivate( $network_wide ) { */ function sailthru_uninstall( $network_wide ) { remove_options(); -} +} function remove_options() { diff --git a/views/widget.subscribe.display.php b/views/widget.subscribe.display.php index 7646090..0bf6236 100644 --- a/views/widget.subscribe.display.php +++ b/views/widget.subscribe.display.php @@ -187,7 +187,7 @@ echo '
'; echo ''; - foreach ( $items as $item ) { + foreach ( $items as $item ) { if ( ! empty( $item ) ) { $vals = explode( ':', $item ); @@ -200,7 +200,7 @@ - echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . ''; + echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . ''; } } echo '
'; From 635b88b4b6287ad00cf0b826a0eabc52116b2d3c Mon Sep 17 00:00:00 2001 From: polepalligayathridevi Date: Fri, 23 Feb 2024 17:48:30 +0530 Subject: [PATCH 3/5] [INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] removed white space --- plugin.php | 2 +- views/widget.subscribe.display.php | 560 ++++++++++++++--------------- 2 files changed, 281 insertions(+), 281 deletions(-) diff --git a/plugin.php b/plugin.php index a53dfa0..39f325c 100644 --- a/plugin.php +++ b/plugin.php @@ -180,7 +180,7 @@ function sailthru_deactivate( $network_wide ) { */ function sailthru_uninstall( $network_wide ) { remove_options(); -} +} function remove_options() { diff --git a/views/widget.subscribe.display.php b/views/widget.subscribe.display.php index 0bf6236..88a1a39 100644 --- a/views/widget.subscribe.display.php +++ b/views/widget.subscribe.display.php @@ -1,383 +1,383 @@ id; - - $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', esc_attr( $instance['title'] ) ); - $source = empty( $instance['source'] ) ? get_bloginfo( 'url' ) : esc_attr( $instance['source'] ); - $lo_event_name = empty( $instance['lo_event_name'] ) ? '' : esc_attr( $instance['lo_event_name'] ); - $reset_optout_status = empty( $instance['reset_optout_status'] ) ? '' : esc_attr( $instance['reset_optout_status'] ); - $hide_title_status = empty( $instance['hide_title_status'] ) ? '' : esc_attr( $instance['hide_title_status'] ); - - if ( ! empty( $instance['sailthru_list'] ) ) { - if ( is_array( $instance['sailthru_list'] ) ) { - $sailthru_list = implode( ',', $instance['sailthru_list'] ); - } else { - $sailthru_list = $instance['sailthru_list']; - } - } else { - $sailthru_list = ''; - } - - // display options - $customfields = get_option( 'sailthru_forms_options' ); - $sailthru = get_option( 'sailthru_setup_options' ); - // nonce - $nonce = wp_create_nonce( 'add_subscriber_nonce' ); +/* +* Grab the settings from $instance and fill out default +* values as needed. +*/ +$widget_id = $this->id; + +$title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', esc_attr( $instance['title'] ) ); +$source = empty( $instance['source'] ) ? get_bloginfo( 'url' ) : esc_attr( $instance['source'] ); +$lo_event_name = empty( $instance['lo_event_name'] ) ? '' : esc_attr( $instance['lo_event_name'] ); +$reset_optout_status = empty( $instance['reset_optout_status'] ) ? '' : esc_attr( $instance['reset_optout_status'] ); +$hide_title_status = empty( $instance['hide_title_status'] ) ? '' : esc_attr( $instance['hide_title_status'] ); + +if ( ! empty( $instance['sailthru_list'] ) ) { + if ( is_array( $instance['sailthru_list'] ) ) { + $sailthru_list = implode( ',', $instance['sailthru_list'] ); + } else { + $sailthru_list = $instance['sailthru_list']; + } +} else { + $sailthru_list = ''; +} + +// display options +$customfields = get_option( 'sailthru_forms_options' ); +$sailthru = get_option( 'sailthru_setup_options' ); +// nonce +$nonce = wp_create_nonce( 'add_subscriber_nonce' ); ?> - From e72a36662f80f417517b08fdb084c91d0fbc3769 Mon Sep 17 00:00:00 2001 From: polepalligayathridevi Date: Fri, 23 Feb 2024 17:55:02 +0530 Subject: [PATCH 4/5] [INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] removed extra spaces --- views/widget.subscribe.display.php | 560 ++++++++++++++--------------- 1 file changed, 280 insertions(+), 280 deletions(-) diff --git a/views/widget.subscribe.display.php b/views/widget.subscribe.display.php index 88a1a39..dac548b 100644 --- a/views/widget.subscribe.display.php +++ b/views/widget.subscribe.display.php @@ -1,383 +1,383 @@ id; - -$title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', esc_attr( $instance['title'] ) ); -$source = empty( $instance['source'] ) ? get_bloginfo( 'url' ) : esc_attr( $instance['source'] ); -$lo_event_name = empty( $instance['lo_event_name'] ) ? '' : esc_attr( $instance['lo_event_name'] ); -$reset_optout_status = empty( $instance['reset_optout_status'] ) ? '' : esc_attr( $instance['reset_optout_status'] ); -$hide_title_status = empty( $instance['hide_title_status'] ) ? '' : esc_attr( $instance['hide_title_status'] ); - -if ( ! empty( $instance['sailthru_list'] ) ) { - if ( is_array( $instance['sailthru_list'] ) ) { - $sailthru_list = implode( ',', $instance['sailthru_list'] ); - } else { - $sailthru_list = $instance['sailthru_list']; - } -} else { - $sailthru_list = ''; -} - -// display options -$customfields = get_option( 'sailthru_forms_options' ); -$sailthru = get_option( 'sailthru_setup_options' ); -// nonce -$nonce = wp_create_nonce( 'add_subscriber_nonce' ); + /* + * Grab the settings from $instance and fill out default + * values as needed. + */ + $widget_id = $this->id; + + $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', esc_attr( $instance['title'] ) ); + $source = empty( $instance['source'] ) ? get_bloginfo( 'url' ) : esc_attr( $instance['source'] ); + $lo_event_name = empty( $instance['lo_event_name'] ) ? '' : esc_attr( $instance['lo_event_name'] ); + $reset_optout_status = empty( $instance['reset_optout_status'] ) ? '' : esc_attr( $instance['reset_optout_status'] ); + $hide_title_status = empty( $instance['hide_title_status'] ) ? '' : esc_attr( $instance['hide_title_status'] ); + + if ( ! empty( $instance['sailthru_list'] ) ) { + if ( is_array( $instance['sailthru_list'] ) ) { + $sailthru_list = implode( ',', $instance['sailthru_list'] ); + } else { + $sailthru_list = $instance['sailthru_list']; + } + } else { + $sailthru_list = ''; + } + + // display options + $customfields = get_option( 'sailthru_forms_options' ); + $sailthru = get_option( 'sailthru_setup_options' ); + // nonce + $nonce = wp_create_nonce( 'add_subscriber_nonce' ); ?> - From 5228ccc920bc0f0aa7a637315c9517c98b913057 Mon Sep 17 00:00:00 2001 From: polepalligayathridevi Date: Fri, 23 Feb 2024 18:28:23 +0530 Subject: [PATCH 5/5] [INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] extra spaces removed --- views/widget.subscribe.display.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/widget.subscribe.display.php b/views/widget.subscribe.display.php index dac548b..7646090 100644 --- a/views/widget.subscribe.display.php +++ b/views/widget.subscribe.display.php @@ -187,7 +187,7 @@ echo '
'; echo ''; - foreach ( $items as $item ) { + foreach ( $items as $item ) { if ( ! empty( $item ) ) { $vals = explode( ':', $item ); @@ -200,7 +200,7 @@ - echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . ''; + echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . ''; } } echo '
';