Revision 1360
Added by Luisehahne almost 15 years ago
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 11 | 11 |
! = Update/Change |
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.8.2 ------------------------------------- |
| 14 |
28 Dec-2010 Build 1358 Dietmar Woellbrink (Luisehahne) |
|
| 14 |
28 Dec-2010 Build 1360 Dietmar Woellbrink (Luisehahne) |
|
| 15 |
! show_menu2 display Title-attribute fixed |
|
| 16 |
! tooltip added, change modul version to 4.9.5 |
|
| 17 |
28 Dec-2010 Build 1359 Dietmar Woellbrink (Luisehahne) |
|
| 15 | 18 |
! upgrade FCKeditor to Version 2.6.6 |
| 16 | 19 |
28 Dec-2010 Build 1358 Dietmar Woellbrink (Luisehahne) |
| 17 | 20 |
! validation fixes in pages backend theme |
| 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.2.RC2');
|
| 55 |
if(!defined('REVISION')) define('REVISION', '1359');
|
|
| 55 |
if(!defined('REVISION')) define('REVISION', '1360');
|
|
| 56 | 56 |
|
| 57 | 57 |
?> |
| branches/2.8.x/wb/modules/show_menu2/uninstall.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
/** |
|
| 3 |
* |
|
| 4 |
* @category modules |
|
| 5 |
* @package show_menu2 |
|
| 6 |
* @author Independend-Software-Team |
|
| 7 |
* @author WebsiteBaker Project |
|
| 8 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 9 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 10 |
* @link http://www.websitebaker2.org/ |
|
| 11 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 12 |
* @platform WebsiteBaker 2.8.x |
|
| 13 |
* @requirements PHP 4.4.9 and higher |
|
| 14 |
* @version $Id$ |
|
| 15 |
* @filesource $HeadURL$ |
|
| 16 |
* @lastmodified $Date$ |
|
| 17 |
* |
|
| 18 |
*/ |
|
| 19 |
|
|
| 20 |
// Must include code to stop this file being access directly |
|
| 21 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
|
|
| 22 |
|
|
| 23 |
?> |
|
| 0 | 24 | |
| branches/2.8.x/wb/modules/show_menu2/LICENCE.txt | ||
|---|---|---|
| 1 |
GNU GENERAL PUBLIC LICENSE |
|
| 2 |
Version 2, June 1991 |
|
| 3 |
|
|
| 4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
|
| 5 |
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
| 6 |
Everyone is permitted to copy and distribute verbatim copies |
|
| 7 |
of this license document, but changing it is not allowed. |
|
| 8 |
|
|
| 9 |
Preamble |
|
| 10 |
|
|
| 11 |
The licenses for most software are designed to take away your |
|
| 12 |
freedom to share and change it. By contrast, the GNU General Public |
|
| 13 |
License is intended to guarantee your freedom to share and change free |
|
| 14 |
software--to make sure the software is free for all its users. This |
|
| 15 |
General Public License applies to most of the Free Software |
|
| 16 |
Foundation's software and to any other program whose authors commit to |
|
| 17 |
using it. (Some other Free Software Foundation software is covered by |
|
| 18 |
the GNU Library General Public License instead.) You can apply it to |
|
| 19 |
your programs, too. |
|
| 20 |
|
|
| 21 |
When we speak of free software, we are referring to freedom, not |
|
| 22 |
price. Our General Public Licenses are designed to make sure that you |
|
| 23 |
have the freedom to distribute copies of free software (and charge for |
|
| 24 |
this service if you wish), that you receive source code or can get it |
|
| 25 |
if you want it, that you can change the software or use pieces of it |
|
| 26 |
in new free programs; and that you know you can do these things. |
|
| 27 |
|
|
| 28 |
To protect your rights, we need to make restrictions that forbid |
|
| 29 |
anyone to deny you these rights or to ask you to surrender the rights. |
|
| 30 |
These restrictions translate to certain responsibilities for you if you |
|
| 31 |
distribute copies of the software, or if you modify it. |
|
| 32 |
|
|
| 33 |
For example, if you distribute copies of such a program, whether |
|
| 34 |
gratis or for a fee, you must give the recipients all the rights that |
|
| 35 |
you have. You must make sure that they, too, receive or can get the |
|
| 36 |
source code. And you must show them these terms so they know their |
|
| 37 |
rights. |
|
| 38 |
|
|
| 39 |
We protect your rights with two steps: (1) copyright the software, and |
|
| 40 |
(2) offer you this license which gives you legal permission to copy, |
|
| 41 |
distribute and/or modify the software. |
|
| 42 |
|
|
| 43 |
Also, for each author's protection and ours, we want to make certain |
|
| 44 |
that everyone understands that there is no warranty for this free |
|
| 45 |
software. If the software is modified by someone else and passed on, we |
|
| 46 |
want its recipients to know that what they have is not the original, so |
|
| 47 |
that any problems introduced by others will not reflect on the original |
|
| 48 |
authors' reputations. |
|
| 49 |
|
|
| 50 |
Finally, any free program is threatened constantly by software |
|
| 51 |
patents. We wish to avoid the danger that redistributors of a free |
|
| 52 |
program will individually obtain patent licenses, in effect making the |
|
| 53 |
program proprietary. To prevent this, we have made it clear that any |
|
| 54 |
patent must be licensed for everyone's free use or not licensed at all. |
|
| 55 |
|
|
| 56 |
The precise terms and conditions for copying, distribution and |
|
| 57 |
modification follow. |
|
| 58 |
|
|
| 59 |
GNU GENERAL PUBLIC LICENSE |
|
| 60 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
| 61 |
|
|
| 62 |
0. This License applies to any program or other work which contains |
|
| 63 |
a notice placed by the copyright holder saying it may be distributed |
|
| 64 |
under the terms of this General Public License. The "Program", below, |
|
| 65 |
refers to any such program or work, and a "work based on the Program" |
|
| 66 |
means either the Program or any derivative work under copyright law: |
|
| 67 |
that is to say, a work containing the Program or a portion of it, |
|
| 68 |
either verbatim or with modifications and/or translated into another |
|
| 69 |
language. (Hereinafter, translation is included without limitation in |
|
| 70 |
the term "modification".) Each licensee is addressed as "you". |
|
| 71 |
|
|
| 72 |
Activities other than copying, distribution and modification are not |
|
| 73 |
covered by this License; they are outside its scope. The act of |
|
| 74 |
running the Program is not restricted, and the output from the Program |
|
| 75 |
is covered only if its contents constitute a work based on the |
|
| 76 |
Program (independent of having been made by running the Program). |
|
| 77 |
Whether that is true depends on what the Program does. |
|
| 78 |
|
|
| 79 |
1. You may copy and distribute verbatim copies of the Program's |
|
| 80 |
source code as you receive it, in any medium, provided that you |
|
| 81 |
conspicuously and appropriately publish on each copy an appropriate |
|
| 82 |
copyright notice and disclaimer of warranty; keep intact all the |
|
| 83 |
notices that refer to this License and to the absence of any warranty; |
|
| 84 |
and give any other recipients of the Program a copy of this License |
|
| 85 |
along with the Program. |
|
| 86 |
|
|
| 87 |
You may charge a fee for the physical act of transferring a copy, and |
|
| 88 |
you may at your option offer warranty protection in exchange for a fee. |
|
| 89 |
|
|
| 90 |
2. You may modify your copy or copies of the Program or any portion |
|
| 91 |
of it, thus forming a work based on the Program, and copy and |
|
| 92 |
distribute such modifications or work under the terms of Section 1 |
|
| 93 |
above, provided that you also meet all of these conditions: |
|
| 94 |
|
|
| 95 |
a) You must cause the modified files to carry prominent notices |
|
| 96 |
stating that you changed the files and the date of any change. |
|
| 97 |
|
|
| 98 |
b) You must cause any work that you distribute or publish, that in |
|
| 99 |
whole or in part contains or is derived from the Program or any |
|
| 100 |
part thereof, to be licensed as a whole at no charge to all third |
|
| 101 |
parties under the terms of this License. |
|
| 102 |
|
|
| 103 |
c) If the modified program normally reads commands interactively |
|
| 104 |
when run, you must cause it, when started running for such |
|
| 105 |
interactive use in the most ordinary way, to print or display an |
|
| 106 |
announcement including an appropriate copyright notice and a |
|
| 107 |
notice that there is no warranty (or else, saying that you provide |
|
| 108 |
a warranty) and that users may redistribute the program under |
|
| 109 |
these conditions, and telling the user how to view a copy of this |
|
| 110 |
License. (Exception: if the Program itself is interactive but |
|
| 111 |
does not normally print such an announcement, your work based on |
|
| 112 |
the Program is not required to print an announcement.) |
|
| 113 |
|
|
| 114 |
These requirements apply to the modified work as a whole. If |
|
| 115 |
identifiable sections of that work are not derived from the Program, |
|
| 116 |
and can be reasonably considered independent and separate works in |
|
| 117 |
themselves, then this License, and its terms, do not apply to those |
|
| 118 |
sections when you distribute them as separate works. But when you |
|
| 119 |
distribute the same sections as part of a whole which is a work based |
|
| 120 |
on the Program, the distribution of the whole must be on the terms of |
|
| 121 |
this License, whose permissions for other licensees extend to the |
|
| 122 |
entire whole, and thus to each and every part regardless of who wrote it. |
|
| 123 |
|
|
| 124 |
Thus, it is not the intent of this section to claim rights or contest |
|
| 125 |
your rights to work written entirely by you; rather, the intent is to |
|
| 126 |
exercise the right to control the distribution of derivative or |
|
| 127 |
collective works based on the Program. |
|
| 128 |
|
|
| 129 |
In addition, mere aggregation of another work not based on the Program |
|
| 130 |
with the Program (or with a work based on the Program) on a volume of |
|
| 131 |
a storage or distribution medium does not bring the other work under |
|
| 132 |
the scope of this License. |
|
| 133 |
|
|
| 134 |
3. You may copy and distribute the Program (or a work based on it, |
|
| 135 |
under Section 2) in object code or executable form under the terms of |
|
| 136 |
Sections 1 and 2 above provided that you also do one of the following: |
|
| 137 |
|
|
| 138 |
a) Accompany it with the complete corresponding machine-readable |
|
| 139 |
source code, which must be distributed under the terms of Sections |
|
| 140 |
1 and 2 above on a medium customarily used for software interchange; or, |
|
| 141 |
|
|
| 142 |
b) Accompany it with a written offer, valid for at least three |
|
| 143 |
years, to give any third party, for a charge no more than your |
|
| 144 |
cost of physically performing source distribution, a complete |
|
| 145 |
machine-readable copy of the corresponding source code, to be |
|
| 146 |
distributed under the terms of Sections 1 and 2 above on a medium |
|
| 147 |
customarily used for software interchange; or, |
|
| 148 |
|
|
| 149 |
c) Accompany it with the information you received as to the offer |
|
| 150 |
to distribute corresponding source code. (This alternative is |
|
| 151 |
allowed only for noncommercial distribution and only if you |
|
| 152 |
received the program in object code or executable form with such |
|
| 153 |
an offer, in accord with Subsection b above.) |
|
| 154 |
|
|
| 155 |
The source code for a work means the preferred form of the work for |
|
| 156 |
making modifications to it. For an executable work, complete source |
|
| 157 |
code means all the source code for all modules it contains, plus any |
|
| 158 |
associated interface definition files, plus the scripts used to |
|
| 159 |
control compilation and installation of the executable. However, as a |
|
| 160 |
special exception, the source code distributed need not include |
|
| 161 |
anything that is normally distributed (in either source or binary |
|
| 162 |
form) with the major components (compiler, kernel, and so on) of the |
|
| 163 |
operating system on which the executable runs, unless that component |
|
| 164 |
itself accompanies the executable. |
|
| 165 |
|
|
| 166 |
If distribution of executable or object code is made by offering |
|
| 167 |
access to copy from a designated place, then offering equivalent |
|
| 168 |
access to copy the source code from the same place counts as |
|
| 169 |
distribution of the source code, even though third parties are not |
|
| 170 |
compelled to copy the source along with the object code. |
|
| 171 |
|
|
| 172 |
4. You may not copy, modify, sublicense, or distribute the Program |
|
| 173 |
except as expressly provided under this License. Any attempt |
|
| 174 |
otherwise to copy, modify, sublicense or distribute the Program is |
|
| 175 |
void, and will automatically terminate your rights under this License. |
|
| 176 |
However, parties who have received copies, or rights, from you under |
|
| 177 |
this License will not have their licenses terminated so long as such |
|
| 178 |
parties remain in full compliance. |
|
| 179 |
|
|
| 180 |
5. You are not required to accept this License, since you have not |
|
| 181 |
signed it. However, nothing else grants you permission to modify or |
|
| 182 |
distribute the Program or its derivative works. These actions are |
|
| 183 |
prohibited by law if you do not accept this License. Therefore, by |
|
| 184 |
modifying or distributing the Program (or any work based on the |
|
| 185 |
Program), you indicate your acceptance of this License to do so, and |
|
| 186 |
all its terms and conditions for copying, distributing or modifying |
|
| 187 |
the Program or works based on it. |
|
| 188 |
|
|
| 189 |
6. Each time you redistribute the Program (or any work based on the |
|
| 190 |
Program), the recipient automatically receives a license from the |
|
| 191 |
original licensor to copy, distribute or modify the Program subject to |
|
| 192 |
these terms and conditions. You may not impose any further |
|
| 193 |
restrictions on the recipients' exercise of the rights granted herein. |
|
| 194 |
You are not responsible for enforcing compliance by third parties to |
|
| 195 |
this License. |
|
| 196 |
|
|
| 197 |
7. If, as a consequence of a court judgment or allegation of patent |
|
| 198 |
infringement or for any other reason (not limited to patent issues), |
|
| 199 |
conditions are imposed on you (whether by court order, agreement or |
|
| 200 |
otherwise) that contradict the conditions of this License, they do not |
|
| 201 |
excuse you from the conditions of this License. If you cannot |
|
| 202 |
distribute so as to satisfy simultaneously your obligations under this |
|
| 203 |
License and any other pertinent obligations, then as a consequence you |
|
| 204 |
may not distribute the Program at all. For example, if a patent |
|
| 205 |
license would not permit royalty-free redistribution of the Program by |
|
| 206 |
all those who receive copies directly or indirectly through you, then |
|
| 207 |
the only way you could satisfy both it and this License would be to |
|
| 208 |
refrain entirely from distribution of the Program. |
|
| 209 |
|
|
| 210 |
If any portion of this section is held invalid or unenforceable under |
|
| 211 |
any particular circumstance, the balance of the section is intended to |
|
| 212 |
apply and the section as a whole is intended to apply in other |
|
| 213 |
circumstances. |
|
| 214 |
|
|
| 215 |
It is not the purpose of this section to induce you to infringe any |
|
| 216 |
patents or other property right claims or to contest validity of any |
|
| 217 |
such claims; this section has the sole purpose of protecting the |
|
| 218 |
integrity of the free software distribution system, which is |
|
| 219 |
implemented by public license practices. Many people have made |
|
| 220 |
generous contributions to the wide range of software distributed |
|
| 221 |
through that system in reliance on consistent application of that |
|
| 222 |
system; it is up to the author/donor to decide if he or she is willing |
|
| 223 |
to distribute software through any other system and a licensee cannot |
|
| 224 |
impose that choice. |
|
| 225 |
|
|
| 226 |
This section is intended to make thoroughly clear what is believed to |
|
| 227 |
be a consequence of the rest of this License. |
|
| 228 |
|
|
| 229 |
8. If the distribution and/or use of the Program is restricted in |
|
| 230 |
certain countries either by patents or by copyrighted interfaces, the |
|
| 231 |
original copyright holder who places the Program under this License |
|
| 232 |
may add an explicit geographical distribution limitation excluding |
|
| 233 |
those countries, so that distribution is permitted only in or among |
|
| 234 |
countries not thus excluded. In such case, this License incorporates |
|
| 235 |
the limitation as if written in the body of this License. |
|
| 236 |
|
|
| 237 |
9. The Free Software Foundation may publish revised and/or new versions |
|
| 238 |
of the General Public License from time to time. Such new versions will |
|
| 239 |
be similar in spirit to the present version, but may differ in detail to |
|
| 240 |
address new problems or concerns. |
|
| 241 |
|
|
| 242 |
Each version is given a distinguishing version number. If the Program |
|
| 243 |
specifies a version number of this License which applies to it and "any |
|
| 244 |
later version", you have the option of following the terms and conditions |
|
| 245 |
either of that version or of any later version published by the Free |
|
| 246 |
Software Foundation. If the Program does not specify a version number of |
|
| 247 |
this License, you may choose any version ever published by the Free Software |
|
| 248 |
Foundation. |
|
| 249 |
|
|
| 250 |
10. If you wish to incorporate parts of the Program into other free |
|
| 251 |
programs whose distribution conditions are different, write to the author |
|
| 252 |
to ask for permission. For software which is copyrighted by the Free |
|
| 253 |
Software Foundation, write to the Free Software Foundation; we sometimes |
|
| 254 |
make exceptions for this. Our decision will be guided by the two goals |
|
| 255 |
of preserving the free status of all derivatives of our free software and |
|
| 256 |
of promoting the sharing and reuse of software generally. |
|
| 257 |
|
|
| 258 |
NO WARRANTY |
|
| 259 |
|
|
| 260 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
| 261 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
| 262 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
| 263 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
| 264 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
| 265 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
| 266 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
| 267 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
| 268 |
REPAIR OR CORRECTION. |
|
| 269 |
|
|
| 270 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
| 271 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
| 272 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
| 273 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
| 274 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
| 275 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
| 276 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
| 277 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
| 278 |
POSSIBILITY OF SUCH DAMAGES. |
|
| 1 |
GNU GENERAL PUBLIC LICENSE |
|
| 2 |
Version 2, June 1991 |
|
| 3 |
|
|
| 4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
|
| 5 |
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
| 6 |
Everyone is permitted to copy and distribute verbatim copies |
|
| 7 |
of this license document, but changing it is not allowed. |
|
| 8 |
|
|
| 9 |
Preamble |
|
| 10 |
|
|
| 11 |
The licenses for most software are designed to take away your |
|
| 12 |
freedom to share and change it. By contrast, the GNU General Public |
|
| 13 |
License is intended to guarantee your freedom to share and change free |
|
| 14 |
software--to make sure the software is free for all its users. This |
|
| 15 |
General Public License applies to most of the Free Software |
|
| 16 |
Foundation's software and to any other program whose authors commit to |
|
| 17 |
using it. (Some other Free Software Foundation software is covered by |
|
| 18 |
the GNU Library General Public License instead.) You can apply it to |
|
| 19 |
your programs, too. |
|
| 20 |
|
|
| 21 |
When we speak of free software, we are referring to freedom, not |
|
| 22 |
price. Our General Public Licenses are designed to make sure that you |
|
| 23 |
have the freedom to distribute copies of free software (and charge for |
|
| 24 |
this service if you wish), that you receive source code or can get it |
|
| 25 |
if you want it, that you can change the software or use pieces of it |
|
| 26 |
in new free programs; and that you know you can do these things. |
|
| 27 |
|
|
| 28 |
To protect your rights, we need to make restrictions that forbid |
|
| 29 |
anyone to deny you these rights or to ask you to surrender the rights. |
|
| 30 |
These restrictions translate to certain responsibilities for you if you |
|
| 31 |
distribute copies of the software, or if you modify it. |
|
| 32 |
|
|
| 33 |
For example, if you distribute copies of such a program, whether |
|
| 34 |
gratis or for a fee, you must give the recipients all the rights that |
|
| 35 |
you have. You must make sure that they, too, receive or can get the |
|
| 36 |
source code. And you must show them these terms so they know their |
|
| 37 |
rights. |
|
| 38 |
|
|
| 39 |
We protect your rights with two steps: (1) copyright the software, and |
|
| 40 |
(2) offer you this license which gives you legal permission to copy, |
|
| 41 |
distribute and/or modify the software. |
|
| 42 |
|
|
| 43 |
Also, for each author's protection and ours, we want to make certain |
|
| 44 |
that everyone understands that there is no warranty for this free |
|
| 45 |
software. If the software is modified by someone else and passed on, we |
|
| 46 |
want its recipients to know that what they have is not the original, so |
|
| 47 |
that any problems introduced by others will not reflect on the original |
|
| 48 |
authors' reputations. |
|
| 49 |
|
|
| 50 |
Finally, any free program is threatened constantly by software |
|
| 51 |
patents. We wish to avoid the danger that redistributors of a free |
|
| 52 |
program will individually obtain patent licenses, in effect making the |
|
| 53 |
program proprietary. To prevent this, we have made it clear that any |
|
| 54 |
patent must be licensed for everyone's free use or not licensed at all. |
|
| 55 |
|
|
| 56 |
The precise terms and conditions for copying, distribution and |
|
| 57 |
modification follow. |
|
| 58 |
|
|
| 59 |
GNU GENERAL PUBLIC LICENSE |
|
| 60 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
| 61 |
|
|
| 62 |
0. This License applies to any program or other work which contains |
|
| 63 |
a notice placed by the copyright holder saying it may be distributed |
|
| 64 |
under the terms of this General Public License. The "Program", below, |
|
| 65 |
refers to any such program or work, and a "work based on the Program" |
|
| 66 |
means either the Program or any derivative work under copyright law: |
|
| 67 |
that is to say, a work containing the Program or a portion of it, |
|
| 68 |
either verbatim or with modifications and/or translated into another |
|
| 69 |
language. (Hereinafter, translation is included without limitation in |
|
| 70 |
the term "modification".) Each licensee is addressed as "you". |
|
| 71 |
|
|
| 72 |
Activities other than copying, distribution and modification are not |
|
| 73 |
covered by this License; they are outside its scope. The act of |
|
| 74 |
running the Program is not restricted, and the output from the Program |
|
| 75 |
is covered only if its contents constitute a work based on the |
|
| 76 |
Program (independent of having been made by running the Program). |
|
| 77 |
Whether that is true depends on what the Program does. |
|
| 78 |
|
|
| 79 |
1. You may copy and distribute verbatim copies of the Program's |
|
| 80 |
source code as you receive it, in any medium, provided that you |
|
| 81 |
conspicuously and appropriately publish on each copy an appropriate |
|
| 82 |
copyright notice and disclaimer of warranty; keep intact all the |
|
| 83 |
notices that refer to this License and to the absence of any warranty; |
|
| 84 |
and give any other recipients of the Program a copy of this License |
|
| 85 |
along with the Program. |
|
| 86 |
|
|
| 87 |
You may charge a fee for the physical act of transferring a copy, and |
|
| 88 |
you may at your option offer warranty protection in exchange for a fee. |
|
| 89 |
|
|
| 90 |
2. You may modify your copy or copies of the Program or any portion |
|
| 91 |
of it, thus forming a work based on the Program, and copy and |
|
| 92 |
distribute such modifications or work under the terms of Section 1 |
|
| 93 |
above, provided that you also meet all of these conditions: |
|
| 94 |
|
|
| 95 |
a) You must cause the modified files to carry prominent notices |
|
| 96 |
stating that you changed the files and the date of any change. |
|
| 97 |
|
|
| 98 |
b) You must cause any work that you distribute or publish, that in |
|
| 99 |
whole or in part contains or is derived from the Program or any |
|
| 100 |
part thereof, to be licensed as a whole at no charge to all third |
|
| 101 |
parties under the terms of this License. |
|
| 102 |
|
|
| 103 |
c) If the modified program normally reads commands interactively |
|
| 104 |
when run, you must cause it, when started running for such |
|
| 105 |
interactive use in the most ordinary way, to print or display an |
|
| 106 |
announcement including an appropriate copyright notice and a |
|
| 107 |
notice that there is no warranty (or else, saying that you provide |
|
| 108 |
a warranty) and that users may redistribute the program under |
|
| 109 |
these conditions, and telling the user how to view a copy of this |
|
| 110 |
License. (Exception: if the Program itself is interactive but |
|
| 111 |
does not normally print such an announcement, your work based on |
|
| 112 |
the Program is not required to print an announcement.) |
|
| 113 |
|
|
| 114 |
These requirements apply to the modified work as a whole. If |
|
| 115 |
identifiable sections of that work are not derived from the Program, |
|
| 116 |
and can be reasonably considered independent and separate works in |
|
| 117 |
themselves, then this License, and its terms, do not apply to those |
|
| 118 |
sections when you distribute them as separate works. But when you |
|
| 119 |
distribute the same sections as part of a whole which is a work based |
|
| 120 |
on the Program, the distribution of the whole must be on the terms of |
|
| 121 |
this License, whose permissions for other licensees extend to the |
|
| 122 |
entire whole, and thus to each and every part regardless of who wrote it. |
|
| 123 |
|
|
| 124 |
Thus, it is not the intent of this section to claim rights or contest |
|
| 125 |
your rights to work written entirely by you; rather, the intent is to |
|
| 126 |
exercise the right to control the distribution of derivative or |
|
| 127 |
collective works based on the Program. |
|
| 128 |
|
|
| 129 |
In addition, mere aggregation of another work not based on the Program |
|
| 130 |
with the Program (or with a work based on the Program) on a volume of |
|
| 131 |
a storage or distribution medium does not bring the other work under |
|
| 132 |
the scope of this License. |
|
| 133 |
|
|
| 134 |
3. You may copy and distribute the Program (or a work based on it, |
|
| 135 |
under Section 2) in object code or executable form under the terms of |
|
| 136 |
Sections 1 and 2 above provided that you also do one of the following: |
|
| 137 |
|
|
| 138 |
a) Accompany it with the complete corresponding machine-readable |
|
| 139 |
source code, which must be distributed under the terms of Sections |
|
| 140 |
1 and 2 above on a medium customarily used for software interchange; or, |
|
| 141 |
|
|
| 142 |
b) Accompany it with a written offer, valid for at least three |
|
| 143 |
years, to give any third party, for a charge no more than your |
|
| 144 |
cost of physically performing source distribution, a complete |
|
| 145 |
machine-readable copy of the corresponding source code, to be |
|
| 146 |
distributed under the terms of Sections 1 and 2 above on a medium |
|
| 147 |
customarily used for software interchange; or, |
|
| 148 |
|
|
| 149 |
c) Accompany it with the information you received as to the offer |
|
| 150 |
to distribute corresponding source code. (This alternative is |
|
| 151 |
allowed only for noncommercial distribution and only if you |
|
| 152 |
received the program in object code or executable form with such |
|
| 153 |
an offer, in accord with Subsection b above.) |
|
| 154 |
|
|
| 155 |
The source code for a work means the preferred form of the work for |
|
| 156 |
making modifications to it. For an executable work, complete source |
|
| 157 |
code means all the source code for all modules it contains, plus any |
|
| 158 |
associated interface definition files, plus the scripts used to |
|
| 159 |
control compilation and installation of the executable. However, as a |
|
| 160 |
special exception, the source code distributed need not include |
|
| 161 |
anything that is normally distributed (in either source or binary |
|
| 162 |
form) with the major components (compiler, kernel, and so on) of the |
|
| 163 |
operating system on which the executable runs, unless that component |
|
| 164 |
itself accompanies the executable. |
|
| 165 |
|
|
| 166 |
If distribution of executable or object code is made by offering |
|
| 167 |
access to copy from a designated place, then offering equivalent |
|
| 168 |
access to copy the source code from the same place counts as |
|
| 169 |
distribution of the source code, even though third parties are not |
|
| 170 |
compelled to copy the source along with the object code. |
|
| 171 |
|
|
| 172 |
4. You may not copy, modify, sublicense, or distribute the Program |
|
| 173 |
except as expressly provided under this License. Any attempt |
|
| 174 |
otherwise to copy, modify, sublicense or distribute the Program is |
|
| 175 |
void, and will automatically terminate your rights under this License. |
|
| 176 |
However, parties who have received copies, or rights, from you under |
|
| 177 |
this License will not have their licenses terminated so long as such |
|
| 178 |
parties remain in full compliance. |
|
| 179 |
|
|
| 180 |
5. You are not required to accept this License, since you have not |
|
| 181 |
signed it. However, nothing else grants you permission to modify or |
|
| 182 |
distribute the Program or its derivative works. These actions are |
|
| 183 |
prohibited by law if you do not accept this License. Therefore, by |
|
| 184 |
modifying or distributing the Program (or any work based on the |
|
| 185 |
Program), you indicate your acceptance of this License to do so, and |
|
| 186 |
all its terms and conditions for copying, distributing or modifying |
|
| 187 |
the Program or works based on it. |
|
| 188 |
|
|
| 189 |
6. Each time you redistribute the Program (or any work based on the |
|
| 190 |
Program), the recipient automatically receives a license from the |
|
| 191 |
original licensor to copy, distribute or modify the Program subject to |
|
| 192 |
these terms and conditions. You may not impose any further |
|
| 193 |
restrictions on the recipients' exercise of the rights granted herein. |
|
| 194 |
You are not responsible for enforcing compliance by third parties to |
|
| 195 |
this License. |
|
| 196 |
|
|
| 197 |
7. If, as a consequence of a court judgment or allegation of patent |
|
| 198 |
infringement or for any other reason (not limited to patent issues), |
|
| 199 |
conditions are imposed on you (whether by court order, agreement or |
|
| 200 |
otherwise) that contradict the conditions of this License, they do not |
|
| 201 |
excuse you from the conditions of this License. If you cannot |
|
| 202 |
distribute so as to satisfy simultaneously your obligations under this |
|
| 203 |
License and any other pertinent obligations, then as a consequence you |
|
| 204 |
may not distribute the Program at all. For example, if a patent |
|
| 205 |
license would not permit royalty-free redistribution of the Program by |
|
| 206 |
all those who receive copies directly or indirectly through you, then |
|
| 207 |
the only way you could satisfy both it and this License would be to |
|
| 208 |
refrain entirely from distribution of the Program. |
|
| 209 |
|
|
| 210 |
If any portion of this section is held invalid or unenforceable under |
|
| 211 |
any particular circumstance, the balance of the section is intended to |
|
| 212 |
apply and the section as a whole is intended to apply in other |
|
| 213 |
circumstances. |
|
| 214 |
|
|
| 215 |
It is not the purpose of this section to induce you to infringe any |
|
| 216 |
patents or other property right claims or to contest validity of any |
|
| 217 |
such claims; this section has the sole purpose of protecting the |
|
| 218 |
integrity of the free software distribution system, which is |
|
| 219 |
implemented by public license practices. Many people have made |
|
| 220 |
generous contributions to the wide range of software distributed |
|
| 221 |
through that system in reliance on consistent application of that |
|
| 222 |
system; it is up to the author/donor to decide if he or she is willing |
|
| 223 |
to distribute software through any other system and a licensee cannot |
|
| 224 |
impose that choice. |
|
| 225 |
|
|
| 226 |
This section is intended to make thoroughly clear what is believed to |
|
| 227 |
be a consequence of the rest of this License. |
|
| 228 |
|
|
| 229 |
8. If the distribution and/or use of the Program is restricted in |
|
| 230 |
certain countries either by patents or by copyrighted interfaces, the |
|
| 231 |
original copyright holder who places the Program under this License |
|
| 232 |
may add an explicit geographical distribution limitation excluding |
|
| 233 |
those countries, so that distribution is permitted only in or among |
|
| 234 |
countries not thus excluded. In such case, this License incorporates |
|
| 235 |
the limitation as if written in the body of this License. |
|
| 236 |
|
|
| 237 |
9. The Free Software Foundation may publish revised and/or new versions |
|
| 238 |
of the General Public License from time to time. Such new versions will |
|
| 239 |
be similar in spirit to the present version, but may differ in detail to |
|
| 240 |
address new problems or concerns. |
|
| 241 |
|
|
| 242 |
Each version is given a distinguishing version number. If the Program |
|
| 243 |
specifies a version number of this License which applies to it and "any |
|
| 244 |
later version", you have the option of following the terms and conditions |
|
| 245 |
either of that version or of any later version published by the Free |
|
| 246 |
Software Foundation. If the Program does not specify a version number of |
|
| 247 |
this License, you may choose any version ever published by the Free Software |
|
| 248 |
Foundation. |
|
| 249 |
|
|
| 250 |
10. If you wish to incorporate parts of the Program into other free |
|
| 251 |
programs whose distribution conditions are different, write to the author |
|
| 252 |
to ask for permission. For software which is copyrighted by the Free |
|
| 253 |
Software Foundation, write to the Free Software Foundation; we sometimes |
|
| 254 |
make exceptions for this. Our decision will be guided by the two goals |
|
| 255 |
of preserving the free status of all derivatives of our free software and |
|
| 256 |
of promoting the sharing and reuse of software generally. |
|
| 257 |
|
|
| 258 |
NO WARRANTY |
|
| 259 |
|
|
| 260 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
| 261 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
| 262 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
| 263 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
| 264 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
| 265 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
| 266 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
| 267 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
| 268 |
REPAIR OR CORRECTION. |
|
| 269 |
|
|
| 270 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
| 271 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
| 272 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
| 273 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
| 274 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
| 275 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
| 276 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
| 277 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
| 278 |
POSSIBILITY OF SUCH DAMAGES. |
|
| branches/2.8.x/wb/modules/show_menu2/info.php | ||
|---|---|---|
| 5 | 5 |
* @package show_menu2 |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 | 7 |
* @copyright 2004-2009, Ryan Djurovich |
| 8 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 8 |
* @copyright 2009-2010, Website Baker Org. e.V.
|
|
| 9 | 9 |
* @link http://www.websitebaker2.org/ |
| 10 | 10 |
* @license http://www.gnu.org/licenses/gpl.html |
| 11 |
* @platform WebsiteBaker 2.8.x
|
|
| 12 |
* @requirements PHP 5.2.2 and higher
|
|
| 11 |
* @platform WebsiteBaker 2.7.0
|
|
| 12 |
* @requirements PHP 4.4.9 and higher
|
|
| 13 | 13 |
* @version $Id$ |
| 14 | 14 |
* @filesource $HeadURL$ |
| 15 | 15 |
* @lastmodified $Date$ |
| ... | ... | |
| 19 | 19 |
$module_directory = 'show_menu2'; |
| 20 | 20 |
$module_name = 'show_menu2'; |
| 21 | 21 |
$module_function = 'snippet'; |
| 22 |
$module_version = '4.9.3';
|
|
| 22 |
$module_version = '4.9.5';
|
|
| 23 | 23 |
$module_platform = '2.7 | 2.8.2'; |
| 24 | 24 |
$module_author = 'Brodie Thiesfield'; |
| 25 | 25 |
$module_license = 'GNU General Public License'; |
| branches/2.8.x/wb/modules/show_menu2/README.de.txt | ||
|---|---|---|
| 412 | 412 |
selbst für die XHTML-Konformität zuständig. |
| 413 | 413 |
|
| 414 | 414 |
SM2_NO_TITLE Unterdrückt die Ausgabe des Inhaltes des Title-Attributes |
| 415 |
bei [a] oder [ac] formatierten links. |
|
| 415 |
bei [a] oder [ac] formatierten links. Im XHTML-Strikt Modus |
|
| 416 |
wird 'title' mit einen ausgegeben. |
|
| 416 | 417 |
|
| 417 | 418 |
Für diesen Parameter gibt es auch einen erweiterten Modus, bei dem die Optionen |
| 418 | 419 |
als assoziatives Array übergeben werden. Näheres dazu im Abschnitt ERWEITERTE |
| ... | ... | |
| 505 | 506 |
[page_title] text des Seitentitel |
| 506 | 507 |
(HTML entity escaped ausser das SM2_NOESCAPE Flag ist gesetzt) |
| 507 | 508 |
[page_icon] die URL zu einer seitenbezogenen Bilddatei (ab WB2.9.0) |
| 509 |
[tooltip] Tooltip-Text, der normal im title-Attribut der Links ausgegeben wird |
|
| 508 | 510 |
[url] die URL der Seiten für den <a> tag |
| 509 | 511 |
[target] das Seitenziel für den <a> tag |
| 510 | 512 |
[page_id] die Page ID des aktuellen Menüpunktes. |
| branches/2.8.x/wb/modules/show_menu2/languages/NL.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 |
DUTCH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
//Module Description |
|
| 30 |
$module_description = 'Deze module integreert een de geavanceerde menu functie <code> show_menu2 () </ code> in Website Baker. Gedetailleerde informatie is beschikbaar op <a href="http://code.jellycan.com/show_menu2/" target="_blank"> http://code.jellycan.com/show_menu2/ </a> of in de <a href = "{WB_URL}/modules/show_menu2/README_EN" target = "_blank"> README </a>.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| 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 |
DUTCH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
//Module Description |
|
| 30 |
$module_description = 'Deze module integreert een de geavanceerde menu functie <code> show_menu2 () </ code> in Website Baker. Gedetailleerde informatie is beschikbaar op <a href="http://code.jellycan.com/show_menu2/" target="_blank"> http://code.jellycan.com/show_menu2/ </a> of in de <a href = "{WB_URL}/modules/show_menu2/README_EN" target = "_blank"> README </a>.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/languages/NO.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 |
NORWEGIAN LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
// Norwegian Moduledscripton |
|
| 30 |
$module_description = 'Dette er en kode snutt (snippet) beregnet på Website Baker CMS og er en fullgod erstatning for den innebygde meny modulen. For nærmere beskrivelse se (Kun på Engelsk) <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> , for mer WB spesifikke detaljer se <a href="' .WB_URL .'/modules/show_menu2/README.en.txt" target="_blank">readme</a> filen.'; |
|
| 31 |
|
|
| 32 |
?> |
|
| 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 |
NORWEGIAN LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
// Norwegian Moduledscripton |
|
| 30 |
$module_description = 'Dette er en kode snutt (snippet) beregnet på Website Baker CMS og er en fullgod erstatning for den innebygde meny modulen. For nærmere beskrivelse se (Kun på Engelsk) <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> , for mer WB spesifikke detaljer se <a href="' .WB_URL .'/modules/show_menu2/README.en.txt" target="_blank">readme</a> filen.'; |
|
| 31 |
|
|
| 32 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/languages/DA.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 |
DANISH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
// Dansk modulbeskrivelse |
|
| 30 |
$module_description = 'Dette modul integrerer den udvidede menüfunktion <code>show_menu2()</code> i Website Baker. Der findes detaljeret information på <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> eller i <a href="{WB_URL}/modules/show_menu2/README.en.txt" target="_blank">readme</a>filen.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| 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 |
DANISH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
// Dansk modulbeskrivelse |
|
| 30 |
$module_description = 'Dette modul integrerer den udvidede menüfunktion <code>show_menu2()</code> i Website Baker. Der findes detaljeret information på <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> eller i <a href="{WB_URL}/modules/show_menu2/README.en.txt" target="_blank">readme</a>filen.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/languages/FR.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 |
FRENCH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
//Module Description |
|
| 30 |
$module_description = 'Ce module intègre la fonction de menu avancée <code> show_menu2 () </ code> dans Website Baker. Une information détaillée est disponible sur <a href="http://code.jellycan.com/show_menu2/" target="_blank"> http://code.jellycan.com/show_menu2/ </a> ou dans le fichier <a href = "{WB_URL}/modules/show_menu2/README_DE" target = "_blank"> README </a>.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| 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 |
FRENCH LANGUAGE FILE FOR THE ADDON: SHOW_MENU2 |
|
| 26 |
----------------------------------------------------------------------------------------- |
|
| 27 |
*/ |
|
| 28 |
|
|
| 29 |
//Module Description |
|
| 30 |
$module_description = 'Ce module intègre la fonction de menu avancée <code> show_menu2 () </ code> dans Website Baker. Une information détaillée est disponible sur <a href="http://code.jellycan.com/show_menu2/" target="_blank"> http://code.jellycan.com/show_menu2/ </a> ou dans le fichier <a href = "{WB_URL}/modules/show_menu2/README_DE" target = "_blank"> README </a>.';
|
|
| 31 |
|
|
| 32 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/languages/index.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
|
|
| 3 |
/* |
|
| 4 |
show_menu2: show_menu replacement for Website Baker |
|
| 5 |
Copyright (C) 2006-2009, Brodie Thiesfield |
|
| 6 |
|
|
| 7 |
This program is free software; you can redistribute it and/or |
|
| 8 |
modify it under the terms of the GNU General Public License |
|
| 9 |
as published by the Free Software Foundation; either version 2 |
|
| 10 |
of the License, or (at your option) any later version. |
|
| 11 |
|
|
| 12 |
This program is distributed in the hope that it will be useful, |
|
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
GNU General Public License for more details. |
|
| 16 |
|
|
| 17 |
You should have received a copy of the GNU General Public License |
|
| 18 |
along with this program; if not, write to the Free Software |
|
| 19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
| 20 |
02110-1301, USA. |
|
| 21 |
*/ |
|
| 22 |
|
|
| 23 |
header('Location: ../index.php');
|
|
| 24 |
|
|
| 1 |
<?php
|
|
| 2 |
|
|
| 3 |
/*
|
|
| 4 |
show_menu2: show_menu replacement for Website Baker
|
|
| 5 |
Copyright (C) 2006-2009, Brodie Thiesfield
|
|
| 6 |
|
|
| 7 |
This program is free software; you can redistribute it and/or
|
|
| 8 |
modify it under the terms of the GNU General Public License
|
|
| 9 |
as published by the Free Software Foundation; either version 2
|
|
| 10 |
of the License, or (at your option) any later version.
|
|
| 11 |
|
|
| 12 |
This program is distributed in the hope that it will be useful,
|
|
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 15 |
GNU General Public License for more details.
|
|
| 16 |
|
|
| 17 |
You should have received a copy of the GNU General Public License
|
|
| 18 |
along with this program; if not, write to the Free Software
|
|
| 19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
| 20 |
02110-1301, USA.
|
|
| 21 |
*/
|
|
| 22 |
|
|
| 23 |
header('Location: ../index.php');
|
|
| 24 |
|
|
| 25 | 25 |
?> |
| branches/2.8.x/wb/modules/show_menu2/languages/DE.php | ||
|---|---|---|
| 29 | 29 |
// Deutsche Modulbeschreibung |
| 30 | 30 |
$module_description = 'Dieses Modul integriert die erweiterte Menüfunktion <code>show_menu2()</code> in Website Baker. Detailierte Informationen gibt es auf <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> oder in der <a href="{WB_URL}/modules/show_menu2/README.de.txt" target="_blank">readme</a> Datei.';
|
| 31 | 31 |
|
| 32 |
?> |
|
| 32 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/include.php | ||
|---|---|---|
| 206 | 206 |
return preg_replace( |
| 207 | 207 |
'@\[('.
|
| 208 | 208 |
'a|ac|/a|li|/li|ul|/ul|menu_title|menu_icon_0|menu_icon_1|'. |
| 209 |
'page_title|page_icon|url|target|page_id|'. |
|
| 209 |
'page_title|page_icon|url|target|page_id|tooltip|'.
|
|
| 210 | 210 |
'parent|level|sib|sibCount|class|description|keywords|'. |
| 211 | 211 |
SM2_CONDITIONAL. |
| 212 | 212 |
')\]@e', |
| ... | ... | |
| 223 | 223 |
case 'ac': |
| 224 | 224 |
$retval = '<a href="'.$this->url.'" class="'.$this->currClass.'"'; |
| 225 | 225 |
$retval = ($retval_1 == '') ? $retval : $retval_1; |
| 226 |
if(!($this->flags & SM2_XHTML_STRICT)) |
|
| 227 |
{
|
|
| 226 |
if(($this->flags & SM2_XHTML_STRICT)) {
|
|
| 227 |
$retval .= ' title="'.(($this->flags & SM2_NO_TITLE) ? ' ' : $this->page['tooltip']).'"'; |
|
| 228 |
} |
|
| 229 |
else {
|
|
| 228 | 230 |
$retval .= ' target="'.$this->page['target'].'"'; |
| 231 |
$retval .= ($this->flags & SM2_NO_TITLE) ? '' : ' title="'.$this->page['tooltip'].'"'; |
|
| 229 | 232 |
} |
| 230 |
$retval .= ' title="'.(($this->flags & SM2_NO_TITLE) ? ' ' : $this->page['page_title']).'">';
|
|
| 233 |
$retval .= '>'; |
|
| 231 | 234 |
break; |
| 232 | 235 |
case '/a': |
| 233 | 236 |
$retval = '</a>'; break; |
| ... | ... | |
| 534 | 537 |
$fields .= ',`viewing_users`'; |
| 535 | 538 |
} |
| 536 | 539 |
if(version_compare(WB_VERSION, '2.9.0', '>=')) {
|
| 537 |
$fields .= ',`menu_icon_0`,`menu_icon_1`,`page_icon`'; |
|
| 540 |
$fields .= ',`menu_icon_0`,`menu_icon_1`,`page_icon`,`tooltip`';
|
|
| 538 | 541 |
} |
| 539 | 542 |
if ($flags & SM2_ALLINFO) {
|
| 540 | 543 |
$fields = '*'; |
| ... | ... | |
| 570 | 573 |
continue; |
| 571 | 574 |
} |
| 572 | 575 |
} |
| 573 |
|
|
| 576 |
if(!isset($page['tooltip'])) { $page['tooltip'] = $page['page_title']; }
|
|
| 574 | 577 |
// ensure that we have an array entry in the table to add this to |
| 575 | 578 |
$idx = $page['parent']; |
| 576 | 579 |
if (!array_key_exists($idx, $rgParent)) {
|
| branches/2.8.x/wb/modules/show_menu2/legacy.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
/** |
|
| 3 |
* |
|
| 4 |
* @category module |
|
| 5 |
* @package show_menu2 |
|
| 6 |
* @author WebsiteBaker Project |
|
| 7 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 8 |
* @copyright 2009-2011, 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 5.2.2 and higher |
|
| 13 |
* @version $Id$ |
|
| 14 |
* @filesource $HeadURL$ |
|
| 15 |
* @lastmodified $Date$ |
|
| 16 |
* |
|
| 17 |
*/ |
|
| 18 |
|
|
| 19 |
/* |
|
| 20 |
This file provides backward compatibility between show_menu2 and the |
|
| 21 |
old functions show_menu() and menu(). Note that it is highly recommended |
|
| 22 |
for you to update your templates to use show_menu2 directly. |
|
| 23 |
*/ |
|
| 24 |
|
|
| 25 |
/* ---------------------------------------------------------------------------- |
|
| 26 |
show_menu |
|
| 27 |
|
|
| 28 |
From: http://forum.websitebaker.org/index.php/topic,2251.msg13978.html#msg13978 |
|
| 29 |
|
|
| 30 |
* By calling it multiple times, you can have one menu just |
|
| 31 |
* showing the root level, one for the sub-pages, and so on |
|
| 32 |
* The order of the arguments has been changed compared |
|
| 33 |
* to the page_menu() function, so read carefully the list |
|
| 34 |
* of arguments! |
|
| 35 |
* To just display the standard menu, use |
|
| 36 |
* <?php show_menu(); ?> within your template's html code. |
|
| 37 |
* You don't normally need anymore than the first four arguments. |
|
| 38 |
* Usual calls would be (inside php code!) |
|
| 39 |
* show_menu(1,0,-1,false); - displays the complete page tree |
|
| 40 |
* show_menu(1,1,1); - show only first sub level |
|
| 41 |
* show_menu(1,1,-1); - show an expanding/collapsing menu tree starting at level 1 |
|
| 42 |
* Have fun experimenting! |
|
| 43 |
* |
|
| 44 |
* Full list of arguments: |
|
| 45 |
* 1. $menu_number: With activitated "multiple menu" feature |
|
| 46 |
* you can choose which menu will be displayed |
|
| 47 |
* default: 1 |
|
| 48 |
* 2. $start_level: The depth level of the root of the displayed |
|
| 49 |
* menu tree. Defaults to '0', which is the top level. |
|
| 50 |
* '1' will show all pages starting from the first sub level. |
|
| 51 |
* 3. $recurse: Gives the maximum number of levels to be displayed. Default |
|
| 52 |
* is '-1' which means 'all'. |
|
| 53 |
* 4. $collapse: Specifies, whether the menu tree shall be |
|
| 54 |
* expandable/collapsible (if set to 'true') |
|
| 55 |
* or complete (all pages being displayed) if set to 'false' |
|
| 56 |
* 5. $item_template: Gives the possibility to specify the html code that is |
|
| 57 |
* displayed before displaying sub-pages |
|
| 58 |
* 6. $item_footer: The html code to appear after sub-pages were displayed. |
|
| 59 |
* 7. $menu_header: The html code to appear before the entire menu code and each |
|
| 60 |
* sub tree. |
|
| 61 |
* 8. $menu_footer: The html code to appear after the entire menu code and each |
|
| 62 |
* sub tree. |
|
| 63 |
* 9. $default_class: The (CSS) class of every menu item except the currently viewed page |
|
| 64 |
* 10. $current_class: The class of the currently viewed page |
|
| 65 |
* 11. $parent: (used internally) The page_id of the menu's root node, defaults is '0' (root level) |
|
| 66 |
*/ |
|
| 67 |
|
|
| 68 |
class SM2_ShowMenuFormatter |
|
| 69 |
{
|
|
| 70 |
var $output; |
|
| 71 |
var $itemTemplate; |
|
| 72 |
var $itemFooter; |
|
| 73 |
var $menuHeader; |
|
| 74 |
var $menuFooter; |
|
| 75 |
var $defaultClass; |
|
| 76 |
var $currentClass; |
|
| 77 |
|
|
| 78 |
function output($aString) {
|
|
| 79 |
if ($this->flags & SM2_BUFFER) {
|
|
| 80 |
$this->output .= $aString; |
|
| 81 |
} |
|
| 82 |
else {
|
|
| 83 |
echo $aString; |
|
| 84 |
} |
|
| 85 |
} |
|
| 86 |
function initialize() { $this->output = ''; }
|
|
| 87 |
function startList($aPage, $aUrl) {
|
|
| 88 |
echo $this->menuHeader; |
|
| 89 |
} |
|
| 90 |
function startItem($aPage, $aUrl, $aCurrSib, $aSibCount) {
|
|
| 91 |
// determine the class string to use |
|
| 92 |
$thisClass = $this->defaultClass; |
|
| 93 |
if ($aPage['page_id'] == PAGE_ID) {
|
|
| 94 |
$thisClass = $this->currentClass; |
|
| 95 |
} |
|
| 96 |
|
|
| 97 |
// format and display this item |
|
| 98 |
$item = str_replace( |
|
| 99 |
array( |
|
| 100 |
'[a]','[/a]','[menu_title]','[page_title]','[url]', |
|
| 101 |
'[target]','[class]' |
|
| 102 |
), |
|
| 103 |
array( |
|
| 104 |
"<a href='$aUrl' target='".$aPage['target']."'>", '</a>', |
|
| 105 |
$aPage['menu_title'], $aPage['page_title'], $aUrl, |
|
| 106 |
$aPage['target'], $thisClass |
|
| 107 |
), |
|
| 108 |
$this->itemTemplate); |
|
| 109 |
echo $item; |
|
| 110 |
} |
|
| 111 |
function finishItem() {
|
|
| 112 |
echo $this->itemFooter; |
|
| 113 |
} |
|
| 114 |
function finishList() {
|
|
| 115 |
echo $this->menuFooter; |
|
| 116 |
} |
|
| 117 |
function finalize() { }
|
|
| 118 |
function getOutput() {
|
|
| 119 |
return $this->output; |
|
| 120 |
} |
|
| 121 |
} |
|
| 122 |
|
|
| 123 |
function show_menu( |
|
| 124 |
$aMenu = 1, |
|
| 125 |
$aStartLevel = 0, |
|
| 126 |
$aRecurse = -1, |
|
| 127 |
$aCollapse = true, |
|
| 128 |
$aItemTemplate = '<li><span[class]>[a][menu_title][/a]</span>', |
|
| 129 |
$aItemFooter = '</li>', |
|
| 130 |
$aMenuHeader = '<ul>', |
|
| 131 |
$aMenuFooter = '</ul>', |
|
| 132 |
$aDefaultClass = ' class="menu_default"', |
|
| 133 |
$aCurrentClass = ' class="menu_current"', |
|
| 134 |
$aParent = 0 |
|
| 135 |
) |
|
| 136 |
{
|
|
| 137 |
static $formatter; |
|
| 138 |
if (!isset($formatter)) {
|
|
| 139 |
$formatter = new SM2_ShowMenuFormatter; |
|
| 140 |
} |
|
| 141 |
|
|
| 142 |
$formatter->itemTemplate = $aItemTemplate; |
|
| 143 |
$formatter->itemFooter = $aItemFooter; |
|
| 144 |
$formatter->menuHeader = $aMenuHeader; |
|
| 145 |
$formatter->menuFooter = $aMenuFooter; |
|
| 146 |
$formatter->defaultClass = $aDefaultClass; |
|
| 147 |
$formatter->currentClass = $aCurrentClass; |
|
| 148 |
|
|
| 149 |
$start = SM2_ROOT + $aStartLevel; |
|
| 150 |
if ($aParent != 0) {
|
|
| 151 |
$start = $aParent; |
|
| 152 |
} |
|
| 153 |
|
|
| 154 |
$maxLevel = 0; |
|
| 155 |
if ($aRecurse == 0) {
|
|
| 156 |
return; |
|
| 157 |
} |
|
| 158 |
if ($aRecurse < 0) {
|
|
| 159 |
$maxLevel = SM2_ALL; |
|
| 160 |
} |
|
| 161 |
else {
|
|
| 162 |
$maxLevel = SM2_START + $aRecurse - 1; |
|
| 163 |
} |
|
| 164 |
|
|
| 165 |
$flags = $aCollapse ? SM2_TRIM : SM2_ALL; |
|
| 166 |
|
|
| 167 |
// special case for default case |
|
| 168 |
if ($aStartLevel == 0 && $aRecurse == -1 && $aCollapse) {
|
|
| 169 |
$maxLevel = SM2_CURR + 1; |
|
| 170 |
} |
|
| 171 |
|
|
| 172 |
show_menu2($aMenu, $start, $maxLevel, $flags, $formatter); |
|
| 173 |
} |
|
| 174 |
|
|
| 175 |
function page_menu( |
|
| 176 |
$aParent = 0, |
|
| 177 |
$menu_number = 1, |
|
| 178 |
$item_template = '<li[class]>[a][menu_title][/a]</li>', |
|
| 179 |
$menu_header = '<ul>', |
|
| 180 |
$menu_footer = '</ul>', |
|
| 181 |
$default_class = ' class="menu_default"', |
|
| 182 |
$current_class = ' class="menu_current"', |
|
| 183 |
$recurse = LEVEL // page['level'] |
|
| 184 |
) |
|
| 185 |
{
|
|
| 186 |
show_menu($menu_number, 0, $recurse+2, true, $item_template, '', |
|
| 187 |
$menu_header, $menu_footer, $default_class, $current_class, $aParent); |
|
| 188 |
} |
|
| 189 |
|
|
| 190 |
?> |
|
| 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 |
/* |
|
| 20 |
This file provides backward compatibility between show_menu2 and the |
|
| 21 |
old functions show_menu() and menu(). Note that it is highly recommended |
|
| 22 |
for you to update your templates to use show_menu2 directly. |
|
| 23 |
*/ |
|
| 24 |
|
|
| 25 |
/* ---------------------------------------------------------------------------- |
|
| 26 |
show_menu |
|
| 27 |
|
|
| 28 |
From: http://forum.websitebaker.org/index.php/topic,2251.msg13978.html#msg13978 |
|
| 29 |
|
|
| 30 |
* By calling it multiple times, you can have one menu just |
|
| 31 |
* showing the root level, one for the sub-pages, and so on |
|
| 32 |
* The order of the arguments has been changed compared |
|
| 33 |
* to the page_menu() function, so read carefully the list |
|
| 34 |
* of arguments! |
|
| 35 |
* To just display the standard menu, use |
|
| 36 |
* <?php show_menu(); ?> within your template's html code. |
|
| 37 |
* You don't normally need anymore than the first four arguments. |
|
| 38 |
* Usual calls would be (inside php code!) |
|
| 39 |
* show_menu(1,0,-1,false); - displays the complete page tree |
|
| 40 |
* show_menu(1,1,1); - show only first sub level |
|
| 41 |
* show_menu(1,1,-1); - show an expanding/collapsing menu tree starting at level 1 |
|
| 42 |
* Have fun experimenting! |
|
| 43 |
* |
|
| 44 |
* Full list of arguments: |
|
| 45 |
* 1. $menu_number: With activitated "multiple menu" feature |
|
| 46 |
* you can choose which menu will be displayed |
|
| 47 |
* default: 1 |
|
| 48 |
* 2. $start_level: The depth level of the root of the displayed |
|
| 49 |
* menu tree. Defaults to '0', which is the top level. |
|
| 50 |
* '1' will show all pages starting from the first sub level. |
|
| 51 |
* 3. $recurse: Gives the maximum number of levels to be displayed. Default |
|
| 52 |
* is '-1' which means 'all'. |
|
| 53 |
* 4. $collapse: Specifies, whether the menu tree shall be |
|
| 54 |
* expandable/collapsible (if set to 'true') |
|
| 55 |
* or complete (all pages being displayed) if set to 'false' |
|
| 56 |
* 5. $item_template: Gives the possibility to specify the html code that is |
|
| 57 |
* displayed before displaying sub-pages |
|
| 58 |
* 6. $item_footer: The html code to appear after sub-pages were displayed. |
|
| 59 |
* 7. $menu_header: The html code to appear before the entire menu code and each |
|
| 60 |
* sub tree. |
|
| 61 |
* 8. $menu_footer: The html code to appear after the entire menu code and each |
|
| 62 |
* sub tree. |
|
| 63 |
* 9. $default_class: The (CSS) class of every menu item except the currently viewed page |
|
| 64 |
* 10. $current_class: The class of the currently viewed page |
|
| 65 |
* 11. $parent: (used internally) The page_id of the menu's root node, defaults is '0' (root level) |
|
| 66 |
*/ |
|
| 67 |
|
|
| 68 |
class SM2_ShowMenuFormatter |
|
| 69 |
{
|
|
| 70 |
var $output; |
|
| 71 |
var $itemTemplate; |
|
| 72 |
var $itemFooter; |
|
| 73 |
var $menuHeader; |
|
| 74 |
var $menuFooter; |
|
| 75 |
var $defaultClass; |
|
| 76 |
var $currentClass; |
|
| 77 |
|
|
| 78 |
function output($aString) {
|
|
| 79 |
if ($this->flags & SM2_BUFFER) {
|
|
| 80 |
$this->output .= $aString; |
|
| 81 |
} |
|
| 82 |
else {
|
|
| 83 |
echo $aString; |
|
| 84 |
} |
|
| 85 |
} |
|
| 86 |
function initialize() { $this->output = ''; }
|
|
| 87 |
function startList($aPage, $aUrl) {
|
|
| 88 |
echo $this->menuHeader; |
|
| 89 |
} |
|
| 90 |
function startItem($aPage, $aUrl, $aCurrSib, $aSibCount) {
|
|
| 91 |
// determine the class string to use |
|
| 92 |
$thisClass = $this->defaultClass; |
|
| 93 |
if ($aPage['page_id'] == PAGE_ID) {
|
|
| 94 |
$thisClass = $this->currentClass; |
|
| 95 |
} |
|
| 96 |
|
|
| 97 |
// format and display this item |
|
| 98 |
$item = str_replace( |
|
| 99 |
array( |
|
| 100 |
'[a]','[/a]','[menu_title]','[page_title]','[url]', |
|
| 101 |
'[target]','[class]' |
|
| 102 |
), |
|
| 103 |
array( |
|
| 104 |
"<a href='$aUrl' target='".$aPage['target']."'>", '</a>', |
|
| 105 |
$aPage['menu_title'], $aPage['page_title'], $aUrl, |
|
| 106 |
$aPage['target'], $thisClass |
|
| 107 |
), |
|
| 108 |
$this->itemTemplate); |
|
| 109 |
echo $item; |
|
| 110 |
} |
|
| 111 |
function finishItem() {
|
|
| 112 |
echo $this->itemFooter; |
|
| 113 |
} |
|
| 114 |
function finishList() {
|
|
| 115 |
echo $this->menuFooter; |
|
| 116 |
} |
|
| 117 |
function finalize() { }
|
|
| 118 |
function getOutput() {
|
|
| 119 |
return $this->output; |
|
| 120 |
} |
|
| 121 |
} |
|
| 122 |
|
|
| 123 |
function show_menu( |
|
| 124 |
$aMenu = 1, |
|
| 125 |
$aStartLevel = 0, |
|
| 126 |
$aRecurse = -1, |
|
| 127 |
$aCollapse = true, |
|
| 128 |
$aItemTemplate = '<li><span[class]>[a][menu_title][/a]</span>', |
|
| 129 |
$aItemFooter = '</li>', |
|
| 130 |
$aMenuHeader = '<ul>', |
|
| 131 |
$aMenuFooter = '</ul>', |
|
| 132 |
$aDefaultClass = ' class="menu_default"', |
|
| 133 |
$aCurrentClass = ' class="menu_current"', |
|
| 134 |
$aParent = 0 |
|
| 135 |
) |
|
| 136 |
{
|
|
| 137 |
static $formatter; |
|
| 138 |
if (!isset($formatter)) {
|
|
| 139 |
$formatter = new SM2_ShowMenuFormatter; |
|
| 140 |
} |
|
| 141 |
|
|
| 142 |
$formatter->itemTemplate = $aItemTemplate; |
|
| 143 |
$formatter->itemFooter = $aItemFooter; |
|
| 144 |
$formatter->menuHeader = $aMenuHeader; |
|
| 145 |
$formatter->menuFooter = $aMenuFooter; |
|
| 146 |
$formatter->defaultClass = $aDefaultClass; |
|
| 147 |
$formatter->currentClass = $aCurrentClass; |
|
| 148 |
|
|
| 149 |
$start = SM2_ROOT + $aStartLevel; |
|
| 150 |
if ($aParent != 0) {
|
|
| 151 |
$start = $aParent; |
|
| 152 |
} |
|
| 153 |
|
|
| 154 |
$maxLevel = 0; |
|
| 155 |
if ($aRecurse == 0) {
|
|
| 156 |
return; |
|
| 157 |
} |
|
| 158 |
if ($aRecurse < 0) {
|
|
| 159 |
$maxLevel = SM2_ALL; |
|
| 160 |
} |
|
| 161 |
else {
|
|
| 162 |
$maxLevel = SM2_START + $aRecurse - 1; |
|
| 163 |
} |
|
| 164 |
|
|
| 165 |
$flags = $aCollapse ? SM2_TRIM : SM2_ALL; |
|
| 166 |
|
|
| 167 |
// special case for default case |
|
| 168 |
if ($aStartLevel == 0 && $aRecurse == -1 && $aCollapse) {
|
|
| 169 |
$maxLevel = SM2_CURR + 1; |
|
| 170 |
} |
|
| 171 |
|
|
| 172 |
show_menu2($aMenu, $start, $maxLevel, $flags, $formatter); |
|
| 173 |
} |
|
| 174 |
|
|
| 175 |
function page_menu( |
|
| 176 |
$aParent = 0, |
|
| 177 |
$menu_number = 1, |
|
| 178 |
$item_template = '<li[class]>[a][menu_title][/a]</li>', |
|
| 179 |
$menu_header = '<ul>', |
|
| 180 |
$menu_footer = '</ul>', |
|
| 181 |
$default_class = ' class="menu_default"', |
|
| 182 |
$current_class = ' class="menu_current"', |
|
| 183 |
$recurse = LEVEL // page['level'] |
|
| 184 |
) |
|
| 185 |
{
|
|
| 186 |
show_menu($menu_number, 0, $recurse+2, true, $item_template, '', |
|
| 187 |
$menu_header, $menu_footer, $default_class, $current_class, $aParent); |
|
| 188 |
} |
|
| 189 |
|
|
| 190 |
?> |
|
| branches/2.8.x/wb/modules/show_menu2/README.en.txt | ||
|---|---|---|
| 366 | 366 |
release 4.8, supply this flag to enable hidden pages to |
| 367 | 367 |
become visible when they are active. |
| 368 | 368 |
|
| 369 |
SM2_XHTML_STRICT From all links, created by [a] or [ac], the 'target' - |
|
| 370 |
attribute will be removed to preserve the XHTML-Compatibility |
|
| 371 |
|
|
| 372 |
SM2_NO_TITLE Supress the value of the 'title'-attributes on links which |
|
| 373 |
are created by [a] or [ac] formatted links. |
|
| 374 |
|
|
| 369 | 375 |
This parameter also has an extended mode where an associative array of |
| 370 | 376 |
options is supplied. See the EXTENDED OPTIONS section for details. |
| 371 | 377 |
Most users will NOT need to use this. |
| ... | ... | |
| 443 | 449 |
[ul] <ul> tag including class: '<ul class="[class]">' |
| 444 | 450 |
[class] List of classes for that page |
| 445 | 451 |
[menu_title] Menu title text (HTML entity escaped unless SM2_NOESCAPE flag is used) |
| 452 |
[menu_icon_0] URL poining to an image for display normal - status |
|
| 453 |
[menu_icon_1] URL poining to an image for display active/hover - status |
|
| 446 | 454 |
[page_title] Page title text (HTML entity escaped unless SM2_NOESCAPE flag is used) |
| 455 |
[page_icon] URL poining to an image relating to the current page |
|
| 447 | 456 |
[url] Page URL for the <a> tag |
| 448 | 457 |
[target] Page target for the <a> tag |
| 449 | 458 |
[page_id] Page ID of the current menu item |
| ... | ... | |
| 496 | 505 |
sib Test against the current page sibling number. |
| 497 | 506 |
sibCount Test against the number of siblings in the menu. |
| 498 | 507 |
id Test against the page id. |
| 508 |
target Test against the target attribute |
|
| 499 | 509 |
|
| 500 | 510 |
Operator. It must be one of the following: |
| 501 | 511 |
< Less Than |
Also available in: Unified diff
show_menu2 display Title-attribute fixed
tooltip added, change modul version to 4.9.5