diff --git a/plugins/cipf_plugin/cipf_plugin.php b/plugins/cipf_plugin/cipf_plugin.php index f88abb6..ed1c1e9 100644 --- a/plugins/cipf_plugin/cipf_plugin.php +++ b/plugins/cipf_plugin/cipf_plugin.php @@ -161,102 +161,102 @@ contactez la fipf directement", '_default'=>[ // 1. profs : email : payment_success : validation payment prof reussi, send email 'payment_success'=>[ - 'name'=>'le paiement a réussi', + 'name'=>'prof - le paiement a réussi', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"paiement réussi", - 'notification_message'=>"par ici la monnaie", + 'notification_subject'=>"[CIPF /prof - paiement réussi]", + 'notification_message'=>'paiement réussi de la part de $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"paiement réussi", - 'confirmation_message'=>"donne l'argent", + 'confirmation_subject'=>"[CIPF - paiement réussi]", + 'confirmation_message'=>"paiement réussi", ], // 2. profs : email : payment_failure : validation payment prof echec, send email 'payment_echec'=>[ - 'name'=>'le paiement a echoué', + 'name'=>'prof - le paiement a echoué', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /prof - paiement echoué]", + 'notification_message'=>'paiement echoué pour $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - paiement echoué]", + 'confirmation_message'=>"votre paiement a echoué", ], // 3. profs : email : transfert_success : validation transfert prof reussi, send email 'transfert_success'=>[ - 'name'=>'le virement a été validé', + 'name'=>'prof - le virement a été validé', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /prof - virement validé]", + 'notification_message'=>'virement validé pour $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - virement validé]", + 'confirmation_message'=>"votre virement a été validé", ], // 4. profs : email : transfert_failures : validation transfert prof echec, send email - 'transfert_echec'=>[ - 'name'=>'le virement a échoué', - 'notification_send'=>true, - 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", - 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", - ], +// 'transfert_echec'=>[ +// 'name'=>'prof - le virement a échoué', +// 'notification_send'=>true, +// 'notification_to'=>'$$__admin_email__$$', +// 'notification_subject'=>"[CIPF /prof - virement echoué]", +// 'notification_message'=>'virement echoué pour $$user_login$$ : $$__author_page_url__$$', +// 'confirmation_send'=>true, +// 'confirmation_subject'=>"[CIPF - virement echoué]", +// '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 'offer_expired'=>[ - 'name'=>"l'offre a expirée", + 'name'=>"partenaire - l'offre partenaire a expirée", 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /partenaire - offre expirée]", + 'notification_message'=>'offre expirée pour $$user_login$$ : $$__user_post_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - offre expirée]", + '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 'offer_will_expire'=>[ - 'name'=>"l'offre arrive bientot a expiration", + 'name'=>"partenaire - l'offre arrive bientot a expiration", 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /partenaire - offre va expirer]", + 'notification_message'=>'offre va expirer pour $$user_login$$ : $$__user_post_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - offre va expirer]", + '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 'account_deleted'=>[ - 'name'=>'le compte a ete supprimé', + 'name'=>'prof - le compte a été supprimé', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /prof - compte supprimé]", + 'notification_message'=>'compte supprimé pour $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - compte supprimé]", + 'confirmation_message'=>'votre compte a été supprimé sur $$__base_url__$$', ], // 8. payments : email : account_will_expire : faire rappels emails avant expiration 'account_will_expire'=>[ - 'name'=>'le compte va bientot expirer', + 'name'=>'prof - le compte va bientot expirer', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /prof - compte va expirer]", + 'notification_message'=>'le compte va expirer pour $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - compte va expirer]", + 'confirmation_message'=>'votre compte va expirer bientot, renouvellez-le sur $$__base_url__$$', ], // 9. payments : email : account_expired : desactiver carte expiree 'account_expired'=>[ - 'name'=>'le compte a expiré', + 'name'=>'prof - le compte a expiré', 'notification_send'=>true, 'notification_to'=>'$$__admin_email__$$', - 'notification_subject'=>"", - 'notification_message'=>"", + 'notification_subject'=>"[CIPF /prof - compte expiré]", + 'notification_message'=>'compte expiré pour $$user_login$$ : $$__author_page_url__$$', 'confirmation_send'=>true, - 'confirmation_subject'=>"", - 'confirmation_message'=>"", + 'confirmation_subject'=>"[CIPF - compte expiré]", + 'confirmation_message'=>'votre compte a expiré, renouvelez-le sur $$__base_url__$$', ], ], ]; diff --git a/plugins/cipf_plugin/html/menu/cipf_menu.html b/plugins/cipf_plugin/html/menu/cipf_menu.html index 2a460fd..4153bb5 100644 --- a/plugins/cipf_plugin/html/menu/cipf_menu.html +++ b/plugins/cipf_plugin/html/menu/cipf_menu.html @@ -29,9 +29,8 @@ * */ form.emails_form_cipf { - margin: 0px; - border: none; - padding: 0px; + margin: 10px; + padding: 10px; > input[type="submit"] { margin-left: 15px; } @@ -158,7 +157,7 @@
- +
@@ -179,7 +178,7 @@
- +
diff --git a/plugins/cipf_plugin/php/admin_menu.php b/plugins/cipf_plugin/php/admin_menu.php index c111f90..0f34967 100644 --- a/plugins/cipf_plugin/php/admin_menu.php +++ b/plugins/cipf_plugin/php/admin_menu.php @@ -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 2: " . json_encode($option_data['payment_success']['confirmation_message'])); 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("option 1: " . json_encode($email_options['confirmation_message'])); return $email_options; } diff --git a/plugins/cipf_plugin/plgntls_class.php b/plugins/cipf_plugin/plgntls_class.php index ed08547..4b5eaf3 100644 --- a/plugins/cipf_plugin/plgntls_class.php +++ b/plugins/cipf_plugin/plgntls_class.php @@ -1120,7 +1120,6 @@ error_log("toggle menu: " . json_encode($option_toggle)); * 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); if (false === $option_name) { return;