forked from phpList/phplist-ui-bootlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainmenu.php
27 lines (23 loc) · 1.06 KB
/
mainmenu.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// functions for theme bootstrap
include_once dirname(__FILE__).'/functions.php';
if ($page_title == 'userclicks') $page_title = s('Click Statistics'); /* REMOVE AFTER RESOLVE MANTIS #18945 */
/* fix sections not opening submenues on first click */
$GLOBALS['pagecategories']['statistics']['toplink'] = 'statsoverview';
$GLOBALS['pagecategories']['develop']['toplink'] = 'tests';
if ( !in_array('system', $GLOBALS['pagecategories']['system']['menulinks']) ){
array_push($GLOBALS['pagecategories']['system']['menulinks'],'system');
}
if ( !in_array('editlist', $GLOBALS['pagecategories']['subscribers']['pages']) ){
array_push($GLOBALS['pagecategories']['subscribers']['pages'],'editlist');
}
/* add dashboard to top */
if ( !isset($GLOBALS['pagecategories']['home']) && !isset($GLOBALS['pagecategories']['dashboard']) ){
$pcrev = array_reverse($GLOBALS['pagecategories']);
$pcrev['dashboard'] = array(
'toplink' => 'dashboard',
'pages' => array('dashboard'),
'menulinks' => array(),
);
$GLOBALS['pagecategories'] = array_reverse($pcrev);
}