WP File Manager
Current Path:
/
home
/
argothem
/
www
/
organecyberpresse
/
plugins
/
auto
/
agenda
/
v5.1.0
/
notifications
/
Name
Action
..
evenement_propose.html
Edit
evenement_publie.html
Edit
inc-evenement.html
Edit
instituerevenement.php
Edit
Editing: instituerevenement.php
<?php if (!defined('_ECRIRE_INC_VERSION')) return; function notifications_instituerevenement_dist($quoi, $id_evenement, $options) { include_spip('inc/config'); if (!lire_config('agenda/notifier_insitituer',false)) { return; } // ne devrait jamais se produire if ($options['statut'] == $options['statut_ancien']) { spip_log('statut inchange','notifications'); return; } include_spip('inc/texte'); $modele = ''; if ($options['statut'] == 'publie') { $modele = 'notifications/evenement_publie'; } if ($options['statut'] == 'prop' AND $options['statut_ancien'] != 'publie') { $modele = 'notifications/evenement_propose'; } if ($modele) { $destinataires = array(); if ($GLOBALS['meta']["suivi_edito"] == 'oui') { $destinataires = explode(',', $GLOBALS['meta']['adresse_suivi']); } $destinataires = pipeline('notifications_destinataires', array( 'args' => array( 'quoi' => $quoi, 'id' => $id_evenement, 'options' => $options ), 'data' => $destinataires ) ); $texte = email_notification_objet($id_evenement, 'evenement', $modele); notifications_envoyer_mails($destinataires, $texte); } }