-
Notifications
You must be signed in to change notification settings - Fork 22
/
navigation.php
24 lines (18 loc) · 984 Bytes
/
navigation.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
<?php
$navigation = new PipeMenu();
if($loguser['powerlevel'] >= 3 && isAllowed("viewAdminRoom"))
$navigation->add(new PipeMenuLinkEntry(__("Admin"), "admin", "", "", "cogs"));
$bucket = "topMenuStart"; include("./lib/pluginloader.php");
$navigation->add(new PipeMenuLinkEntry(Settings::get("menuMainName"), "board", "", "", "home"));
if(isAllowed("viewMembers"))
$navigation->add(new PipeMenuLinkEntry(__("Member list"), "memberlist", "", "", "group"));
if(isAllowed("viewRanks"))
$navigation->add(new PipeMenuLinkEntry(__("Ranks"), "ranks", "", "", "trophy"));
if(isAllowed("viewOnline"))
$navigation->add(new PipeMenuLinkEntry(__("Online users"), "online", "", "", "eye-open"));
if(isAllowed("search"))
$navigation->add(new PipeMenuLinkEntry(__("Search"), "search", "", "", "search"));
$navigation->add(new PipeMenuLinkEntry(__("Last posts"), "lastposts", "", "", "reorder"));
$bucket = "topMenu"; include("./lib/pluginloader.php");
$layout_navigation = $navigation;
?>