- Navigation header array structure now is the same as the structure of the navigation menu array

- Implemented the sort logic and added the "sort" attribute to sort menu and header entries for the NavigationWidget
- Added the private method _sortArray to the NavigationLib to sort menu and header entries
- Added the "target" attribute to be used with the attribute "link" to build the link of a menu or header entry
- Now the header menu supports icons on the left side of the entry description
This commit is contained in:
Paolo
2018-06-20 18:12:38 +02:00
parent 3542ff539f
commit b65521199d
5 changed files with 126 additions and 26 deletions
+43 -16
View File
@@ -1,64 +1,91 @@
<?php
// --------------------------------------------------------------------------------------------------------------------
// Header menu
$config['navigation_header'] = array(
'*' => array(
'FH-Complete' => site_url(''),
'Vilesci' => base_url('vilesci'),
'CIS' => CIS_ROOT
'fhcomplete' => array(
'link' => site_url(''),
'icon' => '',
'description' => 'FH-Complete',
'sort' => 1
),
'vilesci' => array(
'link' => base_url('vilesci'),
'icon' => '',
'description' => 'Vilesci',
'sort' => 2
),
'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(
'dashboard' => array(
'link' => '#',
'description' => 'Dashboard',
'icon' => 'dashboard'
'icon' => 'dashboard',
'sort' => 1
),
'Lehre' => array(
'lehre' => array(
'link' => '#',
'icon' => 'graduation-cap',
'description' => 'Lehre',
'expand' => true,
'sort' => 2,
'children'=> array(
'CIS' => array(
'cis' => array(
'link' => CIS_ROOT,
'icon' => '',
'description' => 'CIS',
'expand' => true
'expand' => true,
'sort' => 1
),
'Infocenter' => array(
'infocenter' => array(
'link' => site_url('system/infocenter/InfoCenter'),
'icon' => 'info',
'description' => 'Infocenter',
'expand' => true
'expand' => true,
'sort' => 2
),
)
),
'Administration' => array(
'administration' => array(
'link' => '#',
'icon' => 'gear',
'description' => 'Administration',
'expand' => false,
'sort' => 3,
'children'=> array(
'Vilesci' => array(
'vilesci' => array(
'link' => base_url('vilesci'),
'icon' => '',
'description' => 'Vilesci',
'expand' => true
'expand' => true,
'sort' => 1
),
'Extensions' => array(
'extensions' => array(
'link' => site_url('system/extensions/Manager'),
'icon' => 'cubes',
'description' => 'Extensions Manager',
'expand' => true
'expand' => true,
'sort' => 2
)
)
)
);
$config['navigation_menu']['system/infocenter/InfoCenter/index'] = array(
'freigegeben' => array(
'link' => site_url('system/infocenter/InfoCenter/freigegeben'),