$path
$path :
Template generation of theme
create_static_file(string $filename, string $name, string $customText = false) : void
Creates static file (e.g. 404, author, search, .
..)
| string | $filename | Only filename (extension .php is added automatically) |
| string | $name | Header of page |
| string | $customText | (optional) Custom text on page (actually only used for 404) |
create_from_template(string $filename, string $template, array $replace = false) : void
Creates file from template
| string | $filename | Only name of file we want to create (without extension) |
| string | $template | Relative path to template |
| array | $replace | (optional) Array of phrases to replace |
get_php_array(array $array, string $variable = false) : string
Array translated to nice output PHP array If is set $variable, this array will be wrapped with PHP variable of such name
| array | $array | Array you want to export |
| string | $variable | (optional) Name of variable, if you want to wrap it with variable |
PHP exported output of array
render_layout(string $type, string $customTitle = false, string $customContent = false) : string
Renders layout to generated file, so there is no need for plugin
| string | $type | Type of layout |
| string | $customTitle | Custom title, if is it static layout |
| string | $customContent | Custom content, if is it static layout |
Generated theme file content