mirror of
https://github.com/scratchfoundation/swiki-navbar.git
synced 2024-11-21 10:48:08 -05:00
changed id values to support access keys
This commit is contained in:
parent
caa44dcffd
commit
b4bb4541d6
1 changed files with 8 additions and 7 deletions
15
Navbar.php
15
Navbar.php
|
@ -17,13 +17,13 @@ function lfHideSidebar( $skin, &$bar ) {
|
|||
array(
|
||||
'text' => Title::newFromText( wfMsgForContent( 'mainpage' ) ),
|
||||
'href' => Title::newFromText( wfMsgForContent( 'mainpage' ) )->getFullURL(),
|
||||
'id' => 'mainpage',
|
||||
'id' => 'n-mainpage',
|
||||
'active' => ''
|
||||
),
|
||||
array(
|
||||
'text' => 'Random Page',
|
||||
'href' => Title::newFromText( wfMsgForContent( 'randompage-url' ) )->getFullURL(),
|
||||
'id' => 'randompage',
|
||||
'id' => 'n-randompage',
|
||||
'active' => ''
|
||||
)
|
||||
)
|
||||
|
@ -34,25 +34,26 @@ function lfHideSidebar( $skin, &$bar ) {
|
|||
$bar['navigation'][] = array(
|
||||
'text' => 'Community Portal',
|
||||
'href' => Title::newFromText( wfMsgForContent( 'portal-url' ) )->getFullURL(),
|
||||
'id' => 'portal',
|
||||
'id' => 'n-portal',
|
||||
'active' => ''
|
||||
);
|
||||
$bar['navigation'][] = array(
|
||||
'text' => 'Current Events',
|
||||
'href' => Title::newFromText( wfMsgForContent( 'currentevents-url' ) )->getFullURL(),
|
||||
'id' => 'currentevents',
|
||||
'id' => 'n-currentevents',
|
||||
'active' => ''
|
||||
);
|
||||
$bar['navigation'][] = array(
|
||||
'text' => 'Recent Changes',
|
||||
'href' => Title::newFromText( wfMsgForContent( 'recentchanges-url' ) )->getFullURL(),
|
||||
'id' => 'recentchanges',
|
||||
'active' => ''
|
||||
'id' => 'n-recentchanges',
|
||||
'active' => '',
|
||||
|
||||
);
|
||||
$bar['navigation'][] = array(
|
||||
'text' => 'Help',
|
||||
'href' => Title::newFromText( wfMsgForContent( 'helppage' ) )->getFullURL(),
|
||||
'id' => 'recentchanges',
|
||||
'id' => 'n-help',
|
||||
'active' => ''
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue