-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutil-extend.php
More file actions
77 lines (72 loc) · 1.48 KB
/
Copy pathutil-extend.php
File metadata and controls
77 lines (72 loc) · 1.48 KB
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
70
71
72
73
74
75
76
77
<?php
/**
* There is maybe a better way to include this but for now, this are my custom hacks:
*/
class BC_CUSTOM {
/**
* Returns the Path of the Theme:
*/
public static function getThisTheme($subPath=null)
{
$themepath = OC::$WEBROOT.'/themes/'.OC_Util::getTheme();
switch ($subPath) {
case 'css':
return $themepath.'/core/css';
break;
case 'js':
return $themepath.'/core/js';
break;
default:
return $themepath;
break;
}
}
/**
* Returns the fontawesome icon correlating to a setting ap name:
*/
public static function getSetNavIcons($id)
{
switch ($id)
{
case "personal":
return "user";
break;
case "core_users":
return "group";
break;
case "core_apps":
return "list";
break;
case "admin":
return "cogs";
break;
case "help":
return "info";
break;
}
}
/**
* Returns the fontawesome icon correlating to a main navigation:
*/
public static function getNavIcons($id)
{
switch ($id)
{
case "files_index":
return "folder-close-alt";
break;
case "media_index":
return "music";
break;
case "calendar_index":
return "calendar";
break;
case "contacts_index":
return "group";
break;
case "gallery_index":
return "picture";
break;
}
}
}