forked from GNUsocial/gnu-social
method to show submenus
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user