Doc blocks added, available templates may be set in the general configuration file

This commit is contained in:
ribas160
2025-02-08 14:31:09 +02:00
parent c7a4ced9e1
commit a4b0a993c7
4 changed files with 46 additions and 11 deletions
+15 -9
View File
@@ -36,14 +36,20 @@ class TemplateSwitcher {
* @static
* @var array
*/
protected static $_availableTemplates = [
'page',
'bootstrap',
'bootstrap-compact',
'bootstrap-dark',
'bootstrap-page',
'bootstrap5',
];
protected static $_availableTemplates = array();
/**
* set available templates
*
* @access public
* @static
* @param array $templates
*/
public static function setAvailableTemplates(array $templates)
{
self::$_availableTemplates = $templates;
}
/**
* set the default template
@@ -101,7 +107,7 @@ class TemplateSwitcher {
*
* @access private
* @static
* @return string
* @return string|null
*/
private static function getSelectedByUserTemplate(): ?string
{