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
|
@ -27,7 +27,11 @@ class IndexController extends Zend_Controller_Action
|
|||
|
||||
$this->view->stationUrl = Application_Common_HTTPHelper::getStationUrl();
|
||||
|
||||
$this->view->displayLoginButton = Application_Model_Preference::getRadioPageDisplayLoginButton();
|
||||
$displayRadioPageLoginButtonValue = Application_Model_Preference::getRadioPageDisplayLoginButton();
|
||||
if ($displayRadioPageLoginButtonValue == "") {
|
||||
$displayRadioPageLoginButtonValue = true;
|
||||
}
|
||||
$this->view->displayLoginButton = $displayRadioPageLoginButtonValue;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue