mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
Doc blocks added, available templates may be set in the general configuration file
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user