function theme_contribution_wizard in Kaltura 5
Same name and namespace in other branches
- 6 includes/kaltura.themeing.inc \theme_contribution_wizard()
File
- includes/
kaltura.themeing.inc, line 243
Code
function theme_contribution_wizard($theme_params) {
$goto_url = kaltura_cw_destination();
$javascript = '
var goto_url = "' . $goto_url . '";
function onContributionWizardAfterAddEntry() {
}
function onContributionWizardClose(modified) {
if (modified == "0") {
//setTimeout("window.top.history.back();", 0);
setTimeout("window.top.kalturaCloseModalBox();", 0);
} else {
setTimeout("window.top.kalturaRefreshTop();", 0);
// setTimeout("SendTopToEntriesPage();",0);
}
return;
}
';
$flash_embed = '
<div id="divKalturaCw"></div>
<script type="text/javascript">
var kso = new SWFObject("' . $theme_params->swfUrl . '", "kalturaCw", "' . $theme_params->width . '", "' . $theme_params->height . '", "9", "#000000");
kso.addParam("flashVars", "' . $theme_params->flashVarsStr . '");
kso.addParam("allowScriptAccess", "always");
kso.addParam("allowFullScreen", "TRUE");
kso.addParam("allowNetworking", "all");
kso.write("divKalturaCw");
</script>
';
return theme("kaltura_modal", array(
"javascript" => $javascript,
"flashEmbed" => $flash_embed,
));
}