Exemplo n.º 1
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     hasAdminRights($isAdm);
     if (!$isAdm) {
         return array();
     }
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["subscription_ttitle"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("subscription/list");
     return $navBarPieces;
 }
Exemplo n.º 2
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["Notifications"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("notification/list");
     return $navBarPieces;
 }
Exemplo n.º 3
0
 function getNavBarPieces($absolute = FALSE)
 {
     global $gorumroll, $lll;
     hasAdminRights($isAdm);
     if (!$isAdm) {
         return array();
     }
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     if ($gorumroll->method == "showhtmllist") {
         $navBarPieces[$lll["users"]] = "";
     } else {
         $ctrl =& new AppController("user/list");
         $ctrl->setAbsolute($absolute);
         $navBarPieces[$lll["users"]] = $ctrl;
     }
     if ($gorumroll->method == "showdetails") {
         $navBarPieces[htmlspecialchars($this->name)] = "";
     } elseif ($gorumroll->list == "user" && ($gorumroll->method == "modify_form" || $gorumroll->method == "delete_form")) {
         $ctrl =& new AppController("user/showdetails/{$this->id}");
         $ctrl->setAbsolute($absolute);
         $navBarPieces[htmlspecialchars($this->name)] = $ctrl;
     }
     return $navBarPieces;
 }
Exemplo n.º 4
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$gorumroll->list == "appsettings_content" ? $lll["contentManagement"] : $lll["adminsett"]] = "";
     return $navBarPieces;
 }
Exemplo n.º 5
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["customlist_ttitle"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("customlist/list");
     return $navBarPieces;
 }
Exemplo n.º 6
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll, $gorumcategory;
     $cid = !empty($this->cid) ? $this->cid : $gorumcategory;
     if ($gorumroll->method == "sortfield_form" && $gorumroll->rollid !== 0 || !empty($this->cid)) {
         G::load($cat, $cid, "appcategory");
         $navBarPieces = $cat->getNavBarPieces();
     } else {
         $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     }
     $label = $cid ? "itemfield_ttitle_simple" : "itemfield_ttitle_global";
     if ($gorumroll->method == "sortfield_form") {
         $navBarPieces[$lll[$label]] = "";
     } else {
         $navBarPieces[$lll[$label]] = new AppController("field/sortfield_form/{$this->cid}");
     }
     return $navBarPieces;
 }