clearup float, fix icon

This commit is contained in:
Friendika 2011-05-24 20:49:19 -07:00
parent bc8eba4884
commit e7ef3b82f0

View file

@ -2547,6 +2547,7 @@ function prepare_body($item,$attach = false) {
return $s; return $s;
$arr = explode(',',$item['attach']); $arr = explode(',',$item['attach']);
$s .= '<div class="body-attach">';
if(count($arr)) { if(count($arr)) {
foreach($arr as $r) { foreach($arr as $r) {
$matches = false; $matches = false;
@ -2559,7 +2560,7 @@ function prepare_body($item,$attach = false) {
case 'audio': case 'audio':
case 'image': case 'image':
case 'text': case 'text':
$icon = '<div class="attachtype type-' . $attachtype . '"></div>'; $icon = '<div class="attachtype type-' . $icontype . '"></div>';
break; break;
default: default:
$icon = '<div class="attachtype type-unkn"></div>'; $icon = '<div class="attachtype type-unkn"></div>';
@ -2572,7 +2573,7 @@ function prepare_body($item,$attach = false) {
} }
} }
} }
$s .= '<div class="clear"></div>'; $s .= '<div class="clear"></div></div>';
return $s; return $s;
}} }}