From e01691fdccf387fb2979606104232bbca03df74f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Oct 2003 08:56:17 +0000 Subject: [PATCH] added a sidebox-menu --- etemplate/inc/hook_sidebox_menu.inc.php | 22 ++++++++++++++++++++++ etemplate/setup/setup.inc.php | 6 ++---- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 etemplate/inc/hook_sidebox_menu.inc.php diff --git a/etemplate/inc/hook_sidebox_menu.inc.php b/etemplate/inc/hook_sidebox_menu.inc.php new file mode 100644 index 0000000000..5a3cc72fef --- /dev/null +++ b/etemplate/inc/hook_sidebox_menu.inc.php @@ -0,0 +1,22 @@ + $GLOBALS['phpgw']->link('/index.php','menuaction=etemplate.editor.edit'), + 'DB-Tools' => $GLOBALS['phpgw']->link('/index.php','menuaction=etemplate.db_tools.edit'), + '_NewLine_', // give a newline + 'developer_tools' => $GLOBALS['phpgw']->link('/index.php','menuaction=developer_tools.uilangfile.index'), + ); + display_sidebox($appname,$menu_title,$file); diff --git a/etemplate/setup/setup.inc.php b/etemplate/setup/setup.inc.php index 0262a7c36e..d3519570b2 100644 --- a/etemplate/setup/setup.inc.php +++ b/etemplate/setup/setup.inc.php @@ -31,12 +31,10 @@ $setup_info['etemplate']['note'] = 'For more information check out the Tutorial, the Referenz Documentation - or the eTemplate page in our Wiki.'; + or the eTemplate page in our Wiki.'; /* The hooks this app includes, needed for hooks registration */ - //$setup_info['etemplate']['hooks'][] = 'preferences'; - //$setup_info['etemplate']['hooks'][] = 'admin'; - //$setup_info['etemplate']['hooks'][] = 'about'; + $setup_info['etemplate']['hooks'][] = 'sidebox_menu'; /* Dependencies for this app to work */ $setup_info['etemplate']['depends'][] = array(