Project

General

Profile

« Previous | Next » 

Revision 1109

Added by Matthias over 15 years ago

Added to show_menu2 the aOption 'SM2_HIDEPAGES'. If set all hidden pages are hidden again (Thanks to DarkViper)

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
6-Aug-2009 Matthias Gallas
15
+	Added to show_menu2 the aOption 'SM2_HIDEPAGES'. If set all hidden pages are
16
	hidden again (Thanks to DarkViper)
15 17
#	Fixed again some bugs in news modul (ticket #756) (Thanks to Aldus and Luisehahne)
16 18
#	Fixed bug that frontend.js, frontend.css and frontend_body.js are not used
17 19
	from snippets (ticket #764) (Thanks to Luisehahne)
trunk/wb/modules/show_menu2/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