PluginProbe
ShiftController Employee Shift Scheduling / 2.2.3
ShiftController Employee Shift Scheduling v2.2.3
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | application/config/menu.php +33 -71 3.2.42.2.3 View file →
@@ -2,104 +2,67 @@
2 2 $CI =& ci_get_instance();
3 3 $config = array();
4 4
5 5 $config = array(
6 - USER_HC_MODEL::LEVEL_ADMIN . '/calendar' =>
6 + USER_MODEL::LEVEL_ADMIN . '/schedules' =>
7 7 array(
8 - 'title' => HCM::__('Full Schedule'),
9 - 'icon' => 'calendar',
10 - 'link' => 'list',
8 + 'title' => '<i class="fa fa-calendar"></i> ' . lang('schedules'),
9 + 'link' => 'admin/schedules',
11 10 ),
12 - USER_HC_MODEL::LEVEL_ADMIN . '/calendarme' =>
11 + USER_MODEL::LEVEL_ADMIN . '/users' =>
13 12 array(
14 - 'title' => HCM::__('My Schedule'),
15 - 'icon' => 'calendar',
16 - 'link' => 'listme',
13 + 'title' => '<i class="fa fa-user"></i> ' . lang('users'),
14 + 'link' => 'admin/users',
17 15 ),
18 - USER_HC_MODEL::LEVEL_ADMIN . '/timeoffs' =>
16 + USER_MODEL::LEVEL_ADMIN . '/timeoffs' =>
19 17 array(
20 - 'title' => HCM::__('Timeoff Requests'),
21 - 'icon' => HC_Html::icon(HC_App::icon_for('timeoff')),
22 - 'link' => 'list-toff',
18 + 'title' => '<i class="fa fa-coffee"></i> ' . lang('timeoffs'),
19 + 'link' => 'admin/timeoffs',
23 20 ),
24 - USER_HC_MODEL::LEVEL_ADMIN . '/todo' =>
21 + USER_MODEL::LEVEL_ADMIN . '/conf' =>
25 22 array(
26 - 'title' => HCM::__('Todo'),
27 - 'icon' => 'todo',
28 - 'link' => 'admin/todo',
29 - ),
30 - USER_HC_MODEL::LEVEL_ADMIN . '/conf' =>
31 - array(
32 - 'title' => HCM::__('Configuration'),
33 - 'icon' => 'cog',
23 + 'title' => '<i class="fa fa-cog"></i> ' . lang('menu_conf'),
34 24 'link' => '',
35 25 'order' => 100,
36 26 ),
37 - USER_HC_MODEL::LEVEL_ADMIN . '/conf/users' => array(
38 - 'title' => HCM::__('Users'),
39 - 'icon' => 'user',
40 - 'link' => 'admin/users',
41 - ),
42 - USER_HC_MODEL::LEVEL_ADMIN . '/conf/locations' => array(
43 - 'title' => HCM::__('Locations'),
44 - 'icon' => 'home',
27 + USER_MODEL::LEVEL_ADMIN . '/conf/locations' => array(
28 + 'title' => '<i class="fa fa-home fa-fw"></i> ' . lang('locations'),
45 29 'link' => 'admin/locations',
46 30 ),
47 - USER_HC_MODEL::LEVEL_ADMIN . '/conf/templates' => array(
48 - 'title' => HCM::__('Shift Templates'),
49 - 'icon' => 'clock',
31 + USER_MODEL::LEVEL_ADMIN . '/conf/templates' => array(
32 + 'title' => '<i class="fa fa-clock-o fa-fw"></i> ' . lang('shift_templates'),
50 33 'link' => 'admin/shift-templates',
51 34 ),
52 - USER_HC_MODEL::LEVEL_ADMIN . '/conf/settings' => array(
53 - 'title' => HCM::__('Settings'),
54 - 'icon' => 'cog',
35 + USER_MODEL::LEVEL_ADMIN . '/conf/settings' => array(
36 + 'title' => '<i class="fa fa-cogs fa-fw"></i> ' . lang('menu_conf_settings'),
55 37 'link' => 'conf/admin',
56 38 'order' => 100
57 39 ),
58 40 );
59 41
60 -$config[ USER_HC_MODEL::LEVEL_MANAGER . '/calendar' ] = array(
61 - 'title' => HCM::__('Full Schedule'),
62 - 'icon' => 'calendar',
63 - 'link' => 'list',
42 +$config[ USER_MODEL::LEVEL_MANAGER . '/schedules' ] = array(
43 + 'title' => '<i class="fa fa-calendar"></i> ' . lang('schedules'),
44 + 'link' => 'admin/schedules',
64 45 );
65 -$config[ USER_HC_MODEL::LEVEL_MANAGER . '/calendarme' ] = array(
66 - 'title' => HCM::__('My Schedule'),
67 - 'icon' => 'calendar-o',
68 - 'link' => 'listme',
46 +$config[ USER_MODEL::LEVEL_MANAGER . '/timeoffs' ] = array(
47 + 'title' => '<i class="fa fa-coffee"></i> ' . lang('timeoffs'),
48 + 'link' => 'admin/timeoffs',
69 49 );
70 -$config[ USER_HC_MODEL::LEVEL_MANAGER . '/timeoffs' ] = array(
71 - 'title' => HCM::__('Timeoff Requests'),
72 - 'icon' => HC_Html::icon(HC_App::icon_for('timeoff')),
73 - 'link' => 'list-toff',
50 +
51 +$config[ USER_MODEL::LEVEL_STAFF . '/schedules' ] = array(
52 + 'title' => '<i class="fa fa-calendar-o"></i> ' . lang('my_schedule'),
53 + 'link' => '/staff/shifts',
74 54 );
75 -
76 -$config[ USER_HC_MODEL::LEVEL_STAFF . '/calendarme' ] = array(
77 - 'title' => HCM::__('My Schedule'),
78 - 'icon' => 'calendar',
79 - 'link' => 'listme',
55 +$config[ USER_MODEL::LEVEL_STAFF . '/timeoffs' ] = array(
56 + 'title' => '<i class="fa fa-coffee"></i> ' . lang('my_timeoffs'),
57 + 'link' => '/staff/timeoffs',
80 58 );
81 -$config[ USER_HC_MODEL::LEVEL_STAFF . '/timeoffs' ] = array(
82 - 'title' => HCM::__('Timeoff Requests'),
83 - 'icon' => HC_Html::icon(HC_App::icon_for('timeoff')),
84 - 'link' => 'list-toff',
85 - );
86 59
87 -$app_conf = HC_App::app_conf();
88 -$wall_schedule_display = $app_conf->get('wall:schedule_display');
89 -
90 -if( $wall_schedule_display <= USER_HC_MODEL::LEVEL_STAFF ){
91 - $config[ USER_HC_MODEL::LEVEL_STAFF . '/calendar' ] = array(
92 - 'title' => HCM::__('Full Schedule'),
93 - 'icon' => 'calendar',
94 - 'link' => 'list',
95 - );
96 -}
97 -
98 60 $promo_url = $CI->config->item( 'nts_promo_url' );
99 -if( $promo_url ){
61 +if( $promo_url )
62 +{
100 63 $promo_title = $CI->config->item( 'nts_promo_title' );
101 - $config[USER_HC_MODEL::LEVEL_ADMIN . '/promo'] = array(
64 + $config[USER_MODEL::LEVEL_ADMIN . '/promo'] = array(
102 65 'title' => $promo_title,
103 66 'link' => $promo_url,
104 67 'external' => TRUE,
105 68 'order' => 200
@@ -104,7 +67,6 @@
104 67 'external' => TRUE,
105 68 'order' => 200
106 69 );
107 70 }
108 -
109 71 /* End of file menu.php */
110 72 /* Location: ./application/config/menu.php */