|
From: Jon O. <jon...@us...> - 2008-05-03 19:10:02
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29008/admin Modified Files: mx_module_defs.php Log Message: Added new feature to site navigation: parent id. Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/admin/mx_module_defs.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** mx_module_defs.php 14 Feb 2008 09:07:22 -0000 1.36 --- mx_module_defs.php 3 May 2008 19:09:57 -0000 1.37 *************** *** 707,710 **** --- 707,715 ---- $mx_page->init('1'); + $mx_block = new mx_block(); + $mx_block->init($block_id); + + $parent_page = is_numeric($mx_block->get_parameters('menu_page_parent')) ? $mx_block->get_parameters('menu_page_parent') : '0'; + // // Includes *************** *** 890,896 **** $cat_rows = array(); ! if (isset($mx_page->subpage_rowset[0])) { ! foreach ($mx_page->subpage_rowset[0] as $temp_page_id => $cat_row) { $cat_rows[] = $cat_row; --- 895,901 ---- $cat_rows = array(); ! if (isset($mx_page->subpage_rowset[$parent_page])) { ! foreach ($mx_page->subpage_rowset[$parent_page] as $temp_page_id => $cat_row) { $cat_rows[] = $cat_row; |