completed email default messages
This commit is contained in:
@@ -161,102 +161,102 @@ contactez la fipf directement",
|
|||||||
'_default'=>[
|
'_default'=>[
|
||||||
// 1. profs : email : payment_success : validation payment prof reussi, send email
|
// 1. profs : email : payment_success : validation payment prof reussi, send email
|
||||||
'payment_success'=>[
|
'payment_success'=>[
|
||||||
'name'=>'le paiement a réussi',
|
'name'=>'prof - le paiement a réussi',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"paiement réussi",
|
'notification_subject'=>"[CIPF /prof - paiement réussi]",
|
||||||
'notification_message'=>"par ici la monnaie",
|
'notification_message'=>'paiement réussi de la part de $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"paiement réussi",
|
'confirmation_subject'=>"[CIPF - paiement réussi]",
|
||||||
'confirmation_message'=>"donne l'argent",
|
'confirmation_message'=>"paiement réussi",
|
||||||
],
|
],
|
||||||
// 2. profs : email : payment_failure : validation payment prof echec, send email
|
// 2. profs : email : payment_failure : validation payment prof echec, send email
|
||||||
'payment_echec'=>[
|
'payment_echec'=>[
|
||||||
'name'=>'le paiement a echoué',
|
'name'=>'prof - le paiement a echoué',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /prof - paiement echoué]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'paiement echoué pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - paiement echoué]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>"votre paiement a echoué",
|
||||||
],
|
],
|
||||||
// 3. profs : email : transfert_success : validation transfert prof reussi, send email
|
// 3. profs : email : transfert_success : validation transfert prof reussi, send email
|
||||||
'transfert_success'=>[
|
'transfert_success'=>[
|
||||||
'name'=>'le virement a été validé',
|
'name'=>'prof - le virement a été validé',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /prof - virement validé]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'virement validé pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - virement validé]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>"votre virement a été validé",
|
||||||
],
|
],
|
||||||
// 4. profs : email : transfert_failures : validation transfert prof echec, send email
|
// 4. profs : email : transfert_failures : validation transfert prof echec, send email
|
||||||
'transfert_echec'=>[
|
// 'transfert_echec'=>[
|
||||||
'name'=>'le virement a échoué',
|
// 'name'=>'prof - le virement a échoué',
|
||||||
'notification_send'=>true,
|
// 'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
// 'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
// 'notification_subject'=>"[CIPF /prof - virement echoué]",
|
||||||
'notification_message'=>"",
|
// 'notification_message'=>'virement echoué pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
// 'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
// 'confirmation_subject'=>"[CIPF - virement echoué]",
|
||||||
'confirmation_message'=>"",
|
// 'confirmation_message'=>"votre virement a echoué",
|
||||||
],
|
// ],
|
||||||
// 5. partners : email : offer_expired : offres temporaires -> gerer qu'elles disparaissent apres la date de validite -> la passer en masquer
|
// 5. partners : email : offer_expired : offres temporaires -> gerer qu'elles disparaissent apres la date de validite -> la passer en masquer
|
||||||
'offer_expired'=>[
|
'offer_expired'=>[
|
||||||
'name'=>"l'offre a expirée",
|
'name'=>"partenaire - l'offre partenaire a expirée",
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /partenaire - offre expirée]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'offre expirée pour $$user_login$$ : $$__user_post_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - offre expirée]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>'votre offre a expiré, pour la renouveler rendez-vous sur $$__base_url__$$',
|
||||||
],
|
],
|
||||||
// 6. partners : email : offer_will_expire : la gestion des offres à échéance
|
// 6. partners : email : offer_will_expire : la gestion des offres à échéance
|
||||||
'offer_will_expire'=>[
|
'offer_will_expire'=>[
|
||||||
'name'=>"l'offre arrive bientot a expiration",
|
'name'=>"partenaire - l'offre arrive bientot a expiration",
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /partenaire - offre va expirer]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'offre va expirer pour $$user_login$$ : $$__user_post_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - offre va expirer]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>'une de vos offre va expirer, rendez-vous sur $$__base_url__$$',
|
||||||
],
|
],
|
||||||
// 7. payments : email : account_deleted : schedule event pour supprimer le compte xx temps (6 mois ?) apres fin de validite de la carte
|
// 7. payments : email : account_deleted : schedule event pour supprimer le compte xx temps (6 mois ?) apres fin de validite de la carte
|
||||||
'account_deleted'=>[
|
'account_deleted'=>[
|
||||||
'name'=>'le compte a ete supprimé',
|
'name'=>'prof - le compte a été supprimé',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /prof - compte supprimé]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'compte supprimé pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - compte supprimé]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>'votre compte a été supprimé sur $$__base_url__$$',
|
||||||
],
|
],
|
||||||
// 8. payments : email : account_will_expire : faire rappels emails avant expiration
|
// 8. payments : email : account_will_expire : faire rappels emails avant expiration
|
||||||
'account_will_expire'=>[
|
'account_will_expire'=>[
|
||||||
'name'=>'le compte va bientot expirer',
|
'name'=>'prof - le compte va bientot expirer',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /prof - compte va expirer]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'le compte va expirer pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - compte va expirer]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>'votre compte va expirer bientot, renouvellez-le sur $$__base_url__$$',
|
||||||
],
|
],
|
||||||
// 9. payments : email : account_expired : desactiver carte expiree
|
// 9. payments : email : account_expired : desactiver carte expiree
|
||||||
'account_expired'=>[
|
'account_expired'=>[
|
||||||
'name'=>'le compte a expiré',
|
'name'=>'prof - le compte a expiré',
|
||||||
'notification_send'=>true,
|
'notification_send'=>true,
|
||||||
'notification_to'=>'$$__admin_email__$$',
|
'notification_to'=>'$$__admin_email__$$',
|
||||||
'notification_subject'=>"",
|
'notification_subject'=>"[CIPF /prof - compte expiré]",
|
||||||
'notification_message'=>"",
|
'notification_message'=>'compte expiré pour $$user_login$$ : $$__author_page_url__$$',
|
||||||
'confirmation_send'=>true,
|
'confirmation_send'=>true,
|
||||||
'confirmation_subject'=>"",
|
'confirmation_subject'=>"[CIPF - compte expiré]",
|
||||||
'confirmation_message'=>"",
|
'confirmation_message'=>'votre compte a expiré, renouvelez-le sur $$__base_url__$$',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -29,9 +29,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
form.emails_form_cipf {
|
form.emails_form_cipf {
|
||||||
margin: 0px;
|
margin: 10px;
|
||||||
border: none;
|
padding: 10px;
|
||||||
padding: 0px;
|
|
||||||
> input[type="submit"] {
|
> input[type="submit"] {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
@@ -158,7 +157,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="vertical_wrapper_cipf">
|
<div class="vertical_wrapper_cipf">
|
||||||
<label for="<?php echo esc_html(stripslashes($name)); ?>_notification_subject_cipf">sujet : </label>
|
<label for="<?php echo esc_html(stripslashes($name)); ?>_notification_subject_cipf">sujet : </label>
|
||||||
<textarea id="<?php echo esc_html(stripslashes($name)); ?>_notification_subject_cipf" name="<?php echo esc_html(stripslashes($name)); ?>_notification_subject"><?php echo esc_html(stripslashes($email_options['notification_subject'])); ?></textarea>
|
<input type="text" id="<?php echo esc_html(stripslashes($name)); ?>_notification_subject_cipf" name="<?php echo esc_html(stripslashes($name)); ?>_notification_subject" value="<?php echo esc_html(stripslashes($email_options['notification_subject'])); ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="vertical_wrapper_cipf">
|
<div class="vertical_wrapper_cipf">
|
||||||
<label for="<?php echo esc_html(stripslashes($name)); ?>_notification_message_cipf">message : </label>
|
<label for="<?php echo esc_html(stripslashes($name)); ?>_notification_message_cipf">message : </label>
|
||||||
@@ -179,7 +178,7 @@
|
|||||||
|
|
||||||
<div class="vertical_wrapper_cipf">
|
<div class="vertical_wrapper_cipf">
|
||||||
<label for="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject_cipf">sujet : </label>
|
<label for="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject_cipf">sujet : </label>
|
||||||
<textarea id="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject_cipf" name="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject"><?php echo esc_html(stripslashes($email_options['confirmation_subject'])); ?></textarea>
|
<input type="text" id="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject_cipf" name="<?php echo esc_html(stripslashes($name)); ?>_confirmation_subject" value="<?php echo esc_html(stripslashes($email_options['confirmation_subject'])); ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="vertical_wrapper_cipf">
|
<div class="vertical_wrapper_cipf">
|
||||||
<label for="<?php echo esc_html(stripslashes($name)); ?>_confirmation_message_cipf">message : </label>
|
<label for="<?php echo esc_html(stripslashes($name)); ?>_confirmation_message_cipf">message : </label>
|
||||||
|
|||||||
@@ -175,7 +175,6 @@ function update_emails_settings_option_CIPF($request, $option_name, $option_data
|
|||||||
}
|
}
|
||||||
//error_log("option_data after : " . json_encode($option_data));
|
//error_log("option_data after : " . json_encode($option_data));
|
||||||
|
|
||||||
error_log("option 2: " . json_encode($option_data['payment_success']['confirmation_message']));
|
|
||||||
Plgntls::update_option_safe($option_name, $option_data);
|
Plgntls::update_option_safe($option_name, $option_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,7 +219,6 @@ function update_email_by_type_CIPF($email_type, $email_options, $request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//error_log("email_options: " . json_encode($email_options));
|
//error_log("email_options: " . json_encode($email_options));
|
||||||
error_log("option 1: " . json_encode($email_options['confirmation_message']));
|
|
||||||
return $email_options;
|
return $email_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1120,7 +1120,6 @@ error_log("toggle menu: " . json_encode($option_toggle));
|
|||||||
* it also works if the option is the name directly
|
* it also works if the option is the name directly
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
error_log("option 3: " . json_encode($option_data['payment_success']['confirmation_message']));
|
|
||||||
$option_name = self::_init_option($option);
|
$option_name = self::_init_option($option);
|
||||||
if (false === $option_name) {
|
if (false === $option_name) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user