div = new Element('DIV', { className: ob.cl || 'base', id: fid + '_div' });
if (ob.i) {
- div.update(ob.i);
+ div.setStyle({ background-image: 'url("' + ob.i + '")' });
}
if (ob.ch) {
div.writeAttribute({ className: 'exp' });
}
if ($elt['user_icon']) {
- $ob->cl = 'custom';
- $ob->i = IMP::img($elt['icon'], $elt['alt'], '', $elt['icondir']);
+ $ob->cl = 'customimg';
+ $dir = empty($elt['icondir'])
+ ? $GLOBALS['registry']->getImageDir()
+ : $elt['icondir'];
+ $ob->i = empty($dir)
+ ? $elt['icon']
+ : $dir . '/' . $elt['icon'];
}
return $ob;
#sidebarPanel li.folder a {
display: inline;
}
-#sidebarPanel .base, #sidebarPanel .col, #sidebarPanel .exp, #sidebarPanel .create, #sidebarPanel .drafts, #sidebarPanel .inbox, #sidebarPanel .sent, #sidebarPanel .spam, #sidebarPanel .trash {
+#sidebarPanel .base, #sidebarPanel .col, #sidebarPanel .exp, #sidebarPanel .create, #sidebarPanel .drafts, #sidebarPanel .inbox, #sidebarPanel .sent, #sidebarPanel .spam, #sidebarPanel .trash, #sidebarPanel .customimg {
display: inline;
float: left;
width: 20px;