PluginProbe
ShiftController Employee Shift Scheduling / 2.1.2
ShiftController Employee Shift Scheduling v2.1.2
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 +59 -52 2.2.12.1.2 View file →
@@ -1,61 +1,69 @@
1 1 <?php defined('BASEPATH') OR exit('No direct script access allowed');
2 2 $CI =& ci_get_instance();
3 3 $config = array();
4 4
5 -$config = array(
6 - USER_MODEL::LEVEL_ADMIN . '/schedules' =>
7 - array(
8 - 'title' => '<i class="fa fa-calendar"></i> ' . lang('schedules'),
9 - 'link' => 'admin/schedules',
10 - ),
11 - USER_MODEL::LEVEL_ADMIN . '/users' =>
12 - array(
13 - 'title' => '<i class="fa fa-user"></i> ' . lang('users'),
14 - 'link' => 'admin/users',
15 - ),
16 - USER_MODEL::LEVEL_ADMIN . '/timeoffs' =>
17 - array(
18 - 'title' => '<i class="fa fa-coffee"></i> ' . lang('timeoffs'),
19 - 'link' => 'admin/timeoffs',
20 - ),
21 - USER_MODEL::LEVEL_ADMIN . '/conf' =>
22 - array(
23 - 'title' => '<i class="fa fa-cog"></i> ' . lang('menu_conf'),
24 - 'link' => '',
25 - 'order' => 100,
26 - ),
27 - USER_MODEL::LEVEL_ADMIN . '/conf/locations' => array(
28 - 'title' => '<i class="fa fa-home fa-fw"></i> ' . lang('locations'),
29 - 'link' => 'admin/locations',
30 - ),
31 - USER_MODEL::LEVEL_ADMIN . '/conf/templates' => array(
32 - 'title' => '<i class="fa fa-clock-o fa-fw"></i> ' . lang('shift_templates'),
33 - 'link' => 'admin/shift-templates',
34 - ),
35 - USER_MODEL::LEVEL_ADMIN . '/conf/settings' => array(
36 - 'title' => '<i class="fa fa-cogs fa-fw"></i> ' . lang('menu_conf_settings'),
37 - 'link' => 'conf/admin',
38 - 'order' => 100
39 - ),
5 +$config[User_model::LEVEL_ADMIN] = array(
6 + array(
7 + lang('schedules'),
8 + 'admin/schedules',
9 + 10
10 + ),
11 + array(
12 + lang('users'),
13 + 'admin/users',
14 + 20
15 + ),
16 + array(
17 + lang('timeoffs'),
18 + 'admin/timeoffs',
19 + 30
20 + ),
40 21 );
41 22
42 -$config[ USER_MODEL::LEVEL_MANAGER . '/schedules' ] = array(
43 - 'title' => '<i class="fa fa-calendar"></i> ' . lang('schedules'),
44 - 'link' => 'admin/schedules',
23 +$config[User_model::LEVEL_ADMIN]['conf'] = array(
24 + lang('menu_conf'),
25 + '',
26 + 100,
27 + 'locations' => array(
28 + lang('locations'),
29 + 'admin/locations',
30 + 10
31 + ),
32 + 'templates' => array(
33 + lang('shift_templates'),
34 + 'admin/shift-templates',
35 + 20
36 + ),
37 + 'settings' => array(
38 + lang('menu_conf_settings'),
39 + 'conf/admin',
40 + 100
41 + ),
45 42 );
46 -$config[ USER_MODEL::LEVEL_MANAGER . '/timeoffs' ] = array(
47 - 'title' => '<i class="fa fa-coffee"></i> ' . lang('timeoffs'),
48 - 'link' => 'admin/timeoffs',
43 +
44 +$config[User_model::LEVEL_MANAGER] = array(
45 + array(
46 + lang('schedules'),
47 + 'admin/schedules',
48 + 10
49 + ),
50 + array(
51 + lang('timeoffs'),
52 + 'admin/timeoffs',
53 + 30
54 + ),
49 55 );
50 56
51 -$config[ USER_MODEL::LEVEL_STAFF . '/schedules' ] = array(
52 - 'title' => '<i class="fa fa-calendar-o"></i> ' . lang('my_schedule'),
53 - 'link' => '/staff/shifts',
57 +$config[User_model::LEVEL_STAFF][] = array(
58 + lang('my_schedule'),
59 + 'staff/shifts',
60 + 10
54 61 );
55 -$config[ USER_MODEL::LEVEL_STAFF . '/timeoffs' ] = array(
56 - 'title' => '<i class="fa fa-coffee"></i> ' . lang('my_timeoffs'),
57 - 'link' => '/staff/timeoffs',
62 +$config[User_model::LEVEL_STAFF][] = array(
63 + lang('my_timeoffs'),
64 + 'staff/timeoffs',
65 + 20
58 66 );
59 67
60 68 $promo_url = $CI->config->item( 'nts_promo_url' );
61 69 if( $promo_url )
@@ -60,13 +68,12 @@
60 68 $promo_url = $CI->config->item( 'nts_promo_url' );
61 69 if( $promo_url )
62 70 {
63 71 $promo_title = $CI->config->item( 'nts_promo_title' );
64 - $config[USER_MODEL::LEVEL_ADMIN . '/promo'] = array(
65 - 'title' => $promo_title,
66 - 'link' => $promo_url,
67 - 'external' => TRUE,
68 - 'order' => 200
72 + $config[User_model::LEVEL_ADMIN]['promo'] = array(
73 + $promo_title,
74 + $promo_url,
75 + 200
69 76 );
70 77 }
71 78 /* End of file menu.php */
72 79 /* Location: ./application/config/menu.php */