[dev] Conditionally link to Horde in the navbar

John Morrissey jwm at horde.net
Thu Apr 17 16:39:41 PDT 2003


I'm setting up a new IMP installation and don't want to link to the Horde
portal view within applications (user confusion issues). I put Horde itself
into 'notoolbar' status in registry.php, but the Problem Reporting page (and
others) still link to Horde in the toolbar.

Attached is a patch to omit the Horde link in Horde's navbar if it isn't
active.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__
-------------- next part --------------
Index: templates/navbar/menu.inc
===================================================================
RCS file: /repository/horde/templates/navbar/menu.inc,v
retrieving revision 1.7
diff -u -r1.7 menu.inc
--- templates/navbar/menu.inc	23 Jan 2003 23:54:03 -0000	1.7
+++ templates/navbar/menu.inc	17 Apr 2003 18:10:04 -0000
@@ -5,7 +5,9 @@
 <?php
 /* Horde navbar items. */
 if (Auth::getAuth()) {
-    Menu::printItem(Horde::applicationUrl('login.php'), _("Home"), 'horde.gif');
+    if ($registry->getParam('status', 'horde') == 'active') {
+        Menu::printItem(Horde::applicationUrl('login.php'), _("Home"), 'horde.gif');
+    }
 
     if (Auth::isAdmin()) {
         Menu::printItem(Horde::applicationUrl('admin/'), _("Administration"), 'administration.gif');


More information about the dev mailing list