mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
issue 2933 add isShow column and check isShow and unset menu item
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12731 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1379f68c92
commit
c657a0f2c1
2 changed files with 27 additions and 1 deletions
|
|
@ -1448,6 +1448,29 @@ function checkCSRF()
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* menu exposure check by isShow column
|
||||
* @param array $menu
|
||||
* @return void
|
||||
*/
|
||||
function recurciveExposureCheck(&$menu)
|
||||
{
|
||||
if(is_array($menu))
|
||||
{
|
||||
foreach($menu AS $key=>$value)
|
||||
{
|
||||
if(!$value['isShow'])
|
||||
{
|
||||
unset($menu[$key]);
|
||||
}
|
||||
if(is_array($value['list']) && count($value['list']) > 0)
|
||||
{
|
||||
recurciveExposureCheck($menu[$key]['list']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Print raw html header
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue