mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1373 add classname to popup menu items
This commit is contained in:
parent
1e2317f313
commit
5571a16619
4 changed files with 14 additions and 6 deletions
|
|
@ -2467,7 +2467,7 @@ class memberController extends member
|
|||
/**
|
||||
* Nickname and click Log In to add a pop-up menu that appears when the method
|
||||
*/
|
||||
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self')
|
||||
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self', $class = '')
|
||||
{
|
||||
$member_popup_menu_list = Context::get('member_popup_menu_list');
|
||||
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array();
|
||||
|
|
@ -2475,7 +2475,8 @@ class memberController extends member
|
|||
$obj = new stdClass;
|
||||
$obj->url = $url;
|
||||
$obj->str = $str;
|
||||
$obj->icon = $icon;
|
||||
$obj->class = $class;
|
||||
$obj->icon = $icon ?: null;
|
||||
$obj->target = $target;
|
||||
$member_popup_menu_list[] = $obj;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue