| | @@ -952,10 +952,62 @@ |
| 952 | 952 | @ </td></tr></table> |
| 953 | 953 | @ </div></form> |
| 954 | 954 | db_end_transaction(0); |
| 955 | 955 | style_finish_page(); |
| 956 | 956 | } |
| 957 | + |
| 958 | +/* |
| 959 | +** SETTING: mainmenu width=70 block-text |
| 960 | +** |
| 961 | +** The mainmenu setting specifies the entries on the main menu |
| 962 | +** for many skins. The mainmenu should be a TCL list. Each set |
| 963 | +** of four consecutive values defines a single main menu item: |
| 964 | +** |
| 965 | +** * The first term is text that appears on the menu. |
| 966 | +** |
| 967 | +** * The second term is a hyperlink to take when a user clicks on the |
| 968 | +** entry. Hyperlinks that start with "/" are relative to the |
| 969 | +** repository root. |
| 970 | +** |
| 971 | +** * The third term is an argument to the TH1 "capexpr" command. |
| 972 | +** If capexpr evalutes to true, then the entry is shown. If not, |
| 973 | +** the entry is omitted. "*" is always true. "{}" is never true. |
| 974 | +** |
| 975 | +** * The fourth term is a list of extra class names to apply to the new |
| 976 | +** menu entry. Some skins will classes "desktoponly" and "wideonly" |
| 977 | +** to only show the entries when the web browser screen is wide or |
| 978 | +** very wide, respectively. |
| 979 | +** |
| 980 | +** Some custom skins might not use this property. Whether the property |
| 981 | +** is used or not a choice made by the skin designer. Some skins may add |
| 982 | +** extra choices (such as the hamburger button) to the menu. |
| 983 | +*/ |
| 984 | +/* |
| 985 | +** SETTING: sitemap-extra width=70 block-text |
| 986 | +** |
| 987 | +** The sitemap-extra setting defines extra links to appear on the |
| 988 | +** /sitemap web page as sub-items of the "Home Page" entry before the |
| 989 | +** "Documentation Search" entry (if any). For skins that use the /sitemap |
| 990 | +** page to construct a hamburger menu dropdown, new entries added here |
| 991 | +** will appear on the hamburger menu. |
| 992 | +** |
| 993 | +** This setting should be a TCL list divided into triples. Each |
| 994 | +** triple defines a new entry: |
| 995 | +** |
| 996 | +** * The first term is the display name of the /sitemap entry |
| 997 | +** |
| 998 | +** * The second term is a hyperlink to take when a user clicks on the |
| 999 | +** entry. Hyperlinks that start with "/" are relative to the |
| 1000 | +** repository root. |
| 1001 | +** |
| 1002 | +** * The third term is an argument to the TH1 "capexpr" command. |
| 1003 | +** If capexpr evalutes to true, then the entry is shown. If not, |
| 1004 | +** the entry is omitted. "*" is always true. |
| 1005 | +** |
| 1006 | +** The default value is blank, meaning no added entries. |
| 1007 | +*/ |
| 1008 | + |
| 957 | 1009 | |
| 958 | 1010 | /* |
| 959 | 1011 | ** WEBPAGE: setup_config |
| 960 | 1012 | ** |
| 961 | 1013 | ** The "Admin/Configuration" page. Requires Setup privilege. |
| | @@ -1026,11 +1078,11 @@ |
| 1026 | 1078 | @ leading "/".</p> |
| 1027 | 1079 | @ <p>(Property: "index-page") |
| 1028 | 1080 | @ <hr> |
| 1029 | 1081 | @ <p>The main menu for the web interface |
| 1030 | 1082 | @ <p> |
| 1031 | | - @ |
| 1083 | + @ |
| 1032 | 1084 | @ <p>This setting should be a TCL list. Each set of four consecutive |
| 1033 | 1085 | @ values defines a single main menu item: |
| 1034 | 1086 | @ <ol> |
| 1035 | 1087 | @ <li> The first term is text that appears on the menu. |
| 1036 | 1088 | @ <li> The second term is a hyperlink to take when a user clicks on the |
| | @@ -1043,12 +1095,12 @@ |
| 1043 | 1095 | @ menu entry. Some skins will classes "desktoponly" and "wideonly" |
| 1044 | 1096 | @ to only show the entries when the web browser screen is wide or |
| 1045 | 1097 | @ very wide, respectively. |
| 1046 | 1098 | @ </ol> |
| 1047 | 1099 | @ |
| 1048 | | - @ <p>Some custom skins might not use this property. Whether the property |
| 1049 | | - @ is used or a choice made by the skin designer. Some skins add an extra |
| 1100 | + @ <p>Some custom skins might not use this property. Whether the property |
| 1101 | + @ is used or not a choice made by the skin designer. Some skins may add extra |
| 1050 | 1102 | @ choices (such as the hamburger button) to the menu that are not shown |
| 1051 | 1103 | @ on this list. (Property: mainmenu) |
| 1052 | 1104 | @ <p> |
| 1053 | 1105 | if(P("resetMenu")!=0){ |
| 1054 | 1106 | db_unset("mainmenu", 0); |
| 1055 | 1107 | |