string smarty_modifier_activeinactive(
string $string)
|
|
Smarty modifier to turn a boolean value into a suitable language string
Example
<!--[$myvar|activeinactive|pnvarprepfordisplay]--> returns Active if $myvar = 1 and Inactive if $myvar = 0
Tags:
Parameters
| string |
$string |
the contents to transform |