mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-09 08:09:28 +00:00
9ff3eeff75
- Added requiredPermissions property to the navigation array in the config navigation.php - Added constant PERMISSION_NAVIGATION_METHOD to NavigationLib - Added parameter and array element requiredPermissions to method oneLevel of NavigationLib - Renamed method _sortArray to _sortNavigationArray in NavigationLib - Added private method _rmNotAllowedEntries to NavigationLib to remove menu entries that the logged user is not allow to use
110 lines
2.5 KiB
PHP
110 lines
2.5 KiB
PHP
<?php
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Header menu
|
|
|
|
$config['navigation_header'] = array(
|
|
'*' => array(
|
|
'fhcomplete' => array(
|
|
'link' => site_url(''),
|
|
'icon' => '',
|
|
'description' => 'FH-Complete',
|
|
'sort' => 1
|
|
),
|
|
'vilesci' => array(
|
|
'link' => base_url('vilesci'),
|
|
'icon' => '',
|
|
'description' => 'Vilesci',
|
|
'sort' => 2,
|
|
'requiredPermissions' => 'basis/vilesci:r'
|
|
),
|
|
'cis' => array(
|
|
'link' => CIS_ROOT,
|
|
'icon' => '',
|
|
'description' => 'CIS',
|
|
'sort' => 3
|
|
)
|
|
)
|
|
);
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Left side menu
|
|
|
|
$config['navigation_menu'] = array();
|
|
|
|
$config['navigation_menu']['Vilesci/index'] = array(
|
|
'dashboard' => array(
|
|
'link' => '#',
|
|
'description' => 'Dashboard',
|
|
'icon' => 'dashboard',
|
|
'sort' => 1
|
|
),
|
|
'lehre' => array(
|
|
'link' => '#',
|
|
'icon' => 'graduation-cap',
|
|
'description' => 'Lehre',
|
|
'expand' => true,
|
|
'sort' => 2,
|
|
'children'=> array(
|
|
'cis' => array(
|
|
'link' => CIS_ROOT,
|
|
'icon' => '',
|
|
'description' => 'CIS',
|
|
'expand' => true,
|
|
'sort' => 1
|
|
),
|
|
'infocenter' => array(
|
|
'link' => site_url('system/infocenter/InfoCenter'),
|
|
'icon' => 'info',
|
|
'description' => 'Infocenter',
|
|
'expand' => true,
|
|
'sort' => 2,
|
|
'requiredPermissions' => 'infocenter:r'
|
|
),
|
|
)
|
|
),
|
|
'administration' => array(
|
|
'link' => '#',
|
|
'icon' => 'gear',
|
|
'description' => 'Administration',
|
|
'expand' => false,
|
|
'sort' => 3,
|
|
'children'=> array(
|
|
'vilesci' => array(
|
|
'link' => base_url('vilesci'),
|
|
'icon' => '',
|
|
'description' => 'Vilesci',
|
|
'expand' => true,
|
|
'sort' => 1,
|
|
'requiredPermissions' => 'basis/vilesci:r'
|
|
),
|
|
'extensions' => array(
|
|
'link' => site_url('system/extensions/Manager'),
|
|
'icon' => 'cubes',
|
|
'description' => 'Extensions Manager',
|
|
'expand' => true,
|
|
'sort' => 2,
|
|
'requiredPermissions' => 'admin:r'
|
|
)
|
|
)
|
|
)
|
|
);
|
|
|
|
$config['navigation_menu']['system/infocenter/InfoCenter/index'] = array(
|
|
'freigegeben' => array(
|
|
'link' => site_url('system/infocenter/InfoCenter/freigegeben'),
|
|
'description' => 'Freigegeben',
|
|
'icon' => 'thumbs-up',
|
|
'sort' => 1
|
|
)
|
|
);
|
|
|
|
$config['navigation_menu']['system/infocenter/InfoCenter/freigegeben'] = array(
|
|
'back' => array(
|
|
'link' => site_url('system/infocenter/InfoCenter/index'),
|
|
'description' => 'Home',
|
|
'icon' => 'angle-left',
|
|
'sort' => 1
|
|
)
|
|
);
|