aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_themes.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-17 23:50:53 +0000
committerplegall <plg@piwigo.org>2010-03-17 23:50:53 +0000
commitcd00dffa7210a16063ab8e8f7811929b75f9a8e8 (patch)
tree530c3db41beecbaeac6381dcb4389cacf3d5ad07 /admin/include/functions_themes.inc.php
parent3c6ef3d16d9746767647e88e0ba083e37855e03c (diff)
feature 1515: the new admin menu organization implies to tell the accordion
menu which section to open on page load. I've moved the single function in functions_themes.inc.php to function.php to avoid misunderstanding with theme manager. Ability to preset the active menu (in the future, a plugin may add its admin page anywhere in the menu, this features needs other change to be possible) git-svn-id: http://piwigo.org/svn/trunk@5173 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_themes.inc.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/admin/include/functions_themes.inc.php b/admin/include/functions_themes.inc.php
deleted file mode 100644
index 364bd1f3a..000000000
--- a/admin/include/functions_themes.inc.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Accordion menus need to be stable (called by themeconf.inc which need it)
- */
-function selected_admin_menu()
-{
- if (isset($_GET['page']))
- {
- switch ($_GET['page']) {
- case 'configuration':
- case 'extend_for_templates':
- case 'menubar':
- return 1;
- case 'site_manager':
- case 'site_update':
- case 'cat_list':
- case 'cat_modify':
- case 'cat_move':
- case 'cat_options':
- case 'cat_perm':
- case 'permalinks':
- return 2;
- case 'element_set':
- if (isset($_GET['cat']) and is_numeric($_GET['cat']) ) {
- return 2;
- }
- case 'picture_modify':
- return 3;
- case 'comments':
- case 'upload':
- case 'thumbnail':
- case 'rating':
- case 'tags':
- return 3;
- case 'user_list':
- case 'user_perm':
- case 'group_list':
- case 'group_perm':
- case 'notification_by_mail':
- return 4;
- case 'stats':
- case 'history':
- case 'maintenance':
- case 'advanced_feature':
- case 'plugins_list':
- case 'plugins_update':
- case 'plugins_new':
- case 'plugin':
- return 5;
- }
- }
- if (isset($_GET['plgmenu'])) /* Later added plugins will add plgmenu in url */
- {
- return 5;
- }
- return 0;
-}
-?> \ No newline at end of file