Set bootstrap5 template as default

This commit is contained in:
Ribas160 2025-07-19 13:24:37 +03:00
parent c1050e08e8
commit 07ba4f179d
4 changed files with 8 additions and 8 deletions

View file

@ -81,7 +81,7 @@ file](https://github.com/PrivateBin/PrivateBin/wiki/Configuration):
* File upload support, image, media and PDF preview (disabled by default, size
limit adjustable)
* Templates: By default there are bootstrap CSS, darkstrap and "classic ZeroBin"
* Templates: By default there are bootstrap5, bootstrap CSS and darkstrap
to choose from and it is easy to adapt these to your own websites layout or
create your own.

View file

@ -42,7 +42,7 @@ defaultformatter = "plaintext"
; size limit per paste or comment in bytes, defaults to 10 Mebibytes
sizelimit = 10485760
; by default PrivateBin use "bootstrap" template (tpl/bootstrap.php).
; by default PrivateBin use "bootstrap5" template (tpl/bootstrap5.php).
; Optionally you can enable the template selection menu, which uses
; a session cookie to store the choice until the browser is closed.
templateselection = false
@ -56,12 +56,12 @@ availabletemplates[] = "bootstrap-dark-page"
availabletemplates[] = "bootstrap-compact"
availabletemplates[] = "bootstrap-compact-page"
; set the template your installs defaults to, defaults to "bootstrap" (tpl/bootstrap.php), also
; bootstrap variants: "bootstrap-dark", "bootstrap-compact", "bootstrap-page",
; set the template your installs defaults to, defaults to "bootstrap5" (tpl/bootstrap5.php), also
; bootstrap template (tpl/bootstrap.php) and it's variants: "bootstrap-dark", "bootstrap-compact", "bootstrap-page",
; which can be combined with "-dark" and "-compact" for "bootstrap-dark-page",
; "bootstrap-compact-page" and finally "bootstrap5" (tpl/bootstrap5.php) - previews at:
; "bootstrap-compact-page" - previews at:
; https://privatebin.info/screenshots.html
; template = "bootstrap"
; template = "bootstrap5"
; (optional) info text to display
; use single, instead of double quotes for HTML attributes

View file

@ -46,7 +46,7 @@ class Configuration
'syntaxhighlightingtheme' => '',
'sizelimit' => 10485760,
'templateselection' => false,
'template' => 'bootstrap',
'template' => 'bootstrap5',
'availabletemplates' => array(
'bootstrap5',
'bootstrap',

View file

@ -25,7 +25,7 @@ class TemplateSwitcher
* @static
* @var string
*/
protected static $_templateFallback = 'bootstrap';
protected static $_templateFallback = 'bootstrap5';
/**
* available templates