Pull details for a specific template to help support editing
Signature
public function templateInfo(int
$tid,
[string
$type = 'user'] )
Parameters
$tid
—
int
the template id - get from templates()
$type
—
string
optional the template type to load - one of 'user', 'gallery', 'base', defaults to user.
Returns
array
an array of info to be used when editing array default_content the default content broken down into the named editable sections for the template - dependant upon template, so not documented
array sections the valid editable section names - dependant upon template, so not documented
string source the full source of the template as if you exported it via our template editor
string preview similar to the source, but the rendered version of the source from our popup preview