]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/menu.php
Cron plugin added and now default queue handler
[quix0rs-gnu-social.git] / lib / menu.php
index 4f671380e66475ec8fa371c9cc907ff2e79f8b34..281ef7797be7c4af1c9aa2179cbd4df59ebbaf13 100644 (file)
@@ -104,7 +104,7 @@ class Menu extends Widget
         }
     }
     
-    function item($actionName, $args, $label, $description, $id=null)
+    function item($actionName, $args, $label, $description, $id=null, $cls=null)
     {
         if (empty($id)) {
             $id = $this->menuItemID($actionName, $args);
@@ -116,7 +116,8 @@ class Menu extends Widget
                              $label,
                              $description,
                              $this->isCurrent($actionName, $args),
-                             $id);
+                             $id,
+                             $cls);
     }
 
     function isCurrent($actionName, $args)
@@ -143,6 +144,8 @@ class Menu extends Widget
                 $id .= '_' . $key . '_' . $value;
             }
         }
+
+        return $id;
     }
 
     function submenu($label, $menu)