When the default text color is white (that happens with some themes) then
you will see nothing. This fix set the text color to black.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5997
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$divattary = Array('class' => "'bodyclass'");
$bgcolor = '#ffffff';
$text = '#000000';
$divattary = Array('class' => "'bodyclass'");
$bgcolor = '#ffffff';
$text = '#000000';
+ $has_bgc_stl = $has_txt_stl = false;
$styledef = '';
if (is_array($attary) && sizeof($attary) > 0){
foreach ($attary as $attname=>$attvalue){
$styledef = '';
if (is_array($attary) && sizeof($attary) > 0){
foreach ($attary as $attname=>$attvalue){
$styledef .= "background-image: url('$attvalue'); ";
break;
case 'bgcolor':
$styledef .= "background-image: url('$attvalue'); ";
break;
case 'bgcolor':
$styledef .= "background-color: $attvalue; ";
break;
case 'text':
$styledef .= "background-color: $attvalue; ";
break;
case 'text':
$styledef .= "color: $attvalue; ";
break;
}
}
$styledef .= "color: $attvalue; ";
break;
}
}
+ // Outlook defines a white bgcolor and no text color. This can lead to
+ // white text on a white bg with certain themes.
+ if ($has_bgc_stl && !$has_txt_stl) {
+ $styledef .= "color: $text; ";
+ }
if (strlen($styledef) > 0){
$divattary{"style"} = "\"$styledef\"";
}
if (strlen($styledef) > 0){
$divattary{"style"} = "\"$styledef\"";
}