SAAS-813: Wire up schedule widget on Radio Page
This commit is contained in:
parent
a569387c5a
commit
27868fbfe5
6 changed files with 154 additions and 227 deletions
|
@ -88,14 +88,16 @@ class EmbedController extends Zend_Controller_Action
|
|||
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
$this->view->css = Application_Common_HTTPHelper::getStationUrl() . "/css/schedule-widget.css?".$CC_CONFIG['airtime_version'];
|
||||
$this->view->css = Application_Common_HTTPHelper::getStationUrl() . "/css/radio-page/weekly-schedule-widget.css?".$CC_CONFIG['airtime_version'];
|
||||
$this->view->jquery = Application_Common_HTTPHelper::getStationUrl() . "widgets/js/jquery-1.6.1.min.js?".$CC_CONFIG['airtime_version'];
|
||||
$this->view->jquery_custom = Application_Common_HTTPHelper::getStationUrl() . "widgets/js/jquery-ui-1.8.10.custom.min.js?".$CC_CONFIG['airtime_version'];
|
||||
//$this->view->widget_js = Application_Common_HTTPHelper::getStationUrl() . "widgets/js/jquery.showinfo.js?".$CC_CONFIG['airtime_version'];
|
||||
|
||||
$result = WidgetHelper::getWeekInfoV2($this->getRequest()->getParam("timezone"));
|
||||
//Logging::info($result);
|
||||
$this->view->scheduleDataWeek1 = $result[0];
|
||||
$this->view->scheduleDataWeek2 = $result[1];
|
||||
|
||||
$currentDay = new DateTime("now", new DateTimeZone(Application_Model_Preference::GetTimezone()));
|
||||
//day of the month without leading zeros (1 to 31)
|
||||
$this->view->currentDayOfMonth = $currentDay->format("j");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,8 @@ class IndexController extends Zend_Controller_Action
|
|||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/radio-page/radio-page.css?'.$CC_CONFIG['airtime_version']);
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/radio-page/weekly-schedule-widget.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
$this->_helper->layout->setLayout('radio-page');
|
||||
|
||||
$this->view->stationLogo = Application_Model_Preference::GetStationLogo();
|
||||
|
@ -24,6 +26,8 @@ class IndexController extends Zend_Controller_Action
|
|||
$stationDescription = Application_Model_Preference::GetStationDescription();
|
||||
$stationDescription = empty($stationDescription) ? "Station Description" : $stationDescription;
|
||||
$this->view->stationDescription = $stationDescription;
|
||||
|
||||
$this->view->stationUrl = Application_Common_HTTPHelper::getStationUrl();
|
||||
}
|
||||
|
||||
public function mainAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue