Feat : les remplacements et leur doc pour @@date_maintenant@@ et @@date_heure_maintenant@@
This commit is contained in:
parent
1f134ebe36
commit
e60bb95f70
4 changed files with 12 additions and 2 deletions
|
@ -34,6 +34,6 @@ $GLOBALS['remplacements_gamumail'] = [
|
|||
'@@nom_site@@' => _T('gamumail:nom_site'),
|
||||
'@@url_raz_passe@@' => _T('gamumail:url_raz_passe'),
|
||||
'@@url_spip_pass@@' => _T('gamumail:url_spip_pass'),
|
||||
'@@date_maintenant@@' => date('d/m/Y'),
|
||||
'@@date_heure_maintenant' => date('d/m/Y H:i:s'),
|
||||
'@@date_maintenant@@' => _T('gamumail:date_maintenant'),
|
||||
'@@date_heure_maintenant' => _T('gamumail:date_heure_maintenant'),
|
||||
];
|
||||
|
|
|
@ -67,6 +67,12 @@ function inc_gamumail_remplacements_dist($args, $html) {
|
|||
$url_raz_passe = url_absolue(generer_url_public('spip_pass'));
|
||||
$html = gamumail_remplacer_modele('url_raz_passe', $url_raz_passe, $html);
|
||||
|
||||
/**
|
||||
* @@date_maintenant@@ => date actuelle, au format jj/mm/aaaa
|
||||
* @@date_heure_maintenant@@ => date + heure actuelle, au format jj/mm/aaaa HH:mm:ss
|
||||
**/
|
||||
$html = gamumail_remplacer_modele('date_maintenant', date('d/m/Y'), $html);
|
||||
$html = gamumail_remplacer_modele('date_heure_maintenant', date('d/m/Y H:i:s'), $html);
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
|
|||
'documents_attaches' => 'Documents attachés',
|
||||
'dbe_clic_editer' => 'Double clic pour éditer',
|
||||
'dbe_clic_editer_champs' => 'Double clic pour éditer les champs des modèles.',
|
||||
'date_maintenant' => 'Current date (in dd/mm/yyyy format)',
|
||||
'date_heure_maintenant' => 'Date + current time (in dd/mm/yyyy HH:mm:ss format)',
|
||||
|
||||
//EE
|
||||
'envoyer' => 'Envoyer',
|
||||
|
|
|
@ -27,6 +27,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
|
|||
'documents_attaches' => 'Documents attachés',
|
||||
'dbe_clic_editer' => 'Double clic pour éditer',
|
||||
'dbe_clic_editer_champs' => 'Double clic pour éditer les champs des modèles.',
|
||||
'date_maintenant' => 'Date actuelle (au format jj/mm/aaaa)',
|
||||
'date_heure_maintenant' => 'Date + heure actuelle (au format jj/mm/aaaa HH:mm:ss)',
|
||||
|
||||
//EE
|
||||
'envoyer' => 'Envoyer',
|
||||
|
|
Loading…
Add table
Reference in a new issue