From 1e66494f8e847dd3ba884d611de71098ff8b79e5 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 8 Feb 2010 18:06:13 +0000 Subject: [PATCH] for main nav --- classes/class_template.inc | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/classes/class_template.inc b/classes/class_template.inc index 4458341..a2a4d4f 100644 --- a/classes/class_template.inc +++ b/classes/class_template.inc @@ -999,18 +999,22 @@ class GLM_TEMPLATE // }}} // {{{ get_main_nav() - function get_main_nav() + function get_main_nav($topParent) { $query = "select id,category from bus_category where parent = 0 - and id not in (".HOME_ID.",".MEMBERS_CATEGORY.",7,8,9) + and id not in (".HOME_ID.",".MEMBERS_CATEGORY.") and active = 't' order by pos"; if ($data = $this->DB->pgsql_select( $query ) ){ - $out = '