Theme
class Theme (View source)
Attire Theme Class
Traits
Constants
MAIN_NAMESPACE |
Identifier of the main namespace. |
MAIN_THEMENAME |
Identifier of the main theme name. |
Methods
Check if the file have a valid extension.
Class constructor.
Get Namespace.
Get main theme path.
Get theme name.
Set the theme name.
Set theme default path (without name).
Get theme default path.
Set the master template.
Get the current template.
Set a new layout.
Get the current layout.
Disable the theme.
Check if the theme is disabled.
Details
static bool
rtrim(string $path, string $delimiter = '/')
Right trim a file path.
static bool
isValidFileExtension(string $ext)
Check if the file have a valid extension.
at line 89
__construct(array $options = [])
Class constructor.
at line 109
static string
getNamespace()
Get Namespace.
at line 119
static string
getMainThemePath()
Get main theme path.
at line 133
static string
getName()
Get theme name.
at line 143
static
setName(string $name)
Set the theme name.
at line 157
static
setPath(string $path)
Set theme default path (without name).
at line 178
static string
getPath()
Get theme default path.
at line 193
static
setTemplate(string $template)
Set the master template.
at line 209
static string|bool
getTemplate()
Get the current template.
at line 222
static
setLayout(string $layout)
Set a new layout.
at line 248
static string|bool
getLayout()
Get the current layout.
at line 256
static
disable($flag = true)
Disable the theme.
at line 266
static bool
isDisabled()
Check if the theme is disabled.