From: Evan Prodromou Date: Tue, 1 Mar 2011 11:29:24 +0000 (-0500) Subject: method to show submenus X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8cbc20a792ed8b04d7257186e571e926a5280ac;p=quix0rs-gnu-social.git method to show submenus --- diff --git a/lib/menu.php b/lib/menu.php index b9791d2359..7947b4d7e4 100644 --- a/lib/menu.php +++ b/lib/menu.php @@ -81,4 +81,12 @@ class Menu extends Widget { return sprintf('nav_%s', $actionName); } + + function submenu($label, $menu) + { + $this->action->elementStart('li'); + $this->action->text($label); + $menu->show(); + $this->action->elementEnd('li'); + } }