| 1 |
<?php |
| 2 |
$menu = array(); |
| 3 |
$menu['index'] = array( |
| 4 |
array($this->conf['path']), |
| 5 |
'<i class="fa fa-list"></i>' . ' ' . lang('common_view') |
| 6 |
); |
| 7 |
|
| 8 |
$CI =& ci_get_instance(); |
| 9 |
$ri = $CI->remote_integration(); |
| 10 |
if( ! $ri ) |
| 11 |
{ |
| 12 |
$menu['add'] = array( |
| 13 |
array($this->conf['path'], 'add'), |
| 14 |
'<i class="fa fa-plus-square-o"></i>' . ' ' . lang('common_add') |
| 15 |
); |
| 16 |
} |
| 17 |
else |
| 18 |
{ |
| 19 |
$menu['add'] = array( |
| 20 |
array($ri, $this->conf['path'], 'add'), |
| 21 |
'<i class="fa fa-plus-square-o"></i>' . ' ' . lang('common_add') . ' [' . ucfirst($ri) . ']' |
| 22 |
); |
| 23 |
|
| 24 |
$menu['sync'] = array( |
| 25 |
array($ri, $this->conf['path'], 'sync'), |
| 26 |
// '<i class="fa fa-download"></i>' . ' ' . lang('common_sync_from') . ' [' . ucfirst($ri) . ']' |
| 27 |
'<i class="fa fa-download"></i>' . ' ' . lang('common_sync_from') |
| 28 |
); |
| 29 |
} |
| 30 |
?> |
| 31 |
<?php require( NTS_SYSTEM_APPPATH . 'views/_boilerplate/_print_menu.php' ); ?> |