<?php // $Id$
-
/**
* Extend the base resource class for file resources
*/
require_js(array('yui_dom'));
///Moodle Header and navigation bar
- print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name), "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
+ $navigation = build_navigation($this->navlinks, $cm);
+ print_header($pagetitle, $course->fullname, $navigation, "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
$options = new object();
$options->para = false;
if (!empty($localpath)) { // Show some help
///add some javascript in order to fit this object tag into the browser window
echo '<script type="text/javascript">
+ //<![CDATA[
function resizeEmbeddedHtml() {
//calculate new embedded html height size
';
';
}
echo ' //the object tag cannot be smaller than a human readable size
- if (objectheight<200){
+ if (objectheight < 200) {
objectheight = 200;
}
//resize the embedded html object
}
resizeEmbeddedHtml();
YAHOO.widget.Overlay.windowResizeEvent.subscribe(resizeEmbeddedHtml);
+ //]]>
</script>
';