[dev] trees and PNG transparency in IE

Vilius Šumskas vilius at lnk.lt
Fri Dec 10 00:44:04 PST 2004


Quoting Chuck Hagenbuch <chuck at horde.org>:

>> Another thought; allow not only .png images to be used in themes. 
>> Link images
>> only by name, not by extension. So this way we can create themes, that
>> would be "compatible" with IE. For example only gif based.
>
> How would you avoid utterly killing performance?

Create iconset.php file in every theme directory. Put in it something like:

$icon['next'] = 'next.png';
$icon['back'] = 'back.png';
$icon['tree']['plus'] = 'tree/plus.png';

And change all .pngs in templates to those variables.

-- 
   Vilius



More information about the dev mailing list