1.15 kiriwrite_template_add

kiriwrite_template_add adds a template to the template database. If no confirm value is given then it will write a form for adding a template.

kiriwrite_template_add will return data that is intended for kiriwrite_output_page.

Parameters:

kiriwrite_template_add(filename, name, description, layout, confirm);

Usage:

$pagedata = kiriwrite_template_add();
$pagedata = kiriwrite_template_add("template.html", "Template Filename", "Template Description", "This is the template layout, blah, blah, blah", 1);

filename
Specifies the filename of the new template. This is required when adding a template.

name
Specifies the name of the new template. This is required when adding a template.

description
Specifies the description of the new template. This is required when adding a template.

layout
Specifies the layout of the new template. This is required when adding a template.

confirm
Specifies if the action to add a template should be confirmed by passing a '1'.