|
From: Jon O. <jon...@us...> - 2008-05-03 19:12:03
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30680/admin Modified Files: Tag: core28x 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.27.2.3 retrieving revision 1.27.2.4 diff -C2 -d -r1.27.2.3 -r1.27.2.4 *** mx_module_defs.php 23 Feb 2008 19:38:25 -0000 1.27.2.3 --- mx_module_defs.php 3 May 2008 19:11:57 -0000 1.27.2.4 *************** *** 696,699 **** --- 696,704 ---- $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 *************** *** 879,885 **** $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; --- 884,890 ---- $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; |