[dev] Per-theme top-left image

Stuart Bingë s.binge at codefusion.co.za
Thu Mar 18 00:06:10 PST 2004


Hey guys,

Here's a one-liner patch to horde's menu.inc template which you may find 
useful. What it does is change the top-left block (above the sidebar) to have 
a css class of 'topleftimage'. This gives you the ability to have a per-theme 
(albeit non-linkable) image in the top left corner, by adding code such as 
the following to the themes' html-XXX.php file:

$css['.topleftimage']['background'] = "url('/horde/graphics/my-bg.jpg')";
$css['.topleftimage']['width'] = '140px'; // These should be the 
$css['.topleftimage']['height'] = '40px'; // dimensions of 'my-bg.jpg'

Cheers,

-- 
Stuart Bingë
Code Fusion cc.

Office: +27 11 673 0411
Mobile: +27 83 298 9727
Email: s.binge at codefusion.co.za

Tailored email solutions; Kolab specialists.
http://www.codefusion.co.za/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topleftimage.patch
Type: text/x-diff
Size: 572 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040318/13d1aa32/topleftimage.bin


More information about the dev mailing list