Revision 1109
Added by Matthias over 16 years ago
| include.php | ||
|---|---|---|
| 43 | 43 |
define('SM2_NOESCAPE', 0); // NOOP, unnecessary with WB 2.6.7+
|
| 44 | 44 |
define('SM2_BUFFER', 0x0200); // bit 9
|
| 45 | 45 |
define('SM2_CURRTREE', 0x0400); // bit 10
|
| 46 |
define('SM2_HIDEPAGES', 0x0800); // bit 11 (reactivate old behavior and doesn't show hidden pages)
|
|
| 46 | 47 |
|
| 47 | 48 |
define('_SM2_GROUP_1', 0x000F); // exactly one flag from group 1 is required
|
| 48 | 49 |
|
| ... | ... | |
| 574 | 575 |
if ($page['page_id'] == $CURR_PAGE_ID) {
|
| 575 | 576 |
$page['sm2_is_curr'] = true; |
| 576 | 577 |
$page['sm2_on_curr_path'] = true; |
| 577 |
unset($page['sm2_hide']); // don't hide the current page |
|
| 578 |
if (($flags & SM2_HIDEPAGES) == 0){
|
|
| 579 |
unset($page['sm2_hide']); // don't hide the current page |
|
| 580 |
} |
|
| 578 | 581 |
} |
| 579 | 582 |
|
| 580 | 583 |
// mark parents of the current page as such |
Also available in: Unified diff
Added to show_menu2 the aOption 'SM2_HIDEPAGES'. If set all hidden pages are hidden again (Thanks to DarkViper)