User's Manual

Functions are of two kinds: block functions, which have a beginning and ending tag enclosing the text operated
on by the function, and template functions, which have just a single tag and do not enclose text.
To use a function, enclose the function name in curly braces { } and provide any attributes that may be
required for the function. Block functions also require a closing tag.
dump
{dump var=$value}
Smarty registered template function. Displays the value of a variable.
Use the following Smarty syntax to print a variable’s contents:
{dump var=$var_to_dump export=html}
The contents of the variable are printed in a <pre> block. Use the attribute export=1” to use PHP’s var_
export() format, or omit this attribute to get the default behavior – PHP’s var_dump() format.
Use the attribute “html=1” to escape any HTML special characters in the content. This can also be done with
attribute “export=html”, and is recommended for use in most situations (so that any embedded HTML is not
interpreted by the browser).
nwa_commandlink
{nwa_commandlink} … {/nwa_commandlink}
Smarty registered block function. Generates a command link” consisting of an icon, main text and explanatory
text.
Command links are block elements and are roughly the equivalent of a form button. A command link is
typically used to represent a choice the user should make to proceed. The command link contains an icon,
command text (that sums up the action taken by the command link), and any explanatory text needed for the
command.
Usage example:
{nwa_commandlink icon="images" command="Command Link" linkwidth="400"
commandclass="nwaImportant" text="This is a sentence explaining the command."
textclass="nwaInfo"}link_here.php{/nwa_commandlink}
l The icon” parameter is the SRC to the image of the icon. This should normally be a relative path.
l The command” parameter is the main text of the command link.
l The text” parameter is the explanatory text describing the action that lies behind the command link. (This is
optional.)
l The linkwidth” parameter, if specified, indicates the width of the command link in pixels. This should be at
least 250; the recommended value is 400.
l The width” and height” parameters, if specified, provide the dimensions of the icon to display. If not
specified, this is automatically determined from the image.
l The onclick” parameter, if specified, provides the contents for the onclick attribute of the link.
l The commandclass” parameter, if specified, sets the class attribute of the DIV element enclosing the
command text. The default class is nwaImportant”.
l The textclass” parameter, if specified, sets the class attribute of the P element enclosing the command link’s
descriptive text. The default class is “nwaInfo”.
l The alt” parameter, if specified, sets the ALT attribute of the command link’s icon. If not specified, the
default alt text used is the command text.
Dell Networking W-ClearPass Guest 6.4 | User Guide Reference | 483