From 6c4ca0c02a0a867f027e27755882d50138914fbc Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Sat, 13 Jan 2007 23:35:30 +0000
Subject: [PATCH] =?UTF-8?q?Dans=20page=20d'envoi=20de=20message,=20ajout?=
 =?UTF-8?q?=20d'un=20bouton=20d'envoi=20de=20mail.=20De=20cette=20fac?=
 =?UTF-8?q?=CC=A7on,=20un=20clic=20sur=20"M>"=20vert=20permet=20de=20faire?=
 =?UTF-8?q?=20les=202=20actions=20(envoi=20de=20message=20SPIP,=20et=20env?=
 =?UTF-8?q?oi=20d'email).?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Idealement: changer l'intitulé ("Envoyer un email").
---
 .gitattributes                   |   1 +
 dist/images/envoi-message-24.gif | Bin 0 -> 311 bytes
 ecrire/exec/message_edit.php     |   9 +++++++++
 3 files changed, 10 insertions(+)
 create mode 100644 dist/images/envoi-message-24.gif

diff --git a/.gitattributes b/.gitattributes
index b326fdb801..f90e8cda2d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -72,6 +72,7 @@ dist/images/documents-48.png -text
 dist/images/documents-48_rtl.png -text
 dist/images/edit.gif -text
 dist/images/effacer-cache-24.gif -text
+dist/images/envoi-message-24.gif -text
 dist/images/feed.png -text
 dist/images/fiche-perso-24.gif -text
 dist/images/fiche-perso.png -text
diff --git a/dist/images/envoi-message-24.gif b/dist/images/envoi-message-24.gif
new file mode 100644
index 0000000000000000000000000000000000000000..eb526c3ee3549debc764b75d10ceff62edc65661
GIT binary patch
literal 311
zcmZ?wbhEHblwgoxI3mw5XUWuOZ|-DdWQ67F9J;z{-MV$hjvf2``?tTpe@IBkq?z42
zckZm2?Xc^@TxVzJ*Y93dRaKohapKC&v){jepE`Bwf&~lg?CcV=LmC?!UwwGIXV0D|
zPo8}J`t|?+{|pQac6M78f3h$#Fvv6LFfcGMfb3*o-SR-aFC}wc#;SEWtE&oh&Tn|B
z8oTa&&7-OF*qe$K{JKskvj_f|XfwCB*?Dc$^wy4ImZv#w*H<l8y2xbfnpxpFG3Shb
zL;J3cF@h3@(~=8LF>w{kFa?KjFo{aX)hanMN(!+QF>!M{bBM4Bu*FH$@lWJk)EFn^
zQzau%&0QzSvS@>NQ+3!X-(G&6UAvg&s`np|7T7K?w|kGA)Tz^FPTBPu^6WLa5*@Qw
TPu=vU*`0g$A3T&-WUvMRor;My

literal 0
HcmV?d00001

diff --git a/ecrire/exec/message_edit.php b/ecrire/exec/message_edit.php
index 3c6984f67c..f32a2e01bc 100644
--- a/ecrire/exec/message_edit.php
+++ b/ecrire/exec/message_edit.php
@@ -63,6 +63,15 @@ function exec_message_edit_dist()
 
 
 	debut_gauche();
+	
+	if($type == 'normal' AND $dest) {
+		$nom = spip_fetch_array(spip_query("SELECT nom, email FROM spip_auteurs WHERE id_auteur=$dest"));
+		if (strlen($nom['email']) > 3) {
+			echo "<div align='center'>";
+			icone(_T('info_envoyer_message_prive'), "mailto:".$nom['email'], "envoi-message-24.gif");
+			echo "</div>";
+		}
+	}
 
 	debut_droite();
 
-- 
GitLab