Function getTemplateContent
Get html or txt template. If no data is specified, return content (to eval later). Otherwise replace variables with data and return eval'ed content
Always available variables are: $user from globals and $name, $surename, $nickname of $user $sitename $modulename They will be overwritten by variables of $data.
Parameters summary
string |
$template |
$template, may include an folder like email/filename |
string |
$module |
|
array |
$data = false |
$data; default: false |
string |
$type = 'html' |
$type; default: html, txt or any other file extension |
|
$language = null |