static function loadDefaultMenus() { if (isEnabledPlugin("members") || isEnabledPlugin("groups")) { $params = array("name" => "directory", "label" => "Directory", "page" => "#", "menu" => "header_left", "weight" => 1); new MenuItem($params); } $params = array("name" => "my_account", "label" => "My Account", "page" => "#", "menu" => "header_right"); new MenuItem($params); if (!loggedIn()) { $params = array("name" => "login", "label" => "Login", "page" => "login", "menu" => "my_account", "weight" => 10); new MenuItem($params); $params = array("name" => "register", "label" => "Register", "page" => "register", "menu" => "my_account", "weight" => 10); new MenuItem($params); } else { $notifications = Notification::getNotificationCount(getLoggedInUserGuid()); if (!$notifications) { $notifications = 0; } $params = array("name" => "notifications", "label" => "Notifications <span class='badge'>{$notifications}</span>", "page" => "notifications", "menu" => "my_account", "weight" => 10); new MenuItem($params); $params = array("name" => "my_settings", "label" => "My Settings", "page" => "mySettings", "menu" => "my_account", "weight" => 100); if (!empty(Usersetting::listTabs())) { new MenuItem($params); } if (adminLoggedIn()) { $params = array("name" => "admin", "label" => "Admin", "page" => "admin", "menu" => "header_right"); new MenuItem($params); } $params = array("name" => "logout", "label" => "Logout", "page" => "action/logout", "menu" => "my_account"); new MenuItem($params); } return; }
* are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $current_tab = pageArray(1); if (!$current_tab) { $current_tab = "notifications"; } $tabs = Usersetting::listTabs(); $body = <<<HTML <div> <ul class="nav nav-pills"> HTML; if ($tabs) { foreach ($tabs as $tab) { if ($tab) { $label = translate("user_setting:{$tab}"); $body .= <<<HTML <li role="presentation" class="active"><a href="#">{$label}</a></li> </ul> HTML; } } $body .= <<<HTML