More tweaks when displaying embedded resources
This commit is contained in:
@@ -233,9 +233,6 @@
|
||||
"", "", true, update_module_button($cm->id, $course->id, $strresource),
|
||||
navmenu($course, $cm, "self"));
|
||||
}
|
||||
if ($resource->summary) {
|
||||
print_simple_box(format_text($resource->summary), 'center');
|
||||
}
|
||||
|
||||
if ($resourcetype == "image") {
|
||||
echo "<center><p>";
|
||||
@@ -246,19 +243,23 @@
|
||||
echo "<center><p>";
|
||||
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
|
||||
echo ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
|
||||
echo ' width="600" height="100" id="mp3player" align="">';
|
||||
echo ' width="600" height="70" id="mp3player" align="">';
|
||||
echo "<param name=movie value=\"$CFG->wwwroot/lib/mp3player.swf?src=$fullurl&autostart=yes\">";
|
||||
echo '<param name=quality value=high>';
|
||||
echo '<param name=bgcolor value="#333333">';
|
||||
echo "<embed src=\"$CFG->wwwroot/lib/mp3player.swf?src=$fullurl&autostart=yes\" ";
|
||||
echo " quality=high bgcolor=\"#333333\" width=\"600\" height=\"100\" name=\"mp3player\" ";
|
||||
echo " quality=high bgcolor=\"#333333\" width=\"600\" height=\"70\" name=\"mp3player\" ";
|
||||
echo ' type="application/x-shockwave-flash" ';
|
||||
echo ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
|
||||
echo '</embed>';
|
||||
echo '</object>';
|
||||
echo "</p></center>";
|
||||
}
|
||||
if ($resource->summary) {
|
||||
print_simple_box(format_text($resource->summary), 'center');
|
||||
}
|
||||
if (!$inpopup) {
|
||||
print_spacer(20,20);
|
||||
print_footer($course);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user