mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
#476 메뉴 설명 기능 구현
메뉴 항목마다 설명 항목을 추가합니다. `{$val1['desc']}` 와 같이 레이아웃에서 불러올 수 있습니다.
fontawesome 등을 쉽게 추가할 수 있게 해줍니다.
This commit is contained in:
parent
dee87dcce8
commit
37cea6b1ce
8 changed files with 61 additions and 22 deletions
|
|
@ -47,6 +47,11 @@ class menu extends ModuleObject
|
|||
$temp_menus = executeQueryArray('menu.getMenuByTitle', $args);
|
||||
if($temp_menus->toBool() && count($temp_menus->data)) return true;
|
||||
|
||||
// 2015. 06. 15 add column desc
|
||||
if(!$oDB->isColumnExists('menu_item', 'desc'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
@ -68,6 +73,12 @@ class menu extends ModuleObject
|
|||
{
|
||||
$oDB->addIndex('menu', 'idx_title', array('title'));
|
||||
}
|
||||
|
||||
// 2015. 06. 15 add column desc
|
||||
if(!$oDB->isColumnExists('menu_item', 'desc'))
|
||||
{
|
||||
$oDB->addColumn('menu_item', 'desc','varchar',250,"",true);
|
||||
}
|
||||
|
||||
// 1.7(maserati) shortcut column add and mirgration
|
||||
if(!$oDB->isColumnExists('menu_item', 'is_shortcut'))
|
||||
|
|
@ -227,4 +238,4 @@ class menu extends ModuleObject
|
|||
}
|
||||
}
|
||||
/* End of file menu.class.php */
|
||||
/* Location: ./modules/menu/menu.class.php */
|
||||
/* Location: ./modules/menu/menu.class.php */
|
||||
Loading…
Add table
Add a link
Reference in a new issue