Last change
on this file since 2356 was
2356,
checked in by rvelices, 17 years ago
|
- merge r2355 from 1.7 to trunk: fix display of menubar related tags in IE7
- optimized sql query in permalinks
- remove some unused global variable declarations
- fix bug in admin/themeconf.inc.php
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.9 KB
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Accordion menus need to be stable |
---|
4 | */ |
---|
5 | function selected_admin_menu() |
---|
6 | { |
---|
7 | if (isset($_GET['page'])) |
---|
8 | { |
---|
9 | switch ($_GET['page']) { |
---|
10 | case 'configuration': |
---|
11 | return 1; |
---|
12 | case 'site_manager': |
---|
13 | case 'site_update': |
---|
14 | case 'cat_list': |
---|
15 | case 'cat_modify': |
---|
16 | case 'cat_move': |
---|
17 | case 'cat_options': |
---|
18 | case 'element_set': |
---|
19 | case 'cat_perm': |
---|
20 | case 'permalinks': |
---|
21 | case 'picture_modify': |
---|
22 | if (isset($_GET['cat']) and $_GET['cat']=='caddie') { |
---|
23 | return 3; |
---|
24 | } |
---|
25 | return 2; |
---|
26 | case 'comments': |
---|
27 | case 'thumbnail': |
---|
28 | case 'rating': |
---|
29 | case 'tags': |
---|
30 | return 3; |
---|
31 | case 'user_list': |
---|
32 | case 'group_list': |
---|
33 | case 'notification_by_mail': |
---|
34 | return 4; |
---|
35 | case 'stats': |
---|
36 | case 'history': |
---|
37 | case 'maintenance': |
---|
38 | case 'advanced_feature': |
---|
39 | case 'ws_checker': |
---|
40 | case 'plugins_list': |
---|
41 | case 'plugin': |
---|
42 | return 5; |
---|
43 | } |
---|
44 | } |
---|
45 | return 0; |
---|
46 | } |
---|
47 | |
---|
48 | $themeconf = array( |
---|
49 | 'template' => 'yoga', |
---|
50 | 'theme' => 'admin', |
---|
51 | 'template_dir' => 'template/yoga', |
---|
52 | 'icon_dir' => 'template/yoga/icon', |
---|
53 | 'admin_icon_dir' => 'template/yoga/icon/admin', |
---|
54 | 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', |
---|
55 | 'local_head' => ' |
---|
56 | <!-- Admin Accordion Menus --> |
---|
57 | <script type="text/javascript" src="template-common/lib/jquery.js"></script> |
---|
58 | <script type="text/javascript" src="template-common/lib/chili-1.7.pack.js"></script> |
---|
59 | <script type="text/javascript" src="template-common/lib/jquery.easing.js"></script> |
---|
60 | <script type="text/javascript" src="template-common/lib/jquery.dimensions.js"></script> |
---|
61 | <script type="text/javascript" src="template-common/jquery.accordion.js"></script> |
---|
62 | <script type="text/javascript"> |
---|
63 | jQuery().ready(function(){ |
---|
64 | jQuery(\'#menubar\').accordion({ |
---|
65 | header: "dt.rdion", |
---|
66 | event: "mouseover", |
---|
67 | active: '. selected_admin_menu() . ' |
---|
68 | }); |
---|
69 | }); |
---|
70 | </script>' |
---|
71 | ); |
---|
72 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.