diff options
author | vdigital <vdigital@piwigo.org> | 2008-09-14 07:16:15 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2008-09-14 07:16:15 +0000 |
commit | fecb04f2eccd3e496a91f7996579243366a3a5ab (patch) | |
tree | be14b1ee2bdd2f673d4032158da160ec8b0da2b5 /admin/template/goto/theme/roma/themeconf.inc.php | |
parent | 4d37c48b3cc29f039c46a2b3fb0c4cf3ccbae851 (diff) |
Wigo becomes "goto".
Admin tpl files are moved.
git-svn-id: http://piwigo.org/svn/trunk@2530 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/goto/theme/roma/themeconf.inc.php')
-rw-r--r-- | admin/template/goto/theme/roma/themeconf.inc.php | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/admin/template/goto/theme/roma/themeconf.inc.php b/admin/template/goto/theme/roma/themeconf.inc.php new file mode 100644 index 000000000..690e3e4b9 --- /dev/null +++ b/admin/template/goto/theme/roma/themeconf.inc.php @@ -0,0 +1,59 @@ +<?php +/** + * Accordion menus need to be stable + */ +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 'element_set': + case 'cat_perm': + case 'permalinks': + case 'picture_modify': + if (isset($_GET['cat']) and $_GET['cat']=='caddie') { + return 3; + } + return 2; + case 'comments': + case 'upload': + 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 'plugins_list': + case 'plugin': + return 5; + } + } + return 0; +} + +$themeconf = array( + 'template' => 'goto', /* Goto Admin template */ + 'theme' => 'roma', /* "roma" is the foundation theme of Piwigo */ + 'icon_dir' => 'template/yoga/icon', + 'admin_icon_dir' => 'admin/template/goto/icon', + 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', + 'selected_admin_menu' => selected_admin_menu(), + 'local_head' => '', +); +?> |