Javascript added

This commit is contained in:
tomflannaghan 2006-08-17 09:27:51 +00:00
parent f0a93e5d30
commit b010085239

View File

@ -147,7 +147,7 @@
$USER->editing = $edit;
}
/// RSS and CSS meta
/// RSS and CSS and JS meta
$meta = '';
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
$rsspath = rss_get_url($course->id, $USER->id, 'data', $data->id);
@ -157,6 +157,10 @@
if ($data->csstemplate) {
$meta .= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/mod/data/css.php?d='.$data->id.'" /> ';
}
if ($data->jstemplate) {
$meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/mod/data/js.php?d='.$data->id.'"></script>';
}
/// Print the page header
$PAGE->print_header($course->shortname.': %fullname%', '', $meta);