2010-12-07 20:19:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class IndexController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
2012-07-11 00:53:06 +02:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
2015-04-21 17:26:48 +02:00
|
|
|
$CC_CONFIG = Config::getConfig();
|
|
|
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
2015-10-14 21:15:25 +02:00
|
|
|
$this->view->headScript()->appendFile($baseUrl . 'js/libs/jquery-1.8.3.min.js?' . $CC_CONFIG['airtime_version'], 'text/javascript')
|
|
|
|
->appendFile($baseUrl . 'js/i18n/jquery.i18n.js?' . $CC_CONFIG['airtime_version'], 'text/javascript')
|
|
|
|
->appendFile($baseUrl . 'locale/general-translation-table?' . $CC_CONFIG['airtime_version'], 'text/javascript')
|
|
|
|
->appendScript("$.i18n.setDictionary(general_dict)")
|
|
|
|
->appendScript("var baseUrl='$baseUrl'");
|
|
|
|
|
2015-06-10 17:13:03 +02:00
|
|
|
$this->view->headLink()->setStylesheet($baseUrl.'css/radio-page/radio-page.css?'.$CC_CONFIG['airtime_version']);
|
2015-06-04 18:00:23 +02:00
|
|
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/embed/weekly-schedule-widget.css?'.$CC_CONFIG['airtime_version']);
|
2015-05-27 19:50:25 +02:00
|
|
|
|
2015-05-15 15:01:20 +02:00
|
|
|
$this->_helper->layout->setLayout('radio-page');
|
2015-04-21 17:26:48 +02:00
|
|
|
|
|
|
|
$this->view->stationLogo = Application_Model_Preference::GetStationLogo();
|
2015-05-15 15:01:20 +02:00
|
|
|
|
|
|
|
$stationName = Application_Model_Preference::GetStationName();
|
|
|
|
$this->view->stationName = $stationName;
|
|
|
|
|
|
|
|
$stationDescription = Application_Model_Preference::GetStationDescription();
|
|
|
|
$this->view->stationDescription = $stationDescription;
|
2015-05-27 19:50:25 +02:00
|
|
|
|
|
|
|
$this->view->stationUrl = Application_Common_HTTPHelper::getStationUrl();
|
2015-06-10 20:46:27 +02:00
|
|
|
|
2015-07-09 21:16:54 +02:00
|
|
|
$displayRadioPageLoginButtonValue = Application_Model_Preference::getRadioPageDisplayLoginButton();
|
|
|
|
if ($displayRadioPageLoginButtonValue == "") {
|
|
|
|
$displayRadioPageLoginButtonValue = true;
|
|
|
|
}
|
|
|
|
$this->view->displayLoginButton = $displayRadioPageLoginButtonValue;
|
2015-07-09 20:38:44 +02:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function mainAction()
|
2012-07-11 00:53:06 +02:00
|
|
|
{
|
2010-12-07 20:19:27 +01:00
|
|
|
$this->_helper->layout->setLayout('layout');
|
|
|
|
}
|
|
|
|
|
2014-04-24 22:19:55 +02:00
|
|
|
public function maintenanceAction()
|
|
|
|
{
|
|
|
|
$this->getResponse()->setHttpResponseCode(503);
|
|
|
|
}
|
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|