Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wp version #6

Merged
merged 4 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/**
* Plugin Name: Omnisend for Gravity Forms Add-On
* Description: A gravity forms add-on to sync contacts with Omnisend. In collaboration with Omnisnnd for WooCommerce plugin it enables better customer tracking
* Version: 1.2.2
* Version: 1.2.3
* Author: Omnisend
* Author URI: https://www.omnisend.com
* Developer: Omnisend
* Developer URI: https://developers.omnisend.com
* Text Domain: omnisend-for-gravity-forms-add-on
* Text Domain: omnisend-for-gravity-forms
* ------------------------------------------------------------------------
* Copyright 2023 Omnisend
* License: GNU General Public License v3.0
Expand All @@ -21,7 +21,7 @@
}

const OMNISEND_GRAVITY_ADDON_NAME = 'Omnisend for Gravity Forms Add-On';
const OMNISEND_GRAVITY_ADDON_VERSION = '1.2.2';
const OMNISEND_GRAVITY_ADDON_VERSION = '1.2.3';

add_action( 'gform_loaded', array( 'Omnisend_AddOn_Bootstrap', 'load' ), 5 );

Expand Down
42 changes: 21 additions & 21 deletions omnisend-for-gravity-forms/class-omnisendaddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ public function form_settings_fields( $form ) {

return array(
array(
'title' => esc_html__( 'Welcome Email', 'omnisend-for-gravity-forms-add-on' ),
'title' => esc_html__( 'Welcome Email', 'omnisend-for-gravity-forms' ),
'fields' => array(
array(
'label' => esc_html__( 'Check this to automatically send your custom welcome email, created in Omnisend, to subscribers joining through Gravity Forms.', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Check this to automatically send your custom welcome email, created in Omnisend, to subscribers joining through Gravity Forms.', 'omnisend-for-gravity-forms' ),
'type' => 'checkbox',
'name' => 'send_welcome_email_checkbox',
'choices' => array(
array(
'label' => esc_html__( 'Send a welcome email to new subscribers', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Send a welcome email to new subscribers', 'omnisend-for-gravity-forms' ),
'name' => 'send_welcome_email',
),
),
Expand All @@ -166,86 +166,86 @@ public function form_settings_fields( $form ) {
),
),
array(
'title' => esc_html__( 'Omnisend Field Mapping', 'omnisend-for-gravity-forms-add-on' ),
'title' => esc_html__( 'Omnisend Field Mapping', 'omnisend-for-gravity-forms' ),

'fields' => array(
array(
'type' => 'field_mapping_details',
'name' => 'field_mapping_details',
),
array(
'label' => esc_html__( 'Email', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Email', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'email',
'validation_callback' => function ( $field, $value ) {
if ( $value <= 0 ) {
$field->set_error( esc_html__( 'Email is required', 'omnisend-for-gravity-forms-add-on' ) );
$field->set_error( esc_html__( 'Email is required', 'omnisend-for-gravity-forms' ) );
}
},
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Address', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Address', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'address',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'City', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'City', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'city',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'State', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'State', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'state',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Country', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Country', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'country',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'First Name', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'First Name', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'first_name',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Last Name', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Last Name', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'last_name',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Phone Number', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Phone Number', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'phone_number',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Birthday', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Birthday', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'birthday',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Postal Code', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Postal Code', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'postal_code',
'choices' => $all_fields_choices,
),
array(
'label' => esc_html__( 'Email Consent', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Email Consent', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'email_consent',
'choices' => $consent_fields_choices,
),
array(
'label' => esc_html__( 'Phone Consent', 'omnisend-for-gravity-forms-add-on' ),
'label' => esc_html__( 'Phone Consent', 'omnisend-for-gravity-forms' ),
'type' => 'select',
'name' => 'phone_consent',
'choices' => $consent_fields_choices,
Expand Down Expand Up @@ -418,16 +418,16 @@ private function enableWebTracking( $email, $phone ) {
}

public function settings_welcome_automation_details( $field, $echo = true ) { // phpcs:ignore
echo '<div class="gform-settings-field">' . esc_html__( 'After checking this, don’t forget to design your welcome email in Omnisend.', 'omnisend-for-gravity-forms-add-on' ) . '</div>';
echo '<a target="_blank" href="https://support.omnisend.com/en/articles/1061818-welcome-email-automation">' . esc_html__( 'Learn more about Welcome automation', 'omnisend-for-gravity-forms-add-on' ) . '</a>';
echo '<div class="gform-settings-field">' . esc_html__( 'After checking this, don’t forget to design your welcome email in Omnisend.', 'omnisend-for-gravity-forms' ) . '</div>';
echo '<a target="_blank" href="https://support.omnisend.com/en/articles/1061818-welcome-email-automation">' . esc_html__( 'Learn more about Welcome automation', 'omnisend-for-gravity-forms' ) . '</a>';
}


public function settings_field_mapping_details() {
echo '<div class="gform-settings-field">' . esc_html__( 'Field mapping lets you align your form fields with Omnisend. It\'s important to match them correctly, so the information collected through Gravity Forms goes into the right place in Omnisend.', 'omnisend-for-gravity-forms-add-on' ) . '</div>';
echo '<div class="gform-settings-field">' . esc_html__( 'Field mapping lets you align your form fields with Omnisend. It\'s important to match them correctly, so the information collected through Gravity Forms goes into the right place in Omnisend.', 'omnisend-for-gravity-forms' ) . '</div>';

echo '<img width="900" src="' . plugins_url( '/images/omnisend-field-mapping.png', __FILE__ ) . '" alt="Omnisend Field Mapping" />'; // phpcs:ignore

echo '<div class="alert gforms_note_info">' . esc_html__( 'Having trouble? Explore our help article.', 'omnisend-for-gravity-forms-add-on' ) . '<br/><a target="_blank" href="https://support.omnisend.com/en/articles/8617559-integration-with-gravity-forms">' . esc_html__( 'Learn more', 'omnisend-for-gravity-forms-add-on' ) . '</a></div>';
echo '<div class="alert gforms_note_info">' . esc_html__( 'Having trouble? Explore our help article.', 'omnisend-for-gravity-forms' ) . '<br/><a target="_blank" href="https://support.omnisend.com/en/articles/8617559-integration-with-gravity-forms">' . esc_html__( 'Learn more', 'omnisend-for-gravity-forms' ) . '</a></div>';
}
}
18 changes: 7 additions & 11 deletions omnisend-for-gravity-forms/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Plugin Name: Omnisend for Gravity Forms Add-On
Contributors: Omnisend
Tags: Gravity forms, form, email marketing, web tracking, subscriber collection
Requires at least: 4.7.0
Tested up to: 6.4
Tested up to: 6.7
Requires PHP: 7.1
Stable tag: 1.2.2
License: GPLv3 or later License
Stable tag: 1.2.3
License: GPLv3 or later
URI: http://www.gnu.org/licenses/gpl-3.0.html

Email Marketing, Newsletter, Email Automation, Forms, Pop Up, SMS by Omnisend
Expand Down Expand Up @@ -60,34 +60,30 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
7. Convert more visitors with highly-targeted landing pages

== Changelog ==
= 1.2.2 =

= 1.2.3 =
* Update tested WP version and security fixes

= 1.2.2 =
* Add Patchstack security vulnerability disclosure program link to faq.

= 1.2.1 =

* Update banner and plugin text.

= 1.2.0 =

* Use the Updated Omnisend plugin.

= 1.1.1 =

* Update plugin icon.

= 1.1.0 =

* Update functionality to depend on Omnisend core plugin.

= 1.0.4 =

* Minor usability improvements.

= 1.0.3 =

* Added support for welcome emails

= 1.0.0 =

* Initial release.
Loading