From bdbc19216bf9f8866ad7423808618f8a15bfb182 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 31 May 2001 19:07:11 +0000 Subject: [PATCH] Added anchors so developers can link directly to there section in preferences --- preferences/index.php | 5 +++-- preferences/templates/default/index.tpl | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/preferences/index.php b/preferences/index.php index dfad6cabbe..a8ceaf458c 100755 --- a/preferences/index.php +++ b/preferences/index.php @@ -29,12 +29,13 @@ $pref_tpl->set_block('pref','spacer_row'); // This func called by the includes to dump a row header - function section_start($name='',$icon='') + function section_start($name='',$icon='',$appname='') { global $phpgw_info, $pref_tpl; $pref_tpl->set_var('icon_backcolor',$phpgw_info['theme']['row_off']); // $pref_tpl->set_var('link_backcolor',$phpgw_info['theme']['row_off']); + $pref_tpl->set_var('a_name',$appname); $pref_tpl->set_var('app_name',lang($name)); $pref_tpl->set_var('app_icon',$icon); if ($icon) @@ -66,7 +67,7 @@ function display_section($appname,$title,$file) { global $phpgw; - section_start($title,$phpgw->common->image($appname,Array('navbar.gif',$appname.'.gif'))); + section_start($title,$phpgw->common->image($appname,Array('navbar.gif',$appname.'.gif')),$appname); while(list($text,$url) = each($file)) { diff --git a/preferences/templates/default/index.tpl b/preferences/templates/default/index.tpl index c66c193553..21d21b36f5 100644 --- a/preferences/templates/default/index.tpl +++ b/preferences/templates/default/index.tpl @@ -6,14 +6,14 @@ - [ {app_name} ] + [ {app_name} ]   {app_name} -   {app_name} +   {app_name}