From 0cd59106d3fa5530406941fc004f8ffd3b68aaa3 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 13 Dec 2007 19:43:01 +0000 Subject: [PATCH] Modify ShowItem : for a vertical menu you show the selected item --- include/ac_common.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/ac_common.php b/include/ac_common.php index d42843ec6..df106b050 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -263,9 +263,16 @@ function ShowItem($p_array,$p_dir='V',$class="mtitle",$class_ref="mtitle",$defau if ( $p_dir == 'V') { foreach ($p_array as $all=>$href){ $title=""; + $set=""; if ( isset ($href[2] )) $title=$href[2]; - $ret.=''.$href[1].''; + if ( isset($href[3] )) + $set=$href[3]; + + if ( $set == $default ) + $ret.=''.$href[1].''; + else + $ret.=''.$href[1].''; } } //direction Horizontal