XHTML fixes
This commit is contained in:
parent
74245e689a
commit
2ce64ed9eb
10 changed files with 677 additions and 655 deletions
|
|
@ -7,153 +7,154 @@ our $I18N = {
|
|||
},
|
||||
|
||||
'add/edit post template body' => {
|
||||
message => q|In addition to the common Post Template variables, the Add/Edit Post Template has these variables:
|
||||
<p>
|
||||
! : This variable is required for the Post to function correctly.<p/>
|
||||
message => q|<p>In addition to the common Post Template variables, the Add/Edit Post Template has these variables:
|
||||
</p>
|
||||
<p>
|
||||
! : This variable is required for the Post to function correctly.
|
||||
</p>
|
||||
|
||||
<b>form.header</b> !<br />
|
||||
<p><b>form.header</b> !<br />
|
||||
Code required to start the form for the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isNewPost</b><br />
|
||||
<p><b>isNewPost</b><br />
|
||||
A conditional that is true if the user is adding a new Post, as opposed to
|
||||
editing an existing Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isReply</b><br />
|
||||
<p><b>isReply</b><br />
|
||||
A conditional that is true if the user is replying to an existing Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.title</b><br />
|
||||
<p><b>reply.title</b><br />
|
||||
The title of the Post that is being replied to.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.synopsis</b><br />
|
||||
<p><b>reply.synopsis</b><br />
|
||||
The synopsis of the Post that is being replied to.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.content</b><br />
|
||||
<p><b>reply.content</b><br />
|
||||
The content of the Post that is being replied to.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.userDefined<i>N</i></b><br />
|
||||
<p><b>reply.userDefined<i>N</i></b><br />
|
||||
The contents of user defined fields for the Post that is being replied to, where N is from 1 to 5.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>subscribe.form</b><br />
|
||||
<p><b>subscribe.form</b><br />
|
||||
A yes/no button to allow the user to subscribe to the thread this post belongs to.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isNewThread</b><br />
|
||||
<p><b>isNewThread</b><br />
|
||||
A conditional that is true if the user is adding a new thread.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>sticky.form</b><br />
|
||||
<p><b>sticky.form</b><br />
|
||||
A yes/no button to set the thread to be sticky, so that it stays at the top of the forum listing.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>lock.form</b><br />
|
||||
<p><b>lock.form</b><br />
|
||||
A yes/no button to lock the thread, so that no posts can be added or edited.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isThread</b><br />
|
||||
<p><b>isThread</b><br />
|
||||
A conditional that is true if the user is editing the main post for a thread, as opposed to
|
||||
a reply in the thread.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isEdit</b><br />
|
||||
<p><b>isEdit</b><br />
|
||||
A conditional that is true if the user is editing an existing post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>preview.title</b><br />
|
||||
<p><b>preview.title</b><br />
|
||||
The web safe title for previewing a post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>preview.synopsis</b><br />
|
||||
<p><b>preview.synopsis</b><br />
|
||||
The synopsis when previewing a post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>preview.content</b><br />
|
||||
<p><b>preview.content</b><br />
|
||||
The content when previewing a post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>preview.userDefined<i>N</i></b><br />
|
||||
<p><b>preview.userDefined<i>N</i></b><br />
|
||||
The contents of user defined fields for the Post without WebGUI Macros being processed, where N is from 1 to 5.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>form.footer</b> !<br />
|
||||
<p><b>form.footer</b> !<br />
|
||||
Code for the end of the form.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>usePreview</b> !<br />
|
||||
<p><b>usePreview</b> !<br />
|
||||
A conditional indicating that posts to the thread will be previewed before being submitted.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>user.isModerator</b><br />
|
||||
<p><b>user.isModerator</b><br />
|
||||
A conditional indicating if the current user is a moderator.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>user.isVisitor</b><br />
|
||||
<p><b>user.isVisitor</b><br />
|
||||
A conditional indicating if the current user is a visitor.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>visitorName.form</b><br />
|
||||
<p><b>visitorName.form</b><br />
|
||||
A form where the user can enter their name, even if they are a visitor.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>userDefined<i>N</i>.{form,form.yesNo,form.textarea,form.htmlarea,form.float}</b><br />
|
||||
<p><b>userDefined<i>N</i>.{form,form.yesNo,form.textarea,form.htmlarea,form.float}</b><br />
|
||||
For each of the 5 User Defined fields, which can be form widgets for a single line of text, a yes/no
|
||||
field, a text area, a WYSIWIG HTML area, or a float.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>title.form</b><br />
|
||||
<p><b>title.form</b><br />
|
||||
A 1-line text form field to enter or edit the title, stripped of all HTML and macros disabled.
|
||||
Use this <b>OR</b> title.form.textarea.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>title.form.textarea</b><br />
|
||||
<p><b>title.form.textarea</b><br />
|
||||
A text area field to enter or edit the title, stripped of all HTML and macros disabled.
|
||||
Use this <b>OR</b> title.form.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>synopsis.form</b><br />
|
||||
<p><b>synopsis.form</b><br />
|
||||
A form field to enter or edit the synopsis.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>content.form</b><br />
|
||||
<p><b>content.form</b><br />
|
||||
A field to enter or edit the content, with all macros disabled. If the discussion
|
||||
board allows rich content, then this will be a WYSIWIG HTML area. Otherwise it
|
||||
will be a plain text area.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>form.submit</b><br />
|
||||
<p><b>form.submit</b><br />
|
||||
A button to submit the post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>karmaScale.form</b><br />
|
||||
<p><b>karmaScale.form</b><br />
|
||||
A form element that allows moderators to set the scale of an individual thread. This is only available for threads.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>karmaIsEnabled</b><br />
|
||||
<p><b>karmaIsEnabled</b><br />
|
||||
A conditional that is true if karma has been enabled in the WebGUI settings in the Admin Console for this site.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>form.preview</b><br />
|
||||
<p><b>form.preview</b><br />
|
||||
A button to preview the post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>attachment.form</b><br />
|
||||
<p><b>attachment.form</b><br />
|
||||
Code to allow an attachment to be added to the post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>contentType.form</b><br />
|
||||
<p><b>contentType.form</b><br />
|
||||
A form field that will describe how the content of the post is formatted, HTML, text, code or mixed.
|
||||
Defaults to mixed.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1146505625,
|
||||
lastUpdated => 1146785107,
|
||||
},
|
||||
|
||||
'post template variables title' => {
|
||||
|
|
@ -162,225 +163,226 @@ Defaults to mixed.
|
|||
},
|
||||
|
||||
'post template variables body' => {
|
||||
message => q|The following variables are available in all Post templates. Internationalized labels
|
||||
message => q|<p>The following variables are available in all Post templates. Internationalized labels
|
||||
for the action URLs (reply, delete, etc.) are provided in the set of Collaboration Template labels.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>userId</b><br />
|
||||
<p><b>userId</b><br />
|
||||
The User ID of the owner of the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>user.isPoster</b><br />
|
||||
<p><b>user.isPoster</b><br />
|
||||
A conditional that is true if the current user is the owner of this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>avatar.url</b><br />
|
||||
<p><b>avatar.url</b><br />
|
||||
A URL to the avatar for the owner of the Post, if avatars are enabled in the parent
|
||||
Collaboration System and the user has an avatar.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>userProfile.url</b><br />
|
||||
<p><b>userProfile.url</b><br />
|
||||
A URL to the profile of the owner of the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>dateSubmitted.human</b><br />
|
||||
<p><b>dateSubmitted.human</b><br />
|
||||
The date that the post was sumbitted, in a readable format.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>dateUpdated.human</b><br />
|
||||
<p><b>dateUpdated.human</b><br />
|
||||
The date that the post was last updated, in a readable format.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>title.short</b><br />
|
||||
<p><b>title.short</b><br />
|
||||
The title of the Post, limited to 30 characters.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>content</b><br />
|
||||
<p><b>content</b><br />
|
||||
The content of the post, if a thread containing the Post exists.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>user.canEdit</b><br />
|
||||
<p><b>user.canEdit</b><br />
|
||||
A conditional that is true if the user is adding a new Post, as opposed to
|
||||
editing an existing Post, and a thread containing the Post exists.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>delete.url</b><br />
|
||||
<p><b>delete.url</b><br />
|
||||
A URL to delete this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>edit.url</b><br />
|
||||
<p><b>edit.url</b><br />
|
||||
A URL to edit this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>status</b><br />
|
||||
<p><b>status</b><br />
|
||||
The status of this Post: "Approved", "Pending" or "Archived".
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.url</b><br />
|
||||
<p><b>reply.url</b><br />
|
||||
The URL to reply to this Post without quoting it.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>reply.withQuote.url</b><br />
|
||||
<p><b>reply.withQuote.url</b><br />
|
||||
The URL to initiate a quoted reply to this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>url</b><br />
|
||||
<p><b>url</b><br />
|
||||
The URL for this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>rating.value</b><br />
|
||||
<p><b>rating.value</b><br />
|
||||
The current rating for this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>rate.url.thumbsUp</b><br />
|
||||
<p><b>rate.url.thumbsUp</b><br />
|
||||
A positive rating.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>rate.url.thumbsDown</b><br />
|
||||
<p><b>rate.url.thumbsDown</b><br />
|
||||
A negative rating.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>hasRated</b><br />
|
||||
<p><b>hasRated</b><br />
|
||||
A conditional that is true if the user has already rated this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>image.url</b><br />
|
||||
<p><b>image.url</b><br />
|
||||
The URL to the first image attached to the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>image.thumbnail</b><br />
|
||||
<p><b>image.thumbnail</b><br />
|
||||
A thumbnail for the image attached to the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>attachment.url</b><br />
|
||||
<p><b>attachment.url</b><br />
|
||||
The URL to download the first attachment attached to the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>attachment.icon</b><br />
|
||||
<p><b>attachment.icon</b><br />
|
||||
An icon showing the file type of this attachment.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>attachment.name</b><br />
|
||||
<p><b>attachment.name</b><br />
|
||||
The name of the first attachment found on the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>attachment_loop</b><br />
|
||||
<p><b>attachment_loop</b><br />
|
||||
A loop containing all file and image attachments to this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>url</b><br />
|
||||
<p><b>url</b><br />
|
||||
The URL to download this attachment.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>icon</b><br />
|
||||
<p><b>icon</b><br />
|
||||
The icon representing the file type of this attachment.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>filename</b><br />
|
||||
<p><b>filename</b><br />
|
||||
The name of this attachment.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>thumbnail</b><br />
|
||||
<p><b>thumbnail</b><br />
|
||||
A thumbnail of this attachment, if applicable.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isImage</b><br />
|
||||
<p><b>isImage</b><br />
|
||||
A conditional indicating whether this attachment is an image.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>storageId</b><br />
|
||||
<p><b>storageId</b><br />
|
||||
The Asset ID of the storage node for the Post, where the attachments are kept.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>threadId</b><br />
|
||||
<p><b>threadId</b><br />
|
||||
The ID of the thread that contains this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>dateSubmitted</b><br />
|
||||
<p><b>dateSubmitted</b><br />
|
||||
The date the Post was submitted, in epoch format.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>dateUpdated</b><br />
|
||||
<p><b>dateUpdated</b><br />
|
||||
The date the Post was last updated, in epoch format.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>username</b><br />
|
||||
<p><b>username</b><br />
|
||||
The name of the user who last updated or submitted the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>rating</b><br />
|
||||
<p><b>rating</b><br />
|
||||
Another name for <b>rating.value</b>
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>views</b><br />
|
||||
<p><b>views</b><br />
|
||||
The number of times that this post has been viewed.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>contentType</b><br />
|
||||
<p><b>contentType</b><br />
|
||||
The type of content in the post, typically "code", "text", "HTML", "mixed".
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>content</b><br />
|
||||
<p><b>content</b><br />
|
||||
The content, or body, of the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>title</b><br />
|
||||
<p><b>title</b><br />
|
||||
The title of the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>menuTitle</b><br />
|
||||
<p><b>menuTitle</b><br />
|
||||
The menu title of the Post, often used in navigation.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>synopsis</b><br />
|
||||
<p><b>synopsis</b><br />
|
||||
The synopsis of the Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>extraHeadTags</b><br />
|
||||
<p><b>extraHeadTags</b><br />
|
||||
Extra tags that the user requested by added to the HTML header.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>groupIdEdit</b><br />
|
||||
<p><b>groupIdEdit</b><br />
|
||||
The ID of the group with permission to edit this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>groupIdView</b><br />
|
||||
<p><b>groupIdView</b><br />
|
||||
The ID of the group with permission to view this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>ownerUserId</b><br />
|
||||
<p><b>ownerUserId</b><br />
|
||||
An alias for <b>userId</b>.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>assetSize</b><br />
|
||||
<p><b>assetSize</b><br />
|
||||
The formatted size of this Post.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isPackage</b><br />
|
||||
<p><b>isPackage</b><br />
|
||||
A conditional indicating whether this Post is a package.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isPrototype</b><br />
|
||||
<p><b>isPrototype</b><br />
|
||||
A conditional indicating whether this Post is a Content Prototype.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>isHidden</b><br />
|
||||
<p><b>isHidden</b><br />
|
||||
A conditional indicating whether this Post should be hidden from navigation.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>newWindow</b><br />
|
||||
<p><b>newWindow</b><br />
|
||||
A conditional indicating whether this Post should be opened in a new window.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>userDefined1, userDefined2, userDefined3, userDefined4, userDefined5</b><br />
|
||||
<p><b>userDefined1, userDefined2, userDefined3, userDefined4, userDefined5</b><br />
|
||||
You can use up to 5 user defined fields. The fields are
|
||||
called "userDefined1" through "userDefined5". In the
|
||||
Post Form template you can use those variables like
|
||||
this to collect data:
|
||||
</p>
|
||||
|
||||
<blockquote>
|
||||
<tmpl_var userDefined1.form> (text)<br />
|
||||
|
|
@ -395,13 +397,11 @@ this to collect data:
|
|||
|
||||
</blockquote>
|
||||
|
||||
Then in the Thread and Main CS templates you can call
|
||||
back the data with a simple <tmpl_var userDefined1>.
|
||||
|
||||
<p>
|
||||
<p>Then in the Thread and Main CS templates you can call
|
||||
back the data with a simple <tmpl_var userDefined1>.</p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1146505453,
|
||||
lastUpdated => 1146785175,
|
||||
},
|
||||
|
||||
'post received' => {
|
||||
|
|
@ -441,23 +441,23 @@ back the data with a simple <tmpl_var userDefined1>.
|
|||
},
|
||||
|
||||
'notification template body' => {
|
||||
message => q|In addition to the common Post Template variables, the Notification Template has these variables:
|
||||
<p>
|
||||
message => q|<p>In addition to the common Post Template variables, the Notification Template has these variables:
|
||||
<p/>
|
||||
|
||||
All variables from the Post Template Variables.
|
||||
<p>
|
||||
<p>All variables from the Post Template Variables.
|
||||
</p>
|
||||
|
||||
<b>url</b><br />
|
||||
<p><b>url</b><br />
|
||||
The URL to the post that triggered the notification.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<b>notification.subscription.message</b><br />
|
||||
<p><b>notification.subscription.message</b><br />
|
||||
Internationalized message that a new message has been posted to a thread that the
|
||||
user subscribed to.
|
||||
<p>
|
||||
</p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1146505593,
|
||||
lastUpdated => 1146785190,
|
||||
},
|
||||
|
||||
'875' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue