Skip to content

Commit

Permalink
Merge pull request #110 from sailthru/INT-688_Wordpress_integration_m…
Browse files Browse the repository at this point in the history
…issing_for_parameter

[INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER]
  • Loading branch information
PolepalliGayathri committed Feb 26, 2024
2 parents 8b517e9 + 5228ccc commit df3e601
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' ) ) {
Expand Down Expand Up @@ -180,7 +180,7 @@ function sailthru_deactivate( $network_wide ) {
*/
function sailthru_uninstall( $network_wide ) {
remove_options();
}
}


function remove_options() {
Expand Down
12 changes: 6 additions & 6 deletions views/widget.subscribe.display.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
<div class="sailthru-add-subscriber-errors"></div>

<div class="sailthru_form_input form-group">
<label class="sailthru-widget-label">Email</label>
<input type="text" name="email" value="" class="form-control sailthru_email" />
<label class="sailthru-widget-label" for="st_wp_email">Email</label>
<input type="text" name="email" value="" class="form-control sailthru_email" id="st_wp_email" />
</div>

<?php
Expand Down Expand Up @@ -183,12 +183,12 @@
echo '</div>';
} elseif ( 'checkbox' === $customfields[ $field_key ]['sailthru_customfield_type'] ) {
$items = explode( ',', $customfields[ $field_key ]['sailthru_customfield_value'] );

echo '<div class="checkbox">';
echo '<label for="custom_' . esc_attr( $name_stripped ) . '">' . esc_html( $customfields[ $field_key ]['sailthru_customfield_label'] ) . '</label>';

foreach ( $items as $item ) {

if ( ! empty( $item ) ) {
$vals = explode( ':', $item );

Expand All @@ -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] ) . '';
}
}
Expand Down

0 comments on commit df3e601

Please sign in to comment.