string smarty_function_pnml(
array $params, object &$smarty, string 2, string 3)
|
|
Smarty function to read a Zikula language constant.
This function takes a identifier and returns the corresponding language constant.
Available parameters:
- name: Name of the language constant to return
- html: Treat the language define as HTML
- assign: If set, the results are assigned to the corresponding variable instead of printed out
- noprocess If set, no processing is applied to the constant value
- escapeForScript If set, escape output for using in JavaScript single quotes string
- * All remaining parameters are used as string replacements
Example _EXAMPLESTRING = 'Hello World' <!--[pnml name="_EXAMPLESTRING"]--> returns Hello World
_EXAMPLESTRING = 'There are %u% users online'; $usersonline = 10 <!--[pnml name=_EXAMPLESTRING u=$usersonline]--> returns There are 10 users online
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| string |
2 |
assign The smarty variable to assign the resulting menu HTML to |
| string |
3 |
noprocess If set the resulting string constant is not processed |