@@ 18-39 (lines=22) @@ | ||
15 | } |
|
16 | } |
|
17 | ||
18 | if(!function_exists('determineIcon')) { |
|
19 | /** |
|
20 | * @param string $file |
|
21 | * @param string $selFile |
|
22 | * @param string $mode |
|
23 | * @return string |
|
24 | */ |
|
25 | function determineIcon($file, $selFile, $mode) |
|
26 | { |
|
27 | $icons = array( |
|
28 | 'default' => 'fa fa-file-o', |
|
29 | 'edit' => 'fa fa-pencil-square-o', |
|
30 | 'view' => 'fa fa-eye' |
|
31 | ); |
|
32 | $icon = $icons['default']; |
|
33 | if ($file == $selFile) { |
|
34 | $icon = isset($icons[$mode]) ? $icons[$mode] : $icons['default']; |
|
35 | } |
|
36 | ||
37 | return '<i class="' . $icon . ' FilesPage"></i>'; |
|
38 | } |
|
39 | } |
|
40 | ||
41 | if(!function_exists('markRow')) { |
|
42 | /** |
|
@@ 41-63 (lines=23) @@ | ||
38 | } |
|
39 | } |
|
40 | ||
41 | if(!function_exists('markRow')) { |
|
42 | /** |
|
43 | * @param string $file |
|
44 | * @param string $selFile |
|
45 | * @param string $mode |
|
46 | * @return string |
|
47 | */ |
|
48 | function markRow($file, $selFile, $mode) |
|
49 | { |
|
50 | $classNames = array( |
|
51 | 'default' => '', |
|
52 | 'edit' => 'editRow', |
|
53 | 'view' => 'viewRow' |
|
54 | ); |
|
55 | if ($file == $selFile) { |
|
56 | $class = isset($classNames[$mode]) ? $classNames[$mode] : $classNames['default']; |
|
57 | ||
58 | return ' class="' . $class . '"'; |
|
59 | } |
|
60 | ||
61 | return ''; |
|
62 | } |
|
63 | } |
|
64 | ||
65 | if(!function_exists('ls')) { |
|
66 | /** |