XHTML fixes

This commit is contained in:
Colin Kuskie 2006-05-03 20:01:38 +00:00
parent c98308af17
commit 2b651949ea
23 changed files with 201 additions and 189 deletions

View file

@ -15,21 +15,24 @@ our $I18N = {
'admin toggle body' => {
message => q|
<b>&#94;AdminToggle();</b><br />
<p><b>&#94;AdminToggle();</b><br />
<b>&#94;AdminToggle([<i>enable admin</i>], [<i>disable admin</i>], [<i>template name</i>]);</b><br />
Places a link on the page which is only visible to content managers and administrators. The link toggles on/off admin mode. You can optionally specify other messages to display like this: &#94;AdminToggle("Edit On","Edit Off"); This macro optionally takes a third parameter that allows you to specify an alternate template name in the Macro/AdminToggle namespace.
</p>
<p>
The following variables are available in the template:
<p/>
<b>toggle.url</b><br />
</p>
<p><b>toggle.url</b><br />
The URL to activate or deactivate Admin mode.
<p/>
<b>toggle.text</b><br />
</p>
<p><b>toggle.text</b><br />
The Internationalized label for turning on or off Admin (depending on the state of the macro), or the text that you supply to the macro.
<p/>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679000,
},
'516' => {

View file

@ -19,17 +19,17 @@ our $I18N = {
'asset proxy body' => {
message => q|
<P><b>&#94;AssetProxy</b>(<i>Asset URL</i>);<br />
<p><b>&#94;AssetProxy</b>(<i>Asset URL</i>);<br />
This macro is used to render an Asset and display it inline according
to its template. Any Asset can be displayed, including Navigations,
images, links to files for downloading or for snippets.
images, links to files for downloading or for snippets.</p>
<p>It can also be like a Shortcut Asset, displaying content from another
part of the site on this page. Unlike a Shortcut, it cannot override
any part of the original Asset.
any part of the original Asset.</p>
|,
lastUpdated => 1112583827,
lastUpdated => 1146679031,
},
};

View file

@ -14,13 +14,11 @@ our $I18N = {
'username body' => {
message => q|
<b>&#94;@; - Username</b><br />
<p><b>&#94;@; - Username</b><br />
The username of the currently logged in user.
<p>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679072,
},
};

View file

@ -14,18 +14,20 @@ our $I18N = {
'can edit text body' => {
message => q|
<b>&#94;CanEditText(<i>text message</i>);</b><br />
<p><b>&#94;CanEditText(<i>text message</i>);</b><br />
Display a message to a user that can edit the current Asset.
<p>
<i>Example:</i><br />
</p>
<p><i>Example:</i><br />
&#94;CanEditText("You may edit this Asset");<br />
&#94;CanEditText(&#94;AdminToggle;);
<p>
Do not use this Macro outside of an Asset as it will have unpredictable
</p>
<p>Do not use this Macro outside of an Asset as it will have unpredictable
results.
</p>
|,
lastUpdated => 1134773763,
lastUpdated => 1146679107,
},
};

View file

@ -14,14 +14,13 @@ our $I18N = {
'date body' => {
message => q|
<b>&#94;D();</b><br />
<p><b>&#94;D();</b><br />
<b>&#94;D([<i>date formatting code</i>],[<i>epoch date</i>]);</b><br />
The current date and time.
<p>
</p>
You can configure the date by using date formatting symbols. For instance, if you created a macro like this <b>&#94;D("%c %D, %y");</b> it would output <b>September 26, 2001</b>. The following are the available date formatting symbols:
<p>
<p>You can configure the date by using date formatting symbols. For instance, if you created a macro like this <b>&#94;D("%c %D, %y");</b> it would output <b>September 26, 2001</b>. The following are the available date formatting symbols:
</p>
<table><tbody>
<tr><td>%%</td><td>A literal percent sign '%'</td></tr>
@ -48,13 +47,14 @@ You can configure the date by using date formatting symbols. For instance, if yo
<tr><td>%z</td><td>The current user's date format preference, (default: '%H:%n %p').</td></tr>
<tr><td>%Z</td><td>The current user's time format preference, (default: '%M/%D/%y')</td></tr>
</tbody></table>
<p>
The default format code is %z %Z.
<p>
You can also pass in an epoch date into this macro as a secondary parameter. If no date is specified then today's date and time will be used.
<p>The default format code is %z %Z.
</p>
<p>You can also pass in an epoch date into this macro as a secondary parameter. If no date is specified then today's date and time will be used.</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679159,
},
};

View file

@ -14,21 +14,22 @@ our $I18N = {
'editable toggle body' => {
message => q|
<b>&#94;EditableToggle; or &#94;EditableToggle();</b><br />
<p><b>&#94;EditableToggle; or &#94;EditableToggle();</b><br />
Exactly the same as AdminToggle, except that the toggle is only displayed if the user has the rights to edit the current Asset. This macro takes up to three parameters. The first is a label for "Turn Admin On", the second is a label for "Turn Admin Off", and the third is the name of a template in the Macro/EditableToggle namespace to replace the default template.
<p>
The following variables are available in the template:
<p/>
<b>toggle.url</b><br />
The URL to activate or deactivate Admin mode.
<p/>
<b>toggle.text</b><br />
The Internationalized label for turning on or off Admin (depending on the state of the macro), or the text that you supply to the macro.
<p/>
</p>
<p>The following variables are available in the template:
</p>
<p><b>toggle.url</b><br />
The URL to activate or deactivate Admin mode.
</p>
<p><b>toggle.text</b><br />
The Internationalized label for turning on or off Admin (depending on the state of the macro), or the text that you supply to the macro.
</p>
|,
lastUpdated => 1134799755,
lastUpdated => 1146679223,
},
'516' => {

View file

@ -14,15 +14,15 @@ our $I18N = {
'env body' => {
message => q|
<b>&#94;Env()</b><br />
<p><b>&#94;Env()</b><br />
Can be used to display a web server environment variable on a page. The environment variables available on each server are different, but you can find out which ones your web server has by going to: http://www.yourwebguisite.com/env.pl
<p>
</p>
The macro should be specified like this &#94;Env("REMOTE_ADDR");
<p>
<p>The macro should be specified like this &#94;Env("REMOTE_ADDR");
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679257,
},
};

View file

@ -20,11 +20,11 @@ our $I18N = {
'execute body' => {
message => q|
<b>&#94;Execute();</b><br />
<p><b>&#94;Execute();</b><br />
Allows a content manager or administrator to execute an external program. Takes the format of <b>&#94;Execute("/this/file.sh");</b>.
<p>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679274,
},
};

View file

@ -15,11 +15,11 @@ our $I18N = {
'extras body' => {
message => q|
<b>&#94;Extras; or &#94;Extras(path/to/something/in/extras/folder);</b><br />
<p><b>&#94;Extras; or &#94;Extras(path/to/something/in/extras/folder);</b><br />
Returns the path to the WebGUI "extras" folder, which contains things like WebGUI icons.
<p>
</p>
|,
lastUpdated => 1146245155,
lastUpdated => 1146679288,
},
};

View file

@ -9,13 +9,12 @@ our $I18N = {
'fetch mime type body' => {
message => q|
<b>&#94;FetchMimeType;</b><br />
<p><b>&#94;FetchMimeType;</b><br />
<b>&#94;FetchMimeType(<i>file system path to file</i>);</b><br />
Returns the MIME type for a file. An absolute or relative file path
to the file is required. A URL to the file will not work.
to the file is required. A URL to the file will not work.</p>
|,
lastUpdated => 1134252720,
lastUpdated => 1146679300,
},
'macroName' => {

View file

@ -14,11 +14,11 @@ our $I18N = {
'file url body' => {
message => q|
<P><b>&#94;FileUrl</b>();<br />
<p><b>&#94;FileUrl</b>();<br />
<b>&#94;FileUrl</b>(<i>Asset URL</i>);<br />
This macro is used to return a filesystem URL to an File, Image or Snippet Asset identified by its Asset URL.
This macro is used to return a filesystem URL to an File, Image or Snippet Asset identified by its Asset URL.</p>
|,
lastUpdated => 1112315914,
lastUpdated => 1146679314,
},
'invalid url' => {

View file

@ -15,12 +15,11 @@ our $I18N = {
'form param body' => {
message => q|
<b>&#94;FormParam();</b><br />
<p><b>&#94;FormParam();</b><br />
This macro is mainly used in generating dynamic queries in SQL Reports. Using this macro you can pull the value of any form field simply by specifying the name of the form field, like this: &#94;FormParam("phoneNumber");
<p>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146679330,
},
};

View file

@ -15,27 +15,30 @@ our $I18N = {
'group add body' => {
message => q|
<b>&#94;GroupAdd();</b><br />
Using this macro you can allow users to add themselves to a group. The first parameter is the name of the group this user should be added to. The second parameter is a text string for the user to click on to add themselves to this group. The third parameter allows you to specify the name of a template in the Macro/GroupAdd namespace to replace the default template. These variables are available in the template:
<p/>
<b>group.url</b><br />
The URL with the action to add the user to the group.
<p/>
<b>group.text</b><br />
The supplied text string for the user to click on.
<p><b>&#94;GroupAdd();</b><br />
Using this macro you can allow users to add themselves to a group. The first parameter is the name of the group this user should be added to. The second parameter is a text string for the user to click on to add themselves to this group. The third parameter allows you to specify the name of a template in the Macro/GroupAdd namespace to replace the default template. These variables are available in the template:</p>
<p>
<b>NOTE:</b> All these conditions must be met for the link to be displayed:
<p><b>group.url</b><br />
The URL with the action to add the user to the group.
</p>
<p><b>group.text</b><br />
The supplied text string for the user to click on.
</p>
<p><b>NOTE:</b> All these conditions must be met for the link to be displayed:
</p>
<div>
<ul>
<li>User must be logged in.</li>
<li>User must not already belong to the group.</li>
<li>The group must exist.</li>
<li>The group must be set up to allow auto adds.</li>
</ul>
<p>
</div>
|,
lastUpdated => 1134856680,
lastUpdated => 1146679385,
},
};

View file

@ -14,27 +14,30 @@ our $I18N = {
'group delete body' => {
message => q|
<p><b>&#94;GroupDelete();</b><br />
Using this macro you can allow users to delete themselves from a group. The first parameter is the name of the group this user should be deleted from. The second parameter is a text string for the user to click on to delete themselves from this group. The third parameter allows you to specify the name of a template in the Macro/GroupDelete namespace to replace the default template. These variables are available in the template:</p>
<b>&#94;GroupDelete();</b><br />
Using this macro you can allow users to delete themselves from a group. The first parameter is the name of the group this user should be deleted from. The second parameter is a text string for the user to click on to delete themselves from this group. The third parameter allows you to specify the name of a template in the Macro/GroupDelete namespace to replace the default template. These variables are available in the template:
<p/>
<b>group.url</b><br />
<p><b>group.url</b><br />
The URL with the action to add the user to the group.
<p/>
<b>group.text</b><br />
The supplied text string for the user to click on.
</p>
<p>
<b>NOTE:</b> All these conditions must be met for the link to be displayed:
<p><b>group.text</b><br />
The supplied text string for the user to click on.
</p>
<p><b>NOTE:</b> All these conditions must be met for the link to be displayed:</p>
<div>
<ul>
<li>User must be logged in.</li>
<li>User must be a member of the group.</li>
<li>The group must exist.</li>
<li>The group must be set up to allow auto deletes.</li>
</ul>
</div>
|,
lastUpdated => 1134866717,
lastUpdated => 1146679429,
},
};

View file

@ -14,15 +14,13 @@ our $I18N = {
'group text body' => {
message => q|
<b>&#94;GroupText();</b><br />
<p><b>&#94;GroupText();</b><br />
Displays a small text message to the user if they belong to the specified group. And you can specify an alternate message to those who are not in the group.
<p>
<i>Example:</i> &#94;GroupText("Visitors","You need an account to do anything cool on this site!","We value our registered users!");
<p>
</p>
<p><i>Example:</i> &#94;GroupText("Visitors","You need an account to do anything cool on this site!","We value our registered users!");
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686292,
},
};

View file

@ -14,18 +14,19 @@ our $I18N = {
'home link body' => {
message => q|
<P><b>&#94;H; or &#94;H(); - Home Link</b><br />A link to the home page of this site. In addition you can change the link text by creating a macro like this <b>&#94;H("Go Home");</b>.
<P><b>NOTES:</b> You can also use the special case &#94;H(linkonly); to return only the URL to the home page and nothing more. Also, the .homeLink style sheet class is tied to this macro. And you can specify a second parameter that with the name of a template in the Macro/H_homeLink namespace that will override the default template. The following variables are available for use in the template:</P>
<p/>
<b>homeLink.url</b><br />
<p><b>&#94;H; or &#94;H(); - Home Link</b><br />A link to the home page of this site. In addition you can change the link text by creating a macro like this <b>&#94;H("Go Home");</b>.</p>
<p><b>NOTES:</b> You can also use the special case &#94;H(linkonly); to return only the URL to the home page and nothing more. Also, the .homeLink style sheet class is tied to this macro. And you can specify a second parameter that with the name of a template in the Macro/H_homeLink namespace that will override the default template. The following variables are available for use in the template:</p>
<p><b>homeLink.url</b><br />
The URL to the home page.
<p/>
<b>homeLink.text</b><br />
</p>
<p><b>homeLink.text</b><br />
The translated label for the link to the home page or the text that you supply to the macro.
<p/>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686357,
},
'47' => {

View file

@ -14,13 +14,11 @@ our $I18N = {
'user id body' => {
message => q|
<b>&#94;#; - User ID</b><br />
<p><b>&#94;#; - User ID</b><br />
The user id of the currently logged in user.
<p>
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686310,
},
};

View file

@ -29,15 +29,14 @@ our $I18N = {
'include body' => {
message => q|
<b>&#94;Include();</b><br />
<p><b>&#94;Include();</b><br />
Allows a content manager or administrator to include a file from the local filesystem.
<p/>
<i>Example:</i> &#94;Include("/this/file.html");
<p>
</p>
<p><i>Example:</i> &#94;Include("/this/file.html");
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686398,
},
};

View file

@ -14,15 +14,14 @@ our $I18N = {
'international body' => {
message => q|
<b>&#94;International();</b><br />
<p><b>&#94;International();</b><br />
Pull a translated message from the internationalization system.
<p/>
<i>Example:</i> &#94;International(45,"Article");
<p/>
</p>
<p><i>Example:</i> &#94;International(45,"Article");
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686421,
},
};

View file

@ -14,62 +14,75 @@ our $I18N = {
'login box body' => {
message => q|
<b>&#94;L; or &#94;L(); - Login Box</b><br />
<p><b>&#94;L; or &#94;L(); - Login Box</b><br />
A small login form. This macro takes up to three parameters. The first is used to set the width of the login box: &#94;L(20);. The second sets the message displayed after the user is logged in: &#94;L(20,"Hi &#94;a(&#94;@;);. Click %here% if you wanna log out!");. Text between percent signs (%) is replaced by a link to the logout operation. The third parameter is the ID of a template in the Macro/L_loginBox namespace to replace the default template. The variables below are
available in the template. Not all of them are required, but variables that will cause the macro to output code that doesn't function properly (like not actually log someone in) are marked with an asterisk '*'
<p/>
<b>user.isVisitor</b><br />
True if the user is a visitor.
<p/>
<b>customText</b><br />
The user defined text to display if the user is logged in.
<p/>
<b>hello.label</b><br />
Internationalized welcome message.
<p/>
<b>customText</b><br />
The text supplied to the macro to display if the user is logged in.
<p/>
<b>account.display.url</b><br />
URL to display the account.
<p/>
<b>logout.label</b><br />
Internationalized logout message.
<p/>
<b>* form.header</b><br />
Form header.
<p/>
<b>username.label</b><br />
Internationalized label for "username".
<p/>
<b>* username.form</b><br />
Form element for the username.
<p/>
<b>password.label</b><br />
Internationalized label for "password".
<p/>
<b>* password.form</b><br />
Form element for the password.
<p/>
<b>* form.login</b><br />
Action to perform when logging in.
<p/>
<b>account.create.url</b><br />
URL to create an account.
<p/>
<b>account.create.label</b><br />
Internationalized label for "create an account"
<p/>
<b>* form.footer</b><br />
Form footer.
<p/>
available in the template. Not all of them are required, but variables that will cause the macro to output code that doesn't function properly (like not actually log someone in) are marked with an asterisk '*'.</p>
<b>NOTE:</b> The .loginBox style sheet class is tied to this macro.
<p>
<p><b>user.isVisitor</b><br />
True if the user is a visitor.
</p>
<p><b>customText</b><br />
The user defined text to display if the user is logged in.
</p>
<p><b>hello.label</b><br />
Internationalized welcome message.
</p>
<p><b>customText</b><br />
The text supplied to the macro to display if the user is logged in.
</p>
<p><b>account.display.url</b><br />
URL to display the account.
</p>
<p><b>logout.label</b><br />
Internationalized logout message.
</p>
<p><b>* form.header</b><br />
Form header.
</p>
<p><b>username.label</b><br />
Internationalized label for "username".
</p>
<p><b>* username.form</b><br />
Form element for the username.
</p>
<p><b>password.label</b><br />
Internationalized label for "password".
</p>
<p><b>* password.form</b><br />
Form element for the password.
</p>
<p><b>* form.login</b><br />
Action to perform when logging in.
</p>
<p><b>account.create.url</b><br />
URL to create an account.
</p>
<p><b>account.create.label</b><br />
Internationalized label for "create an account"
</p>
<p><b>* form.footer</b><br />
Form footer.
</p>
<p><b>NOTE:</b> The .loginBox style sheet class is tied to this macro.
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686545,
},
'48' => {

View file

@ -19,16 +19,14 @@ our $I18N = {
'last modified body' => {
message => q|
<b>&#94;LastModified;</b><br />
<p><b>&#94;LastModified;</b><br />
<b>&#94;LastModified(<i>"text"</i>,<i>"date format"</i>);</b><br />
Displays the date that the current page was last modified based upon the wobjects on the page. By default, the date is displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the date macro, &#94;D;, for details.
<p>
<i>Example:</i> &#94;LastModified("Updated: ","%c %D, %y");
<p>
</p>
<p><i>Example:</i> &#94;LastModified("Updated: ","%c %D, %y");
</p>
|,
lastUpdated => 1112466919,
lastUpdated => 1146686444,
},
};

View file

@ -14,13 +14,11 @@ our $I18N = {
'company name body' => {
message => q|
<b>&#94;c;</b><br />
<p><b>&#94;c;</b><br />
The name of your company specified in the settings by your Administrator.
<p>
</p>
|,
lastUpdated => 1112374920,
lastUpdated => 1146679121,
},
};

View file

@ -14,11 +14,11 @@ our $I18N = {
'company email body' => {
message => q|
<b>&#94;e;</b><br />
<p><b>&#94;e;</b><br />
The email address for your company specified in the settings by your Administrator.
<p>
</p>
|,
lastUpdated => 1112466411,
lastUpdated => 1146679191,
},
};