SAAS-939: Add option to preferences to display login button on radio page
Change option to ON by default
This commit is contained in:
parent
0601bd675e
commit
670395bb2e
2 changed files with 10 additions and 2 deletions
|
@ -143,9 +143,13 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
'Errors',
|
||||
'Label'
|
||||
));
|
||||
$displayRadioPageLoginButtonValue = Application_Model_Preference::getRadioPageDisplayLoginButton();
|
||||
if ($displayRadioPageLoginButtonValue == "") {
|
||||
$displayRadioPageLoginButtonValue = true;
|
||||
}
|
||||
$radioPageLoginButton->addDecorator('Label', array("class" => "enable-tunein"));
|
||||
$radioPageLoginButton->setLabel(_("Display login button on your Radio Page?"));
|
||||
$radioPageLoginButton->setValue(Application_Model_Preference::getRadioPageDisplayLoginButton());
|
||||
$radioPageLoginButton->setValue($displayRadioPageLoginButtonValue);
|
||||
$this->addElement($radioPageLoginButton);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue