string smartyResource(
array
$params, string
$text, Smarty
&$smarty)
|
|
Smarty block function for resources
Transforms {r type=css plugin=myplugin}toto.css{/r} to myplugin/css/toto.css or currentproject/myplugin/css/toto.css .
Tags:
Parameters:
string smartyTranslate(
array
$params, string
$text, Smarty
&$smarty)
|
|
Smarty block function, provides gettext support for Smarty
Original code was written by Sagi Bashari <sagi@boom.org.il>
The block content is the text that should be translated. Any parameter that is sent to the function will be represented as %n in the translation text, where n is 1 for the first parameter. The following parameters are reserved:
- 'html' for HTML escaping, this is the default.
- 'js' for javascript escaping.
- plural - The plural version of the text (2nd parameter of ngettext())
- count - The item count for plural mode (3rd parameter of ngettext())
Tags:
Parameters:
string strarg(
string
$str, mixed
1)
|
|
Replace arguments in a string with their values
Arguments are represented by % followed by their number. Original code was written by Sagi Bashari <sagi@boom.org.il>
Tags:
Parameters:
string _get_compile_path(
string
$resource_name)
|
|
Overrides Smarty's resource compile path
Updates template dir to point to the right project and insert a compile id to have one cache file per project and per template.
Tags:
Parameters: