blob: 1a2b51dc477eba3ec0d778732b71f214601eb8ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?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',
'template_dir' => 'template/yoga',
'icon_dir' => 'template/yoga/icon',
'admin_icon_dir' => 'template/yoga/icon/admin',
'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
'local_head' => '
<!-- Admin Accordion Menus -->
<script type="text/javascript" src="template-common/lib/jquery.js"></script>
<script type="text/javascript" src="template-common/lib/chili-1.7.pack.js"></script>
<script type="text/javascript" src="template-common/lib/jquery.easing.js"></script>
<script type="text/javascript" src="template-common/lib/jquery.dimensions.js"></script>
<script type="text/javascript" src="template-common/jquery.accordion.js"></script>
<script type="text/javascript">
jQuery().ready(function(){
jQuery(\'#menubar\').accordion({
header: "dt.rdion",
event: "mouseover",
active: '. selected_admin_menu() . '
});
});
</script>'
);
?>
|