[
'desc' => 'Moderator actions',
'pages' => [
'index' => [
'title' => 'Index',
'sub' => [
'front-page' => [
'desc' => 'Front Page'
]
]
],
'message-board' => [
'title' => 'Message Board',
'sub' => []
],
'reports' => [
'title' => 'Reports',
'sub' => []
],
'banning' => [
'title' => 'Banning',
'sub' => []
],
'warnings' => [
'title' => 'Warnings',
'sub' => []
],
'user-notes' => [
'title' => 'User notes',
'sub' => []
],
'action-logs' => [
'title' => 'Action Logs',
'sub' => []
]
]
],
// Administrative
'adm' => [
'desc' => 'Administrator actions',
'pages' => [
'statistics' => [
'title' => 'Statistics',
'sub' => []
],
'general-settings' => [
'title' => 'General Settings',
'sub' => []
],
'users' => [
'title' => 'Users',
'sub' => []
],
'ranks' => [
'title' => 'Ranks',
'sub' => []
],
'permissions' => [
'title' => 'Permissions',
'sub' => []
],
'customise' => [
'title' => 'Customise',
'sub' => []
],
'system' => [
'title' => 'System',
'sub' => []
]
]
]
];
// Add page specific things
$renderData['page'] = [
'title' => 'Manage Index',
'pages' => $managePages,
'activepage' => ,
'subs' => ,
'activesub' =>
];
// Print page contents
print Templates::render('main/index.tpl', $renderData);