Theme
in package
Table of Contents
Constants
- MAIN_TEMPLATE = 'templates/template'
Methods
- decor() : array<string|int, mixed>
- The function "decor" generates HTML code for a menu based on the provided menu array and level.
- fileExists() : bool
- Checks if a specified file exists within multiple paths.
- printSubmenu() : string
- printSubMenu
- render() : string|null
- path -> template wrapper (::template) -> template content (::content file)
- render_bare() : string
- template and data array as input and returns the rendered output as a string in plain text format.
Constants
MAIN_TEMPLATE
public
mixed
MAIN_TEMPLATE
= 'templates/template'
Methods
decor()
The function "decor" generates HTML code for a menu based on the provided menu array and level.
public
decor(array<string|int, mixed>|null $menu, int $level) : array<string|int, mixed>
Parameters
- $menu : array<string|int, mixed>|null
- $level : int
Return values
array<string|int, mixed>fileExists()
Checks if a specified file exists within multiple paths.
public
fileExists(string $file) : bool
Parameters
- $file : string
Return values
bool —returns a boolean value (true or false) based on whether the specified
file exists in any of the paths derived from the ['UI'] configuration.
printSubmenu()
printSubMenu
public
printSubmenu(array<string|int, mixed> $menu, int $level, string $group) : string
Parameters
- $menu : array<string|int, mixed>
- $level : int
- $group : string
Return values
stringrender()
path -> template wrapper (::template) -> template content (::content file)
public
render(string $url[, string $mime = 'text/html' ][, array<string|int, mixed> $hive = NULL ][, int $ttl = 0 ]) : string|null
Example: path: front template: template (if using default), blank (if have custom template) content: front
Parameters
- $url : string
- $mime : string = 'text/html'
- $hive : array<string|int, mixed> = NULL
- $ttl : int = 0
Return values
string|nullrender_bare()
template and data array as input and returns the rendered output as a string in plain text format.
public
render_bare(string $template, array<string|int, mixed> $data) : string
Parameters
- $template : string
- $data : array<string|int, mixed>