[903] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * eGroupWare - Webpage News Admin * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | * -------------------------------------------- * |
---|
| 11 | * This program was sponsered by Golden Glair productions * |
---|
| 12 | * http://www.goldenglair.com * |
---|
| 13 | \**************************************************************************/ |
---|
| 14 | |
---|
| 15 | { |
---|
| 16 | |
---|
| 17 | /* |
---|
| 18 | This hookfile is for generating an app-specific side menu used in the idots |
---|
| 19 | template set. |
---|
| 20 | |
---|
| 21 | $menu_title speaks for itself |
---|
| 22 | $file is the array with link to app functions |
---|
| 23 | |
---|
| 24 | display_sidebox can be called as much as you like |
---|
| 25 | */ |
---|
| 26 | |
---|
| 27 | $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); |
---|
| 28 | $file = Array( |
---|
| 29 | 'read news' => $GLOBALS['phpgw']->link('/news_admin/index.php'), |
---|
| 30 | 'Add New Article' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uinews.add') |
---|
| 31 | ); |
---|
| 32 | display_sidebox($appname,$menu_title,$file); |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | $title = lang('Preferences'); |
---|
| 36 | $file = array( |
---|
| 37 | 'Preferences' => $GLOBALS['phpgw']->link('/preferences/preferences.php','appname='.$appname), |
---|
| 38 | ); |
---|
| 39 | display_sidebox($appname,$title,$file); |
---|
| 40 | |
---|
| 41 | if ($GLOBALS['phpgw_info']['user']['apps']['admin']) |
---|
| 42 | { |
---|
| 43 | $title = lang('Administration'); |
---|
| 44 | $file = Array( |
---|
| 45 | 'News Administration' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uinews.write_news'), |
---|
| 46 | 'global categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=' . $appname), |
---|
| 47 | 'configure access permissions' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uiacl.acllist'), |
---|
| 48 | 'configure rss exports' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uiexport.exportlist') |
---|
| 49 | ); |
---|
| 50 | |
---|
| 51 | display_sidebox($appname,$title,$file); |
---|
| 52 | } |
---|
| 53 | unset($title); |
---|
| 54 | unset($file); |
---|
| 55 | } |
---|
| 56 | ?> |
---|