aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/theme/admin/themeconf.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-05-03 17:28:15 +0000
committervdigital <vdigital@piwigo.org>2008-05-03 17:28:15 +0000
commit160bebef28b1f2427d546da9168b1b7d91a64eff (patch)
tree841648c4bdb7f1261331ef6ad8e6c0879bda5017 /template/yoga/theme/admin/themeconf.inc.php
parent40a882c3cf93030546f5ae2eddde7644c9db99bc (diff)
Start of Stripy look on Admin page (Not stable for all browsers)
git-svn-id: http://piwigo.org/svn/trunk@2328 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/yoga/theme/admin/themeconf.inc.php46
1 files changed, 45 insertions, 1 deletions
diff --git a/template/yoga/theme/admin/themeconf.inc.php b/template/yoga/theme/admin/themeconf.inc.php
index aed3fb102..1a2b51dc4 100644
--- a/template/yoga/theme/admin/themeconf.inc.php
+++ b/template/yoga/theme/admin/themeconf.inc.php
@@ -1,4 +1,47 @@
<?php
+/**
+ * Accordion menus need to be stable
+ */
+function selected_admin_menu()
+{
+ if (isset($_GET['page']))
+ {
+ switch ($_GET['page']) {
+ case 'configuration':
+ return 1;
+ case 'site_manager':
+ case 'site_update':
+ case 'cat_list':
+ case 'cat_modify':
+ case 'element_set':
+ case 'cat_perm':
+ case 'picture_modify':
+ if (isset($_GET['cat']) and $_GET['cat']='caddie') {
+ return 3;
+ }
+ return 2;
+ case 'comments':
+ case 'thumbnail':
+ case 'rating':
+ case 'tags':
+ return 3;
+ case 'user_list':
+ case 'group_list':
+ case 'notification_by_mail':
+ return 4;
+ case 'stats':
+ case 'history':
+ case 'maintenance':
+ case 'advanced_feature':
+ case 'wd_checker':
+ case 'plugins_list':
+ case 'plugin':
+ return 5;
+ }
+ }
+ return 0;
+}
+
$themeconf = array(
'template' => 'yoga',
'theme' => 'admin',
@@ -17,7 +60,8 @@ $themeconf = array(
jQuery().ready(function(){
jQuery(\'#menubar\').accordion({
header: "dt.rdion",
- event: "mouseover"
+ event: "mouseover",
+ active: '. selected_admin_menu() . '
});
});
</script>'