From 218e9ec8a45fa38c2265814fa2bae09d88f81730 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sun, 12 Mar 2006 22:13:47 +0000 Subject: [PATCH] =?utf8?q?=3D=3Futf-8=3Fq=3FPermet=3D20le=3D20formatage=3D?= =?utf8?q?20des=3D20x-face=3D20diff=3DC3=3D83=3DC2=3DA9remment=3D20du=3D20?= =?utf8?q?reste=3D20des=3D20headers...?= =20S'inspire=20du=20formatage=20de=20kmail/knode=20(x-face=20=C3=83=C2=A0=20droite=20dans=20les=20headers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@40 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/banana.inc.php.in | 5 ++++- banana/post.inc.php | 11 ++++++++++- css/style.css | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index a8a42d7..ab4e6da 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -24,7 +24,10 @@ class Banana var $can_attach = true; /** Maximum allowed file size for attachment */ - var $maxfilesize = 100000; + var $maxfilesize = 100000; + /** Indicate wether x-face should be skinned as specials data or not + */ + var $formatxface = true; /** Regexp for selecting newsgroups to show (if empty, match all newsgroups) * ex : '^xorg\..*' for xorg.* diff --git a/banana/post.inc.php b/banana/post.inc.php index 4c53722..c94b1fd 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -336,15 +336,24 @@ class BananaPost $res = ''; $res .= ''; + $res .= ''; $res .= '
'._b_('En-tĂȘtes').'
'; foreach ($banana->show_hdr as $hdr) { if (isset($this->headers[$hdr])) { $res2 = formatdisplayheader($hdr, $this->headers[$hdr]); - if ($res2) { + if ($res2 && ($hdr != 'x-face' || !$banana->formatxface)) { $res .= '\n"; + } else if ($res2) { + $xface = $res2; } } } + $res .= '
'.header_translate($hdr)."$res2
'; + + if ($xface) { + $res .= $xface; + } + $res .= '
'._b_('Corps'); if (count($this->messages) > 1) { diff --git a/css/style.css b/css/style.css index 64f43f5..820179a 100644 --- a/css/style.css +++ b/css/style.css @@ -30,7 +30,9 @@ table.banana_thread span.cur { font-style: italic; font-size: 90%; } /** MESSAGE VIEW **/ +table.banana_msg td.headers { width: 100%; } table.banana_msg .hdr { width: 15%; text-align: right; font-weight: bold; padding-right: 1em; } +table.banana_msg td.xface { text-align: right; } table.banana_msg td.thrd { padding: 0px; } table.banana_msg table { border: 0px; padding: 0px; margin: 0px; width: 100%; } -- 2.1.4