Revision 1293
Added by Dietmar almost 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
19-Feb-2010 Dietmar Woellbrink (Luisehahne) |
15 |
! change show_menu2 to correct modul version 4.9 |
|
16 |
19-Feb-2010 Dietmar Woellbrink (Luisehahne) |
|
15 | 17 |
! insert $wb->preprocess($output), preprocess no longer needed in modules |
16 | 18 |
! little modifaction in upgrade-script.php in function check_wb_tables |
17 | 19 |
! updated module wysiwyg, set to module version 2.8 |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.x'); |
55 |
if(!defined('REVISION')) define('REVISION', '1292');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1293');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/modules/show_menu2/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
show_menu2: show_menu replacement for Website Baker |
|
7 |
Copyright (C) 2006-2009, Brodie Thiesfield |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or |
|
10 |
modify it under the terms of the GNU General Public License |
|
11 |
as published by the Free Software Foundation; either version 2 |
|
12 |
of the License, or (at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
22 |
02110-1301, USA. |
|
23 |
|
|
24 |
THANKS |
|
25 |
====== |
|
26 |
Thanks to the following people: |
|
27 |
|
|
28 |
Stuart Fraser |
|
29 |
* Original request for a better menu system |
|
30 |
|
|
31 |
Ezra Peisach |
|
32 |
* Bug fixes |
|
33 |
|
|
34 |
Thorn |
|
35 |
* Added support for WB 2.7 multiple groups and publish by date |
|
36 |
|
|
37 |
*/ |
|
38 |
|
|
39 |
$module_directory = 'show_menu2'; |
|
40 |
$module_name = 'show_menu2'; |
|
41 |
$module_function = 'snippet'; |
|
42 |
$module_version = '4.9'; |
|
43 |
$module_platform = '2.7 | 2.8.x'; |
|
44 |
$module_author = 'Brodie Thiesfield'; |
|
45 |
$module_license = 'GNU General Public License'; |
|
46 |
$module_description = 'A code snippet for the Website Baker CMS providing a complete replacement for the builtin menu functions. See <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> for details or view the <a href="' .WB_URL .'/modules/show_menu2/README.en.txt" target="_blank">readme</a> file.'; |
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package show_menu2 |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.7.0 | 2.8.x |
|
12 |
* @requirements PHP 4.4.9 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
$module_directory = 'show_menu2'; |
|
20 |
$module_name = 'show_menu2'; |
|
21 |
$module_function = 'snippet'; |
|
22 |
$module_version = '4.9'; |
|
23 |
$module_platform = '2.7 | 2.8.x'; |
|
24 |
$module_author = 'Brodie Thiesfield'; |
|
25 |
$module_license = 'GNU General Public License'; |
|
26 |
$module_description = 'A code snippet for the Website Baker CMS providing a complete replacement for the builtin menu functions. See <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> for details or view the <a href="' .WB_URL .'/modules/show_menu2/README.en.txt" target="_blank">readme</a> file.'; |
|
47 | 27 |
?> |
48 | 28 |
branches/2.8.x/wb/modules/show_menu2/include.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package show_menu2 |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.7.0 | 2.8.x |
|
12 |
* @requirements PHP 4.4.9 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
2 | 18 |
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
show_menu2: show_menu replacement for Website Baker |
|
7 |
Copyright (C) 2006-2009, Brodie Thiesfield |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or |
|
10 |
modify it under the terms of the GNU General Public License |
|
11 |
as published by the Free Software Foundation; either version 2 |
|
12 |
of the License, or (at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
22 |
02110-1301, USA. |
|
23 |
|
|
24 |
*********************************************** |
|
25 |
** Version 4.8: see README for documentation ** |
|
26 |
*********************************************** |
|
27 |
*/ |
|
28 |
|
|
29 | 19 |
define('SM2_ROOT', -1000); |
30 | 20 |
define('SM2_CURR', -2000); |
31 | 21 |
define('SM2_ALLMENU', -1); |
... | ... | |
43 | 33 |
define('SM2_NOESCAPE', 0); // NOOP, unnecessary with WB 2.6.7+ |
44 | 34 |
define('SM2_BUFFER', 0x0200); // bit 9 |
45 | 35 |
define('SM2_CURRTREE', 0x0400); // bit 10 |
36 |
define('SM2_SHOWHIDDEN', 0x0800); // bit 11 |
|
46 | 37 |
|
47 | 38 |
define('_SM2_GROUP_1', 0x000F); // exactly one flag from group 1 is required |
48 | 39 |
|
... | ... | |
588 | 579 |
if ($page['page_id'] == $CURR_PAGE_ID) { |
589 | 580 |
$page['sm2_is_curr'] = true; |
590 | 581 |
$page['sm2_on_curr_path'] = true; |
591 |
unset($page['sm2_hide']); // don't hide the current page |
|
582 |
if ($flags & SM2_SHOWHIDDEN) |
|
583 |
{ |
|
584 |
// show hidden pages if active and SHOWHIDDEN flag supplied |
|
585 |
unset($page['sm2_hide']); |
|
586 |
} |
|
592 | 587 |
} |
593 | 588 |
|
594 | 589 |
// mark parents of the current page as such |
595 | 590 |
if (in_array($page['page_id'], $rgCurrParents)) { |
596 | 591 |
$page['sm2_is_parent'] = true; |
597 | 592 |
$page['sm2_on_curr_path'] = true; |
598 |
unset($page['sm2_hide']); // don't hide a parent page |
|
593 |
if ($flags & SM2_SHOWHIDDEN) |
|
594 |
{ |
|
595 |
// show hidden pages if active and SHOWHIDDEN flag supplied |
|
596 |
unset($page['sm2_hide']); // don't hide a parent page |
|
597 |
} |
|
599 | 598 |
} |
600 | 599 |
|
601 | 600 |
// add the entry to the array |
602 | 601 |
branches/2.8.x/wb/modules/show_menu2/legacy.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package show_menu2 |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.7.0 | 2.8.x |
|
12 |
* @requirements PHP 4.4.9 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
2 | 18 |
|
3 |
// $Id$ |
|
4 |
|
|
5 | 19 |
/* |
6 |
show_menu2: show_menu replacement for Website Baker |
|
7 |
Copyright (C) 2006-2009, Brodie Thiesfield |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or |
|
10 |
modify it under the terms of the GNU General Public License |
|
11 |
as published by the Free Software Foundation; either version 2 |
|
12 |
of the License, or (at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
22 |
02110-1301, USA. |
|
23 |
*/ |
|
24 |
|
|
25 |
/* |
|
26 | 20 |
This file provides backward compatibility between show_menu2 and the |
27 | 21 |
old functions show_menu() and menu(). Note that it is highly recommended |
28 | 22 |
for you to update your templates to use show_menu2 directly. |
29 | 23 |
branches/2.8.x/wb/modules/show_menu2/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
show_menu2: show_menu replacement for Website Baker |
|
7 |
Copyright (C) 2006-2009, Brodie Thiesfield |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or |
|
10 |
modify it under the terms of the GNU General Public License |
|
11 |
as published by the Free Software Foundation; either version 2 |
|
12 |
of the License, or (at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
22 |
02110-1301, USA. |
|
23 |
*/ |
|
24 |
|
|
25 |
header('Location: ../index.php'); |
|
26 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package show_menu2 |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.7.0 | 2.8.x |
|
12 |
* @requirements PHP 4.4.9 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
header('Location: ../index.php'); |
|
20 |
|
|
27 | 21 |
?> |
28 | 22 |
Also available in: Unified diff
change show_menu2 to correct modul version 4.9