From b01c5cc0967318c4572f0b4c74e93e673aa3eec0 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 25 Mar 2010 22:38:09 +0000 Subject: Move set_tabsheet function for plugins pages to plugins class. git-svn-id: http://piwigo.org/svn/trunk@5367 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/plugins.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'admin/include/plugins.class.php') diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 8b5cdd4d0..b099fc4e9 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -40,6 +40,24 @@ class plugins } } + /** + * Set tabsheet for plugins pages. + * @param string selected page. + */ + function set_tabsheet($selected) + { + include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); + + $link = get_root_url().'admin.php?page='; + + $tabsheet = new tabsheet(); + $tabsheet->add('plugins_list', l10n('Plugin list'), $link.'plugins_list'); + $tabsheet->add('plugins_update', l10n('Check for updates'), $link.'plugins_update'); + $tabsheet->add('plugins_new', l10n('Other plugins'), $link.'plugins_new'); + $tabsheet->select($selected); + $tabsheet->assign(); + } + /** * Perform requested actions * @param string - action -- cgit v1.2.3