Skip to content

Commit

Permalink
Bump to v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
debba committed Jul 24, 2024
1 parent 75a27c8 commit 0e403e0
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 78 deletions.
7 changes: 4 additions & 3 deletions .wordpress-org/readme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Contributors: edisplayit, dueclic
Donate link: https://www.emailchef.com
Tags: paid memberships pro, pmpro, emailchef, email marketing
Requires at least: 6.0
Tested up to: 6.5
Stable tag: 1.2.0
Tested up to: 6.6
Stable tag: 1.3.0
Requires PHP: 7.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Plugin URI: https://emailchef.com/it/add-on-emailchef-per-wordpress-paid-memberships-pro/
Plugin URI: https://emailchef.com/wordpress-paid-memberships-pro-emailchef-add-on/

Add users and members to Emailchef audiences based on their membership level and allow members to opt-in to specific audiences.

Expand Down Expand Up @@ -62,5 +62,6 @@ Please visit [our support site at https://www.paidmembershipspro.com](http://www

## Changelog

* 1.3.0 i18n fixes
* 1.2.0 Small fixes
* 1.1.0 Added assets and screenshots
32 changes: 16 additions & 16 deletions emailchef-add-on-for-pmp.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
/**
* Plugin Name: Emailchef Add On for Paid Memberships Pro
* Plugin URI: https://emailchef.com/it/add-on-emailchef-per-wordpress-paid-memberships-pro/
* Plugin URI: https://emailchef.com/wordpress-paid-memberships-pro-emailchef-add-on/
* Description: Sync your WordPress users and members with Emaiclhef audiences.
* Author: edisplayit
* Author URI: https://www.emailchef.com
* Version: 1.2.0
* Version: 1.3.0
* Text Domain: emailchef-add-on-for-pmp
* Domain Path: /languages/
* Requires at least: 6.0
* Tested up to: 6.5
* Tested up to: 6.6
* Requires PHP: 7.0
* License: GPLv2
*/
Expand Down Expand Up @@ -132,13 +132,13 @@ function pmproecaddon_save_data() {
$list_data = get_option( 'pmproecaddon_list_data', '' );

if ( $list_data != null ) {
$subscriptions = pmpro_getAllLevels();
if ( ! empty( $subscriptions ) ) {
foreach ( $subscriptions as $subscription ) {
$membership_levels = pmpro_getAllLevels();
if ( ! empty( $membership_levels ) ) {
foreach ( $membership_levels as $membership_level ) {
foreach ( $list_data as $list ) {
$checkbox_name = str_replace( " ", "_", $subscription->name ) . '_' . str_replace( " ", "_", $list['name'] ) . '_checkbox';
$checkbox_name = str_replace( " ", "_", $membership_level->name ) . '_' . str_replace( " ", "_", $list['name'] ) . '_checkbox';
if ( isset( $_POST[ $checkbox_name ] ) ) {
$list_config[ str_replace( " ", "_", $subscription->name . "_" . str_replace( " ", "_", $list['name'] ) ) ] = sanitize_text_field( $_POST[ $checkbox_name ] );
$list_config[ str_replace( " ", "_", $membership_level->name . "_" . str_replace( " ", "_", $list['name'] ) ) ] = sanitize_text_field( $_POST[ $checkbox_name ] );
}
}
}
Expand Down Expand Up @@ -170,7 +170,7 @@ function pmproecaddon_save_data() {
update_option( 'pmproecaddon_require_update_profile', $require_update_profile_select );
}
} else {
wp_safe_redirect( add_query_arg( 'pmproecaddon_msg', 'no_subscriptions', wp_get_referer() ) );
wp_safe_redirect( add_query_arg( 'pmproecaddon_msg', 'no_membership_levels', wp_get_referer() ) );
exit;
}
}
Expand All @@ -196,7 +196,7 @@ function pmproecaddon_options_page() {

<img src="<?php echo plugins_url('img/logo.png', __FILE__); ?>" alt="Emailchef">

<h1><?php esc_html_e( 'Emailchef Integration Options and Settings', 'emailchef-add-on-for-pmp' ); ?></h1>
<h1><?php esc_html_e( 'Emailchef integration options and settings', 'emailchef-add-on-for-pmp' ); ?></h1>
<h2><?php esc_html_e( 'Subscribe users to one or more Emailchef audiences when they sign up for your site.', 'emailchef-add-on-for-pmp' ); ?></h2>
<label><?php esc_html_e( 'If you have Paid Membership Pro installed, you can subscribe members to one or more Emailchef audiences based on their membership level or specify "Opt-in Audiences" that members can select at membership checkout.', 'emailchef-add-on-for-pmp' ); ?></label>

Expand All @@ -208,8 +208,8 @@ function pmproecaddon_options_page() {
echo '<div class="updated"><p>' . esc_html__( 'Configuration reset successfully.', 'emailchef-add-on-for-pmp' ) . '</p></div>';
} elseif ( 'emailchef_credentials_wrong' === $pmproecaddon_msg ) {
echo '<div class="error"><p>' . esc_html__( 'Emailchef credentials are wrong.', 'emailchef-add-on-for-pmp' ) . '</p></div>';
} elseif ( 'no_subscriptions' === $pmproecaddon_msg ) {
echo '<div class="error"><p>' . esc_html__( 'No PMPro subscriptions found.', 'emailchef-add-on-for-pmp' ) . '</p></div>';
} elseif ( 'no_membership_levels' === $pmproecaddon_msg ) {
echo '<div class="error"><p>' . esc_html__( 'No available membership levels found in PMPro.', 'emailchef-add-on-for-pmp' ) . '</p></div>';
}
}
?>
Expand Down Expand Up @@ -316,7 +316,7 @@ function pmproecaddon_options_page() {
<tr>
<td></td>
<td>
<label><?php esc_html_e( 'Choosing \'No\' will still update Emailchef when user\'s level is changed, email is.', 'emailchef-add-on-for-pmp' ); ?></label>
<label><?php esc_html_e( "Choosing 'No' will still update Emailchef when the user's level is changed.", 'emailchef-add-on-for-pmp' ); ?></label>
</td>
</tr>
</table>
Expand Down Expand Up @@ -346,16 +346,16 @@ function pmproecaddon_options_page() {
<?php wp_nonce_field( 'pmproecaddon-nonce', 'pmproecaddon-nonce' ); ?>
<input type="hidden" name="action" value="pmproecaddon_save_data">
<input type="submit" name="plugin_save" class="button button-primary"
value="<?php esc_attr_e( 'Save Settings', 'emailchef-add-on-for-pmp' ); ?>">
value="<?php esc_attr_e( 'Save settings', 'emailchef-add-on-for-pmp' ); ?>">
</form>


<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" class="pmproecaddon-mt-20">
<input type="hidden" name="action" value="pmproecaddon_reset_options">
<?php wp_nonce_field( 'pmproecaddon-reset-nonce', 'pmproecaddon-reset-nonce' ); ?>
<input type="submit" name="plugin_reset" class="button button-secondary"
value="<?php esc_attr_e( 'Reset Settings', 'emailchef-add-on-for-pmp' ); ?>"
onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to reset all settings?', 'emailchef-add-on-for-pmp' ); ?>');">
value="<?php esc_attr_e( 'Reset settings', 'emailchef-add-on-for-pmp' ); ?>"
onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to reset all the settings?', 'emailchef-add-on-for-pmp' ); ?>');">
</form>
</div>
<?php
Expand Down
2 changes: 1 addition & 1 deletion languages/emailchef-add-on-for-pmp-it_IT.l10n.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
return ['project-id-version'=>'Emailchef Add On for Paid Memberships Pro','report-msgid-bugs-to'=>'','pot-creation-date'=>'2024-07-01 08:49+0000','po-revision-date'=>'2024-07-01 08:49+0000','last-translator'=>'admin','language-team'=>'Italian','language'=>'it_IT','plural-forms'=>'nplurals=2; plural=n != 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.10; wp-6.5.5','x-domain'=>'emailchef-add-on-for-pmp','messages'=>[]];
return ['project-id-version'=>'Emailchef Add On for Paid Memberships Pro','report-msgid-bugs-to'=>'','pot-creation-date'=>'2024-07-01 08:49+0000','po-revision-date'=>'2024-07-24 10:22+0000','last-translator'=>'admin','language-team'=>'Italian','language'=>'it_IT','plural-forms'=>'nplurals=2; plural=n != 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.10; wp-6.5.5','x-domain'=>'emailchef-add-on-for-pmp','messages'=>['Are you sure you want to reset all the settings?'=>'Sei sicuro di voler reimpostare tutte le impostazioni?','Choosing \'No\' will still update Emailchef when the user\'s level is changed.'=>'Scegliendo \'No\' Emailchef verrà comunque aggiornato quando il livello dell\'utente viene modificato.','Configuration reset successfully.'=>'Configurazione reimpostata con successo.','Configuration saved successfully.'=>'Configurazione salvata con successo.','edisplayit'=>'edisplayit','Emailchef Add On for Paid Memberships Pro'=>'Emailchef Add On per Paid Memberships Pro','Emailchef credentials are wrong.'=>'Le credenziali di Emailchef sono errate.','Emailchef integration options and settings'=>'Opzioni e impostazioni di integrazione con Emailchef','For each level below, choose the audience(s) that a new user should be subscribed to when they register.'=>'Per ciascun livello sottostante, scegli il pubblico a cui un nuovo utente dovrebbe iscriversi quando si registra.','General configuration'=>'Configurazione generale','https://emailchef.com/wordpress-paid-memberships-pro-emailchef-add-on/'=>'https://emailchef.com/it/add-on-emailchef-per-wordpress-paid-memberships-pro/','https://www.emailchef.com'=>'https://www.emailchef.com/it','If you have Paid Membership Pro installed, you can subscribe members to one or more Emailchef audiences based on their membership level or specify "Opt-in Audiences" that members can select at membership checkout.'=>'Se hai installato Paid Membership Pro, puoi iscrivere i membri a uno o più pubblici Emailchef in base al loro livello di appartenenza o specificare "Pubblici Opt-in" che i membri possono selezionare al momento del pagamento dell\'abbonamento.','Join our mailing list.'=>'Iscriviti alla nostra mailing list.','Login Emailchef'=>'Accesso Emailchef','Membership Levels and Audiences'=>'Livelli di Abbonamento e Pubblici','No'=>'No','No available membership levels found in PMPro.'=>'Nessun livello di membership disponibile trovato in PMPro.','No PMPro subscriptions found.'=>'Nessuna sottoscrizione PMPro trovata.','Nom-member Audiences'=>'Pubblici per Non-membri','Opt-in Audiences'=>'Pubblici Opt-in','Password'=>'Password','PMPro is installed.'=>'PMPro è installato.','Recommended: Yes. However, if you manage multiple audiences in Emailchef, unsubscribed from other audiences when they register on your site.'=>'Consigliato: Sì. Tuttavia, se gestisci più pubblici in Emailchef, disiscritto dagli altri pubblici quando si registrano sul tuo sito.','Reset settings'=>'Reimposta impostazioni','Save settings'=>'Salva impostazioni','Settings'=>'Impostazioni','Subscribe users to one or more Emailchef audiences when they sign up for your site.'=>'Iscrivi gli utenti a uno o più pubblici Emailchef quando si registrano sul tuo sito.','Sync your WordPress users and members with Emaiclhef audiences.'=>'Sincronizza i tuoi utenti e membri di WordPress con i pubblici di Emailchef.','This plugin requires Paid Memberships Pro. <a href="%s">Please go back to the Plugins page</a>.'=>'Questo plugin richiede Paid Memberships Pro. <a href="%s">Per favore torna alla pagina dei plugin</a>.','Unsubscribe on Level Change?'=>'Disiscrivi al cambio di livello?','Update on Profile Save?'=>'Aggiorna al salvataggio del profilo?','User'=>'Utente','Yes'=>'','Yes (Old level and opt-in audiences.)'=>'Sì (Vecchio livello e pubblici opt-in.)','Yes (Only old level audiences.)'=>'Sì (Solo pubblici del vecchio livello.)']];
Binary file modified languages/emailchef-add-on-for-pmp-it_IT.mo
Binary file not shown.
126 changes: 74 additions & 52 deletions languages/emailchef-add-on-for-pmp-it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Emailchef Add On for Paid Memberships Pro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-01 08:49+0000\n"
"PO-Revision-Date: 2024-07-01 08:49+0000\n"
"PO-Revision-Date: 2024-07-24 10:22+0000\n"
"Last-Translator: admin\n"
"Language-Team: Italian\n"
"Language: it_IT\n"
Expand All @@ -15,162 +15,184 @@ msgstr ""
"X-Loco-Version: 2.6.10; wp-6.5.5\n"
"X-Domain: emailchef-add-on-for-pmp"

#: emailchef-add-on-for-pmp.php:355
msgid "Are you sure you want to reset all settings?"
#: emailchef-add-on-for-pmp.php:358
#| msgid "Are you sure you want to reset all settings?"
msgid "Are you sure you want to reset all the settings?"
msgstr "Sei sicuro di voler reimpostare tutte le impostazioni?"

#: emailchef-add-on-for-pmp.php:316
#: emailchef-add-on-for-pmp.php:319
#| msgid ""
#| "Choosing 'No' will still update Emailchef when user's level is changed, "
#| "email is."
msgid ""
"Choosing 'No' will still update Emailchef when user's level is changed, "
"email is."
"Choosing 'No' will still update Emailchef when the user's level is changed."
msgstr ""
"Scegliendo 'No' Emailchef si aggiornerà comunque quando il livello dell'utente viene modificato, l'email è."
"Scegliendo 'No' Emailchef verrà comunque aggiornato quando il livello "
"dell'utente viene modificato."

#: emailchef-add-on-for-pmp.php:215
#: emailchef-add-on-for-pmp.php:208
msgid "Configuration reset successfully."
msgstr "Configurazione reimpostata con successo."

#: emailchef-add-on-for-pmp.php:213
#: emailchef-add-on-for-pmp.php:206
msgid "Configuration saved successfully."
msgstr "Configurazione salvata con successo."

#. Author of the plugin
msgid "dueclic"
msgstr "dueclic"
msgid "edisplayit"
msgstr "edisplayit"

#. Name of the plugin
msgid "Emailchef Add On for Paid Memberships Pro"
msgstr "Emailchef Add On per Paid Memberships Pro"

#: emailchef-add-on-for-pmp.php:217
#: emailchef-add-on-for-pmp.php:210
msgid "Emailchef credentials are wrong."
msgstr "Le credenziali di Emailchef sono errate."

#: emailchef-add-on-for-pmp.php:206
msgid "Emailchef Integration Options and Settings"
msgstr "Opzioni e Impostazioni di Integrazione Emailchef"
#: emailchef-add-on-for-pmp.php:199
#| msgid "Emailchef Integration Options and Settings"
msgid "Emailchef integration options and settings"
msgstr "Opzioni e impostazioni di integrazione con Emailchef"

#: emailchef-add-on-for-pmp.php:327
#: emailchef-add-on-for-pmp.php:330
msgid ""
"For each level below, choose the audience(s) that a new user should be "
"subscribed to when they register."
msgstr ""
"Per ciascun livello sottostante, scegli il pubblico a cui un nuovo utente dovrebbe iscriversi quando si registra."
"Per ciascun livello sottostante, scegli il pubblico a cui un nuovo utente "
"dovrebbe iscriversi quando si registra."

#: emailchef-add-on-for-pmp.php:249
#: emailchef-add-on-for-pmp.php:242
msgid "General configuration"
msgstr "Configurazione generale"

#. URI of the plugin
msgid "http://emailchef.com/"
msgstr "http://emailchef.com/"
msgid "https://emailchef.com/wordpress-paid-memberships-pro-emailchef-add-on/"
msgstr ""
"https://emailchef.com/it/add-on-emailchef-per-wordpress-paid-memberships-pro/"

#. Author URI of the plugin
msgid "https://www.dueclic.com"
msgstr "https://www.dueclic.com"
#| msgid "http://emailchef.com/"
msgid "https://www.emailchef.com"
msgstr "https://www.emailchef.com/it"

#: emailchef-add-on-for-pmp.php:208
#: emailchef-add-on-for-pmp.php:201
msgid ""
"If you have Paid Membership Pro installed, you can subscribe members to one "
"or more Emailchef audiences based on their membership level or specify \"Opt-"
"in Audiences\" that members can select at membership checkout."
msgstr ""
"Se hai installato Paid Membership Pro, puoi iscrivere i membri a uno o più pubblici Emailchef in base al loro livello di appartenenza o specificare \"Pubblici Opt-in\" che i membri possono selezionare al momento del pagamento dell'abbonamento."
"Se hai installato Paid Membership Pro, puoi iscrivere i membri a uno o più "
"pubblici Emailchef in base al loro livello di appartenenza o specificare "
"\"Pubblici Opt-in\" che i membri possono selezionare al momento del "
"pagamento dell'abbonamento."

#: emailchef-add-on-for-pmp.php:414 emailchef-add-on-for-pmp.php:484
#: emailchef-add-on-for-pmp.php:417 emailchef-add-on-for-pmp.php:488
msgid "Join our mailing list."
msgstr "Iscriviti alla nostra mailing list."

#: emailchef-add-on-for-pmp.php:225
#: emailchef-add-on-for-pmp.php:218
msgid "Login Emailchef"
msgstr "Accesso Emailchef"

#: emailchef-add-on-for-pmp.php:325
#: emailchef-add-on-for-pmp.php:328
msgid "Membership Levels and Audiences"
msgstr "Livelli di Abbonamento e Pubblici"

#: emailchef-add-on-for-pmp.php:294 emailchef-add-on-for-pmp.php:309
#: emailchef-add-on-for-pmp.php:295 emailchef-add-on-for-pmp.php:312
msgid "No"
msgstr "No"

#: emailchef-add-on-for-pmp.php:219 emailchef-add-on-for-pmp.php:338
#: emailchef-add-on-for-pmp.php:212
msgid "No available membership levels found in PMPro."
msgstr "Nessun livello di membership disponibile trovato in PMPro."

#: emailchef-add-on-for-pmp.php:341
msgid "No PMPro subscriptions found."
msgstr "Nessuna sottoscrizione PMPro trovata."

#: emailchef-add-on-for-pmp.php:252
#: emailchef-add-on-for-pmp.php:246
msgid "Nom-member Audiences"
msgstr "Pubblici per Non-membri"

#: emailchef-add-on-for-pmp.php:270
#: emailchef-add-on-for-pmp.php:267
msgid "Opt-in Audiences"
msgstr "Pubblici Opt-in"

#: emailchef-add-on-for-pmp.php:233
#: emailchef-add-on-for-pmp.php:226
msgid "Password"
msgstr "Password"

#: emailchef-add-on-for-pmp.php:326
#: emailchef-add-on-for-pmp.php:329
msgid "PMPro is installed."
msgstr "PMPro è installato."

#: emailchef-add-on-for-pmp.php:301
#: emailchef-add-on-for-pmp.php:302
msgid ""
"Recommended: Yes. However, if you manage multiple audiences in Emailchef, "
"unsubscribed from other audiences when they register on your site."
msgstr ""
"Consigliato: Sì. Tuttavia, se gestisci più pubblici in Emailchef, disiscritto dagli altri pubblici quando si registrano sul tuo sito."
"Consigliato: Sì. Tuttavia, se gestisci più pubblici in Emailchef, "
"disiscritto dagli altri pubblici quando si registrano sul tuo sito."

#: emailchef-add-on-for-pmp.php:354
msgid "Reset Settings"
msgstr "Reimposta Impostazioni"
#: emailchef-add-on-for-pmp.php:357
#| msgid "Reset Settings"
msgid "Reset settings"
msgstr "Reimposta impostazioni"

#: emailchef-add-on-for-pmp.php:346
msgid "Save Settings"
msgstr "Salva Impostazioni"
#: emailchef-add-on-for-pmp.php:349
#| msgid "Save Settings"
msgid "Save settings"
msgstr "Salva impostazioni"

#: emailchef-add-on-for-pmp.php:77
#: emailchef-add-on-for-pmp.php:78
msgid "Settings"
msgstr "Impostazioni"

#: emailchef-add-on-for-pmp.php:207
#: emailchef-add-on-for-pmp.php:200
msgid ""
"Subscribe users to one or more Emailchef audiences when they sign up for "
"your site."
msgstr ""
"Iscrivi gli utenti a uno o più pubblici Emailchef quando si registrano sul tuo sito."
"Iscrivi gli utenti a uno o più pubblici Emailchef quando si registrano sul "
"tuo sito."

#. Description of the plugin
msgid "Sync your WordPress users and members with Emaiclhef audiences."
msgstr "Sincronizza i tuoi utenti e membri di WordPress con i pubblici di Emailchef."
msgstr ""
"Sincronizza i tuoi utenti e membri di WordPress con i pubblici di Emailchef."

#: emailchef-add-on-for-pmp.php:659
#. %s: plugins page
#: emailchef-add-on-for-pmp.php:672
#, php-format
msgid ""
"This plugin requires Paid Memberships Pro. <a href=\"%s\">Please go back to "
"the Plugins page</a>."
msgstr ""
"Questo plugin richiede Paid Memberships Pro. <a href=\"%s\">Per favore torna alla pagina dei plugin</a>."
"Questo plugin richiede Paid Memberships Pro. <a href=\"%s\">Per favore torna "
"alla pagina dei plugin</a>."

#: emailchef-add-on-for-pmp.php:288
msgid "Unsubscribe on Level Change?"
msgstr "Disiscrivi al cambio di livello?"

#: emailchef-add-on-for-pmp.php:305
#: emailchef-add-on-for-pmp.php:307
msgid "Update on Profile Save?"
msgstr "Aggiorna al salvataggio del profilo?"

#: emailchef-add-on-for-pmp.php:228
#: emailchef-add-on-for-pmp.php:221
msgid "User"
msgstr "Utente"

#: emailchef-add-on-for-pmp.php:308
#: emailchef-add-on-for-pmp.php:311
msgid "Yes"
msgstr "Sì"

#: emailchef-add-on-for-pmp.php:293
#: emailchef-add-on-for-pmp.php:294
msgid "Yes (Old level and opt-in audiences.)"
msgstr "Sì (Vecchio livello e pubblici opt-in.)"

#: emailchef-add-on-for-pmp.php:292
#: emailchef-add-on-for-pmp.php:293
msgid "Yes (Only old level audiences.)"
msgstr "Sì (Solo pubblici del vecchio livello.)"
Loading

0 comments on commit 0e403e0

Please sign in to comment.