| 1 |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
| 2 |
$CI =& ci_get_instance(); |
| 3 |
$config = array(); |
| 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 |
), |
| 40 |
); |
| 41 |
|
| 42 |
$config[ USER_MODEL::LEVEL_MANAGER . '/schedules' ] = array( |
| 43 |
'title' => '<i class="fa fa-calendar"></i> ' . lang('schedules'), |
| 44 |
'link' => 'admin/schedules', |
| 45 |
); |
| 46 |
$config[ USER_MODEL::LEVEL_MANAGER . '/timeoffs' ] = array( |
| 47 |
'title' => '<i class="fa fa-coffee"></i> ' . lang('timeoffs'), |
| 48 |
'link' => 'admin/timeoffs', |
| 49 |
); |
| 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', |
| 54 |
); |
| 55 |
$config[ USER_MODEL::LEVEL_STAFF . '/timeoffs' ] = array( |
| 56 |
'title' => '<i class="fa fa-coffee"></i> ' . lang('my_timeoffs'), |
| 57 |
'link' => '/staff/timeoffs', |
| 58 |
); |
| 59 |
|
| 60 |
$promo_url = $CI->config->item( 'nts_promo_url' ); |
| 61 |
if( $promo_url ) |
| 62 |
{ |
| 63 |
$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 |
| 69 |
); |
| 70 |
} |
| 71 |
/* End of file menu.php */ |
| 72 |
/* Location: ./application/config/menu.php */ |