Web: Add icons and descriptions for second level menu items

This commit is contained in:
Eric Lippmann 2017-11-20 19:13:26 +01:00
parent b6b87796ed
commit 8ffa110901

View File

@ -302,11 +302,15 @@ class Web extends EmbeddedWeb
), ),
'children' => array( 'children' => array(
'about' => array( 'about' => array(
'icon' => 'info',
'description' => t('Open about page'),
'label' => t('About'), 'label' => t('About'),
'url' => 'about', 'url' => 'about',
'priority' => 700 'priority' => 700
), ),
'announcements' => array( 'announcements' => array(
'icon' => 'megaphone',
'description' => t('List announcements'),
'label' => t('Announcements'), 'label' => t('Announcements'),
'url' => 'announcements', 'url' => 'announcements',
'priority' => 710 'priority' => 710
@ -320,24 +324,32 @@ class Web extends EmbeddedWeb
'priority' => 800, 'priority' => 800,
'children' => array( 'children' => array(
'application' => array( 'application' => array(
'icon' => 'wrench',
'description' => t('Open application configuration'),
'label' => t('Application'), 'label' => t('Application'),
'url' => 'config/general', 'url' => 'config/general',
'permission' => 'config/application/*', 'permission' => 'config/application/*',
'priority' => 810 'priority' => 810
), ),
'authentication' => array( 'authentication' => array(
'icon' => 'users',
'description' => t('Open authentication configuration'),
'label' => t('Authentication'), 'label' => t('Authentication'),
'permission' => 'config/authentication/*', 'permission' => 'config/authentication/*',
'priority' => 830, 'priority' => 830,
'url' => 'role/list' 'url' => 'role/list'
), ),
'navigation' => array( 'navigation' => array(
'icon' => 'sitemap',
'description' => t('Open shared navigation configuration'),
'label' => t('Shared Navigation'), 'label' => t('Shared Navigation'),
'url' => 'navigation/shared', 'url' => 'navigation/shared',
'permission' => 'config/application/navigation', 'permission' => 'config/application/navigation',
'priority' => 840, 'priority' => 840,
), ),
'modules' => array( 'modules' => array(
'icon' => 'cubes',
'description' => t('Open module configuration'),
'label' => t('Modules'), 'label' => t('Modules'),
'url' => 'config/modules', 'url' => 'config/modules',
'permission' => 'config/modules', 'permission' => 'config/modules',
@ -352,11 +364,15 @@ class Web extends EmbeddedWeb
'priority' => 900, 'priority' => 900,
'children' => array( 'children' => array(
'account' => array( 'account' => array(
'icon' => 'sliders',
'description' => t('Open your account preferences'),
'label' => t('My Account'), 'label' => t('My Account'),
'priority' => 100, 'priority' => 100,
'url' => 'account' 'url' => 'account'
), ),
'logout' => array( 'logout' => array(
'icon' => 'off',
'description' => t('Log out'),
'label' => t('Logout'), 'label' => t('Logout'),
'priority' => 200, 'priority' => 200,
'attributes' => array('target' => '_self'), 'attributes' => array('target' => '_self'),
@ -368,6 +384,8 @@ class Web extends EmbeddedWeb
if (Logger::writesToFile()) { if (Logger::writesToFile()) {
$menu['system']['children']['application_log'] = array( $menu['system']['children']['application_log'] = array(
'icon' => 'doc-text',
'description' => t(''),
'label' => t('Application Log'), 'label' => t('Application Log'),
'url' => 'list/applicationlog', 'url' => 'list/applicationlog',
'permission' => 'application/log', 'permission' => 'application/log',