mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Branding: User logo / logo title
This commit is contained in:
parent
56a11e5833
commit
86295f6e5b
11 changed files with 92 additions and 28 deletions
|
|
@ -1299,6 +1299,7 @@ class Actions
|
|||
'LoginBackground' => '',
|
||||
'LoginCss' => '',
|
||||
'UserLogo' => '',
|
||||
'UserLogoTitle' => '',
|
||||
'UserCss' => '',
|
||||
'WelcomePageUrl' => '',
|
||||
'WelcomePageDisplay' => 'none',
|
||||
|
|
@ -1390,6 +1391,7 @@ class Actions
|
|||
$aResult['LoginDescription'] = $oConfig->Get('branding', 'login_desc', '');
|
||||
$aResult['LoginPowered'] = !!$oConfig->Get('branding', 'login_powered', true);
|
||||
$aResult['UserLogo'] = $oConfig->Get('branding', 'user_logo', '');
|
||||
$aResult['UserLogoTitle'] = $oConfig->Get('branding', 'user_logo_title', '');
|
||||
$aResult['UserCss'] = $oConfig->Get('branding', 'user_css', '');
|
||||
$aResult['WelcomePageUrl'] = $oConfig->Get('branding', 'welcome_page_url', '');
|
||||
$aResult['WelcomePageDisplay'] = \strtolower($oConfig->Get('branding', 'welcome_page_display', 'none'));
|
||||
|
|
@ -3531,7 +3533,7 @@ class Actions
|
|||
|
||||
if ($this->HasOneOfActionParams(array(
|
||||
'LoginLogo', 'LoginBackground', 'LoginDescription', 'LoginCss', 'LoginPowered',
|
||||
'UserLogo', 'UserCss',
|
||||
'UserLogo', 'UserLogoTitle', 'UserCss',
|
||||
'WelcomePageUrl', 'WelcomePageDisplay'
|
||||
)) && $this->PremType())
|
||||
{
|
||||
|
|
@ -3542,6 +3544,7 @@ class Actions
|
|||
$this->setConfigFromParams($oConfig, 'LoginPowered', 'branding', 'login_powered', 'bool');
|
||||
|
||||
$this->setConfigFromParams($oConfig, 'UserLogo', 'branding', 'user_logo', 'string');
|
||||
$this->setConfigFromParams($oConfig, 'UserLogoTitle', 'branding', 'user_logo_title', 'string');
|
||||
$this->setConfigFromParams($oConfig, 'UserCss', 'branding', 'user_css', 'string');
|
||||
|
||||
$this->setConfigFromParams($oConfig, 'WelcomePageUrl', 'branding', 'welcome_page_url', 'string');
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ class Application extends \RainLoop\Config\AbstractConfig
|
|||
'login_css' => array(''),
|
||||
'login_powered' => array(true),
|
||||
'user_logo' => array(''),
|
||||
'user_logo_title' => array(''),
|
||||
'user_css' => array(''),
|
||||
'welcome_page_url' => array(''),
|
||||
'welcome_page_display' => array('none')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue