$options = array('flags' => SM2_TRIM, 'notrim' => 1);show_menu2( $aMenu = 0, $aStart = SM2_CURR+1, $aMaxLevel = SM2_ALL, $aFlags = SM2_ALLINFO|SM2_PRETTY, $aItemOpen = '<li class="[class] button[page_id]"><a href="[url]" target="[target]" [if(level==0){class="topitem"}][if(level==1){class="subitem[page_id]"}]>[menu_title]', $aItemClose = '</li>', $aMenuOpen = '</a></li><ul>', $aMenuClose = '</a></ul>', $aTopItemOpen = false, $aTopMenuOpen = false, $options );
<?php show_menu2(3, SM2_ROOT+1, SM2_START, SM2_ALL, '[li][a][menu_title]</a>[/li]', '', '', '', false, false); ?>
044 define('SM2_CURRTREE', 0x0400); // bit 10045 // Begin MOD by ISTeam, Werner von der Decken, 08.2009046 define('SM2_HIDEPAGES', 0x0800); // bit 11 (reactivate old behavior and dosn't show hidden pages)047 // END MOD ---048 define('_SM2_GROUP_1', 0x000F); // exactly one flag from group 1 is required...574 // mark our current page as being on the current path575 if ($page['page_id'] == $CURR_PAGE_ID) {576 $page['sm2_is_curr'] = true;577 $page['sm2_on_curr_path'] = true;578 // Begin MOD by ISTeam, Werner von der Decken, 08.2009579 if (($flags & SM2_HIDEPAGES) == 0){580 unset($page['sm2_hide']); // don't hide the current page581 }582 // END MOD ---583 }
define('SM2_SHOWHIDDEN', 0x0800); // bit 11 (set to show hidden pages) … … $page['sm2_is_curr'] = true; $page['sm2_on_curr_path'] = true; if (($flags & SM2_SHOWHIDDEN) != 0){ unset($page['sm2_hide']); // don't hide the current page }
If that is the case, than rather than adding a new option, the current change should be backed out.
<?phpshow_menu2(0, SM_ROOT, SMROOT+1, SM2_ALL | SM2_PRETTY, ....