General Smarty

ONEsite uses the Smarty Templating language for rendering HTML entities. You can find out more information about standard smarty functions in the Smarty.net Documentation. ONEsite has created many custom functions and modifiers which can be found below.

Functions

Array

Builds a numeric array.

Assoc

Builds an associative array.

BladeRunner

Verifies the user has entered a captcha prior to seeing the page.

Cycle

Cycles through a list of values.

Dar

Prints an array readable format.

Header

Sends a command to the page header.

Mailer

Sends an email.

Set Cookie

Sets a cookie in the user’s browser.

WebService

Calls a web service via a REST curl call.

Modifiers

Standard PHP Functions

Standard PHP string functions can be used as modifiers.

Standard PHP array functions can also be used as modifiers, but must have an @ sign to target the array.

AnchorUrls

Searches a text variable and links the urls.

Capitalize

Capitalizes the first letter in a word.

ScrubProfanity

Scrubs the profanity from a text block.

StripTags

Strips html tags from a text block.

Global Variables

Page

The $PAGE variable contains information and methods relating to the pageload.