|
|
@@ -440,6 +440,38 @@ class Organizr
|
|
|
return (isset($errorCodes[$error])) ? $errorCodes[$error] : $errorCodes[000];
|
|
|
}
|
|
|
|
|
|
+ public function showTopBarHamburger()
|
|
|
+ {
|
|
|
+ if ($this->config['allowCollapsableSideMenu']) {
|
|
|
+ if ($this->config['sideMenuCollapsed']) {
|
|
|
+ return '<a class="toggle-side-menu" href="javascript:void(0)"><i class="ti-menu fa-fw"></i></a>';
|
|
|
+ } else {
|
|
|
+ return '<a class="toggle-side-menu hidden" href="javascript:void(0)"><i class="ti-menu fa-fw"></i></a>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+
|
|
|
+ public function showSideBarHamburger()
|
|
|
+ {
|
|
|
+ if ($this->config['allowCollapsableSideMenu']) {
|
|
|
+ if (!$this->config['sideMenuCollapsed']) {
|
|
|
+ return '<i class="hidden-xs ti-shift-left mouse"></i>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return '<i class="ti-menu hidden-xs"></i>';
|
|
|
+ }
|
|
|
+
|
|
|
+ public function showSideBarText()
|
|
|
+ {
|
|
|
+ if ($this->config['allowCollapsableSideMenu']) {
|
|
|
+ if (!$this->config['sideMenuCollapsed']) {
|
|
|
+ return '<span class="hide-menu hidden-xs" lang="en">Hide Menu</span>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return '<span class="hide-menu hidden-xs" lang="en">Navigation</span>';
|
|
|
+ }
|
|
|
+
|
|
|
public function auth()
|
|
|
{
|
|
|
if ($this->hasDB()) {
|
|
|
@@ -1777,46 +1809,9 @@ class Organizr
|
|
|
'help' => 'Used to set the description for SEO meta tags'
|
|
|
),
|
|
|
),
|
|
|
- 'Login Page' => array(
|
|
|
- array(
|
|
|
- 'type' => 'input',
|
|
|
- 'name' => 'loginLogo',
|
|
|
- 'label' => 'Login Logo',
|
|
|
- 'value' => $this->config['loginLogo'],
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'type' => 'input',
|
|
|
- 'name' => 'loginWallpaper',
|
|
|
- 'label' => 'Login Wallpaper',
|
|
|
- 'value' => $this->config['loginWallpaper'],
|
|
|
- 'help' => 'You may enter multiple URL\'s using the CSV format. i.e. link#1,link#2,link#3'
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'type' => 'switch',
|
|
|
- 'name' => 'useLogoLogin',
|
|
|
- 'label' => 'Use Logo instead of Title on Login Page',
|
|
|
- 'value' => $this->config['useLogoLogin']
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'type' => 'switch',
|
|
|
- 'name' => 'minimalLoginScreen',
|
|
|
- 'label' => 'Minimal Login Screen',
|
|
|
- 'value' => $this->config['minimalLoginScreen']
|
|
|
- )
|
|
|
- ),
|
|
|
- 'Options' => array(
|
|
|
- array(
|
|
|
- 'type' => 'switch',
|
|
|
- 'name' => 'alternateHomepageHeaders',
|
|
|
- 'label' => 'Alternate Homepage Titles',
|
|
|
- 'value' => $this->config['alternateHomepageHeaders']
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'type' => 'switch',
|
|
|
- 'name' => 'debugErrors',
|
|
|
- 'label' => 'Show Debug Errors',
|
|
|
- 'value' => $this->config['debugErrors']
|
|
|
- ),
|
|
|
+ 'Side Menu' => array(
|
|
|
+ $this->settingsOption('switch', 'allowCollapsableSideMenu', ['label' => 'Allow Side Menu to be Collapsable']),
|
|
|
+ $this->settingsOption('switch', 'sideMenuCollapsed', ['label' => 'Side Menu Collapsed at Launch']),
|
|
|
array(
|
|
|
'type' => 'switch',
|
|
|
'name' => 'githubMenuLink',
|
|
|
@@ -1847,12 +1842,6 @@ class Organizr
|
|
|
'label' => 'Show Organizr Sign out & in Button on Sidebar',
|
|
|
'value' => $this->config['organizrSignoutMenuLink']
|
|
|
),
|
|
|
- array(
|
|
|
- 'type' => 'switch',
|
|
|
- 'name' => 'easterEggs',
|
|
|
- 'label' => 'Show Easter Eggs',
|
|
|
- 'value' => $this->config['easterEggs']
|
|
|
- ),
|
|
|
array(
|
|
|
'type' => 'switch',
|
|
|
'name' => 'expandCategoriesByDefault',
|
|
|
@@ -1887,6 +1876,53 @@ class Organizr
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
+ ),
|
|
|
+ 'Login Page' => array(
|
|
|
+ array(
|
|
|
+ 'type' => 'input',
|
|
|
+ 'name' => 'loginLogo',
|
|
|
+ 'label' => 'Login Logo',
|
|
|
+ 'value' => $this->config['loginLogo'],
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'type' => 'input',
|
|
|
+ 'name' => 'loginWallpaper',
|
|
|
+ 'label' => 'Login Wallpaper',
|
|
|
+ 'value' => $this->config['loginWallpaper'],
|
|
|
+ 'help' => 'You may enter multiple URL\'s using the CSV format. i.e. link#1,link#2,link#3'
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'name' => 'useLogoLogin',
|
|
|
+ 'label' => 'Use Logo instead of Title on Login Page',
|
|
|
+ 'value' => $this->config['useLogoLogin']
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'name' => 'minimalLoginScreen',
|
|
|
+ 'label' => 'Minimal Login Screen',
|
|
|
+ 'value' => $this->config['minimalLoginScreen']
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'Options' => array(
|
|
|
+ array(
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'name' => 'alternateHomepageHeaders',
|
|
|
+ 'label' => 'Alternate Homepage Titles',
|
|
|
+ 'value' => $this->config['alternateHomepageHeaders']
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'name' => 'debugErrors',
|
|
|
+ 'label' => 'Show Debug Errors',
|
|
|
+ 'value' => $this->config['debugErrors']
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'name' => 'easterEggs',
|
|
|
+ 'label' => 'Show Easter Eggs',
|
|
|
+ 'value' => $this->config['easterEggs']
|
|
|
+ ),
|
|
|
array(
|
|
|
'type' => 'input',
|
|
|
'name' => 'gaTrackingID',
|
|
|
@@ -4323,7 +4359,8 @@ class Organizr
|
|
|
'sandbox' => $this->config['sandbox'],
|
|
|
'expandCategoriesByDefault' => $this->config['expandCategoriesByDefault'],
|
|
|
'autoCollapseCategories' => $this->config['autoCollapseCategories'],
|
|
|
- 'autoExpandNavBar' => $this->config['autoExpandNavBar']
|
|
|
+ 'autoExpandNavBar' => $this->config['autoExpandNavBar'],
|
|
|
+ 'sideMenuCollapsed' => $this->config['allowCollapsableSideMenu'] && $this->config['sideMenuCollapsed']
|
|
|
),
|
|
|
'menuLink' => array(
|
|
|
'githubMenuLink' => $this->config['githubMenuLink'],
|