]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
"Lists with you" and "List subscriptions" in the right aside, "Lists" in the left...
[quix0rs-gnu-social.git] / lib / action.php
index f626c04480f69112d7e7230443cca585b740d0b1..0234d2fa237aa7c64ed2217396b7175043fc0c89 100644 (file)
@@ -1354,13 +1354,16 @@ class Action extends HTMLOutputter // lawsuit
      *
      * @return nothing
      */
-    function menuItem($url, $text, $title=null, $is_selected=false, $id=null)
+    function menuItem($url, $text, $title=null, $is_selected=false, $id=null, $class=null)
     {
         // Added @id to li for some control.
         // XXX: We might want to move this to htmloutputter.php
         $lattrs = array();
-        if ($is_selected) {
-            $lattrs['class'] = 'current';
+        if ($class !== null) {
+            $lattrs['class'] = $class;
+            if ($is_selected) {
+                $lattrs['class'] = trim('current ' . $lattrs['class']);
+            }
         }
 
         (is_null($id)) ? $lattrs : $lattrs['id'] = $id;