mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
issue 70 admin menu use menu module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8592 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6ded9684bc
commit
3fa20cd6b8
5 changed files with 34 additions and 129 deletions
|
|
@ -23,7 +23,7 @@
|
|||
$this->setLayoutPath($this->getTemplatePath());
|
||||
$this->setLayoutFile('layout.html');
|
||||
|
||||
$this->makeGnbUrl($this->module);
|
||||
$this->makeGnbUrl();
|
||||
|
||||
// Retrieve the list of installed modules
|
||||
|
||||
|
|
@ -46,18 +46,16 @@
|
|||
|
||||
}
|
||||
|
||||
function makeGnbUrl($module)
|
||||
function makeGnbUrl()
|
||||
{
|
||||
require_once(_XE_PATH_.'modules/admin/model/AdminCategory.php');
|
||||
$oAdminCategory = new AdminCategory($module);
|
||||
|
||||
global $lang;
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$menu_info = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||
debugPrint($menu_info);
|
||||
|
||||
Context::set('gnbUrlList', $oAdminCategory->getCategoryList());
|
||||
Context::set('gnbSubUrlList', $oAdminCategory->getSubCategoryList());
|
||||
Context::set('category', $oAdminCategory->getCategory());
|
||||
if(is_readable($menu_info->php_file))
|
||||
include $menu_info->php_file;
|
||||
|
||||
Context::set('gnbUrlList', $menu->list);
|
||||
}
|
||||
|
||||
function loadSideBar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue