SAAS-728: Make schedule widgets embeddable
This commit is contained in:
parent
7d1b112db9
commit
9b7acb24c6
3 changed files with 79 additions and 0 deletions
|
@ -54,4 +54,28 @@ class EmbedController extends Zend_Controller_Action
|
||||||
$this->view->availableMobileStreams = json_encode($availableMobileStreams);
|
$this->view->availableMobileStreams = json_encode($availableMobileStreams);
|
||||||
$this->view->availableDesktopStreams = json_encode($availableDesktopStreams);
|
$this->view->availableDesktopStreams = json_encode($availableDesktopStreams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function currentDayProgramAction()
|
||||||
|
{
|
||||||
|
$this->view->layout()->disableLayout();
|
||||||
|
|
||||||
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
|
||||||
|
$this->view->css = Application_Common_HTTPHelper::getStationUrl() . "widgets/css/airtime-widgets.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'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function weeklyProgramAction()
|
||||||
|
{
|
||||||
|
$this->view->layout()->disableLayout();
|
||||||
|
|
||||||
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
|
||||||
|
$this->view->css = Application_Common_HTTPHelper::getStationUrl() . "widgets/css/airtime-widgets.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'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="<?php echo $this->css?>" type="text/css">
|
||||||
|
<script src="<?php echo $this->jquery ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo $this->jquery_custom ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo $this->widget_js ?>" type="text/javascript"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#onAirToday").airtimeShowSchedule({
|
||||||
|
sourceDomain: "http://localhost",
|
||||||
|
text: {onAirToday:"On air today"},
|
||||||
|
updatePeriod: 5, //seconds
|
||||||
|
showLimit: 10
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="onAirToday"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="<?php echo $this->css?>" type="text/css">
|
||||||
|
<script src="<?php echo $this->jquery ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo $this->jquery_custom ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo $this->widget_js ?>" type="text/javascript"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#scheduleTabs").airtimeWeekSchedule({
|
||||||
|
sourceDomain:"http://localhost",
|
||||||
|
dowText:{monday:"Monday", tuesday:"Tuesday", wednesday:"Wednesday", thursday:"Thursday", friday:"Friday", saturday:"Saturday", sunday:"Sunday", nextmonday:"Next Monday", nexttuesday:"Next Tuesday",nextwednesday:"Next Wednesday", nextthursday:"Next Thursday",nextfriday:"Next Friday", nextsaturday:"Next Saturday", nextsunday:"NextSunday"},
|
||||||
|
miscText:{time:"Time", programName:"Program Name", details:"Details", readMore:"Read More"},
|
||||||
|
updatePeriod: 600 //seconds
|
||||||
|
});
|
||||||
|
var d = new Date().getDay();
|
||||||
|
$('#scheduleTabs').tabs({selected: d === 0 ? 6 : d-1, fx: { opacity: 'toggle' }});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="scheduleTabs"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue