mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-23 07:06:18 +05:30
Fix available templates configuration and adding custom themes
This commit is contained in:
parent
ebb9e231aa
commit
9221629d8d
4 changed files with 24 additions and 25 deletions
|
|
@ -47,6 +47,16 @@ class Configuration
|
|||
'sizelimit' => 10485760,
|
||||
'templateselection' => false,
|
||||
'template' => 'bootstrap',
|
||||
'availabletemplates' => array(
|
||||
'bootstrap5',
|
||||
'bootstrap',
|
||||
'bootstrap-page',
|
||||
'bootstrap-dark',
|
||||
'bootstrap-dark-page',
|
||||
'bootstrap-compact',
|
||||
'bootstrap-compact-page',
|
||||
'page',
|
||||
),
|
||||
'info' => 'More information on the <a href=\'https://privatebin.info/\'>project page</a>.',
|
||||
'notice' => '',
|
||||
'languageselection' => false,
|
||||
|
|
@ -78,16 +88,6 @@ class Configuration
|
|||
'syntaxhighlighting' => 'Source Code',
|
||||
'markdown' => 'Markdown',
|
||||
),
|
||||
'available_templates' => array(
|
||||
'bootstrap5',
|
||||
'bootstrap',
|
||||
'bootstrap-page',
|
||||
'bootstrap-dark',
|
||||
'bootstrap-dark-page',
|
||||
'bootstrap-compact',
|
||||
'bootstrap-compact-page',
|
||||
'page',
|
||||
),
|
||||
'traffic' => array(
|
||||
'limit' => 10,
|
||||
'header' => '',
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ class Controller
|
|||
{
|
||||
$this->_conf = new Configuration;
|
||||
|
||||
$templates = $this->_conf->getSection('available_templates');
|
||||
$templates = $this->_conf->getKey('availabletemplates');
|
||||
$template = $this->_conf->getKey('template');
|
||||
TemplateSwitcher::setAvailableTemplates($templates);
|
||||
TemplateSwitcher::setTemplateFallback($template);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue