Templates

BitOwl Application Suit's templates are interpreted on the fly and can be edited by any text editor.   Also BitOwl Application Suit has the ability to include other templates (passing the given information) with the syntax {template filename}.   (Filename should not contain the .html extension.) You can also check to see if a value is a space with {if-exists value, HTML /}.   This is useful for gallery-image-list.html. Optionally you can also specify a different return value if the value is a space with {if-exists-else value, HTML, ELSE_HTML /}.   The template's directory can be referenced with {template-directory}.

News

Key Word Description
news-item.html
{author} Returns the name of the author of the news item.
{category-list} Returns a linked list of all the categories the news item is a part of.
{date} Returns the date in the format specified in the config.
{message} Returns the message of the news item.
{title} Returns the title of the news item.
{author-avatar} Returns the author's avatar url. Be sure to enclose in a if-exists otherwise if the user changes his/her name it will become a broken image.
{category-avatar} Returns the category's avatar url.
{item-link} URL to the items comment page.
news-comment-item.html
{author} Returns the author of the comment's name.
{date} Returns the date in the format specified in the config.
{author-email} Returns the email address if supplied. Not recommended for use since some don't like their email's published. Can be used with if-exists to link the email if supplied.
{message} Returns the comments message.
news-comment-form.html
{comment-form} Fills in the <form> tag.
{name-field} Fills in the <input> tag for the commenter's name.
{email-field} Fills in the <input> tag for the commenter's email.
{comment-field} Fills in the <textarea> tag for the commenter's comment.
{submit} Fills in the <input> tag for the submit button.
news-pages.html
{previous-page} URL to previous page.
{next-page} URL to next page.
{linked-list} Full list of pages.
{truncated-list} Partial list of pages.

Poll

Key Word Description
poll-vote.html
{poll-question} Returns the question of the poll.
{poll-options} Returns all of the poll options.
{poll-submit} Fills in the <input> tag for the cast vote button.
{results-link} Returns the url to the results.
poll-option.html
{poll-option-name} Returns the option text.
{poll-option} Fills in the <input> tag for a poll option radio button.
{poll-special} Fills in the <input> tag for a special option 2nd input.
{special HTML /} Returns the provided html only if it is a special option.
poll-result.html
{poll-question} Returns the question of the poll.
{poll-options-result} Returns the poll options in result format.
poll-option-result.html
{poll-option-name} Returns the option text.
{poll-option-percent} Returns the percentage of votes.

Gallery

Key Word Description
gallery-index.html
{album-trace} Returns the path to the image (includes image description).
{album-statistics} Returns album or gallery statistics.
{gallery-name} Returns gallery name.
{gallery-description} Returns the gallery's description.
{list-images} Returns the processed form of gallery-image-list.html.
{pages} Returns a linked line of page numbers.
{root HTML /} Returns the provided html only if no album is selected.
{album HTML /} Opposite of {root /}
gallery-album.html
{image-file} Returns the filename of the image. Use with <img> tag to display the image.
{image-width} and {image-height} Returns a dimension of the image in pixels.
{album-link} Returns a link to the album.
{album-name} Returns the name of the album.
{album-description} Returns the description of the album.
{image-exists HTML /} Returns the provided html only if there is an image, else it returns No Image.
gallery-image.html
{album-name} Returns the name of the album in which the image is located.
{album-trace} Returns the path to the image (includes image description).
{image-description} Returns the description of the image.
{image-file} Returns the filename of the image. Use with <img> tag to display the image.
{previous-exists HTML /} Displays the html provided only if there is a image before the currently viewed.
{next-exists HTML /} Displays the html provided only ig there is a image after the currently viewed.
{previous-link} Link to image before the current.
{next-link} Link to image after the current.
gallery-image-list.html
{image-file x} Returns the file path of the image x (starts at 0).
{image-link x} Returns the link to the image x.
{image-width x } Returns the width of the image x.
{image-height x } Returns the height of the image x.
{album-name} Returns the album name.

Examples

Including mytemplate.html

{template mytemplate.html}

if-exists Example

{if-exists {image-file 0}, <a href="{image-link 0}"><img src="{image-file 0}" 
width="{image-width 0}" height="{image-height 0}" /></a> /}
Back to Index