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.*
$res = '<table class="bicol banana_msg" cellpadding="0" cellspacing="0">';
$res .= '<tr><th colspan="2">'._b_('En-têtes').'</th></tr>';
+ $res .= '<tr><td class="headers"><table cellpadding="0" cellspacing="0">';
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 .= '<tr><td class="hdr">'.header_translate($hdr)."</td><td class='val'>$res2</td></tr>\n";
+ } else if ($res2) {
+ $xface = $res2;
}
}
}
+ $res .= '</table></td><td class="xface">';
+
+ if ($xface) {
+ $res .= $xface;
+ }
+ $res .= '</td></tr>';
$res .= '<tr><th colspan="2">'._b_('Corps');
if (count($this->messages) > 1) {
/** 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%; }