[dev] Horde customization
John Morrissey
jwm at horde.net
Wed Jul 23 08:45:47 PDT 2003
I need to add a logo above the sidebar for a local Horde installation. I've
got a quick patch to do this, but I wonder if this would fit into some
broader customization/branding ideas - I've seen people post about branding
before.
Also, I need to add some external links to the sidebar. I added some extra
stanzas to config/registry.php, but there isn't a way to set the link
target. Should I add an extra parameter for the target, or maybe create a
new 'status => 'link'' type that accepts a full HTML anchor tag?
thanks,
john
--
John Morrissey _o /\ ---- __o
jwm at horde.net _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__
-------------- next part --------------
Index: config/conf.php.dist
===================================================================
RCS file: /repository/horde/config/conf.php.dist,v
retrieving revision 1.48
diff -u -r1.48 conf.php.dist
--- config/conf.php.dist 8 Jul 2003 04:12:50 -0000 1.48
+++ config/conf.php.dist 23 Jul 2003 15:36:45 -0000
@@ -477,3 +477,6 @@
// example when showing name lists to the user.
// There are examples for such functions in horde/config/hooks.php.dist.
$conf['hooks']['username'] = false;
+
+$conf['logo']['image'] = '/img/FN_logo_plain.gif';
+$conf['logo']['link'] = 'http://home.frontiernet.net/';
Index: templates/horde/menu.inc
===================================================================
RCS file: /repository/horde/templates/horde/menu.inc,v
retrieving revision 1.3
diff -u -r1.3 menu.inc
--- templates/horde/menu.inc 18 Mar 2003 16:33:47 -0000 1.3
+++ templates/horde/menu.inc 23 Jul 2003 15:36:45 -0000
@@ -3,9 +3,19 @@
<td class="menu">
<table border="0" width="100%">
<tr>
- <td width="100%">
-
- </td>
+ <td width=100%">
+ <?php
+ if (isset($conf['logo']['image'])) {
+ if (isset($conf['logo']['link'])) {
+ echo Horde::link($conf['logo']['link'], null, null, '_top');
+ }
+ echo Horde::img($conf['logo']['image'], '', 'border="0"', '');
+ if (isset($conf['logo']['link'])) {
+ echo '</a>';
+ }
+ }
+ ?>
+ </td>
</tr>
</table>
</td>
More information about the dev
mailing list