mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 70 site map developement.
but yet not completed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8965 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5cd8e57f0e
commit
ae48547676
7 changed files with 256 additions and 41 deletions
|
|
@ -115,6 +115,27 @@
|
|||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
$menuItem = $this->getMenuItemInfo($menuItemSrl);
|
||||
|
||||
if(!$menuItem->url)
|
||||
{
|
||||
$menuItem->moduleType = null;
|
||||
}
|
||||
else if(!preg_match('/^http/i',$menuItem->url))
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItem->url);
|
||||
if($moduleInfo->mid == $menuItem->url) {
|
||||
$menuItem->moduleType = $moduleInfo->module;
|
||||
//$menuItem->module_id = $moduleInfo->mid;
|
||||
//$menuItem->browser_title = $moduleInfo->browser_title;
|
||||
//unset($menuItem->url);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$menuItem->moduleType = 'url';
|
||||
/*$menuItem->url = preg_replace('/^(http|https):\/\//i','',$menuItem->url);*/
|
||||
}
|
||||
|
||||
// get groups
|
||||
$oMemberModel = &getModel('member');
|
||||
$output = $oMemberModel->getGroups();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue