Fix frames accessibility on Hotpot MDL-7468

This commit is contained in:
skodak 2006-11-28 10:43:27 +00:00
parent 8430912a73
commit b8db24a59c
2 changed files with 16 additions and 2 deletions

View File

@ -583,6 +583,7 @@ $string['formattopicsajax'] = 'Topics format - AJAX';
$string['formatweeks'] = 'Weekly format';
$string['formatweekscss'] = 'Weekly format - CSS/No tables';
$string['formatwiki'] = 'Wiki-like format';
$string['framesetinfo'] = 'This frameset document contains:';
$string['from'] = 'From';
$string['frontpagecategorycombo'] = 'Combo list';
$string['frontpagecategorynames'] = 'List of categories';

View File

@ -379,12 +379,25 @@
print $hp->html;
break;
default:
$txtframesetinfo = get_string('framesetinfo');
$txttoptitle = get_string('navigation', 'hotpot');
$txtmaintitle = get_string('modulename', 'hotpot');
$rows = empty($CFG->resource_framesize) ? 85 : $CFG->resource_framesize;
@header('Content-Type: text/html; charset=utf-8');
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">\n";
print "<html>\n";
print "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n";
print "<head><title>$title</title></head>\n";
print "<frameset rows=$rows,*>\n";
print "<frame src=\"view.php?id=$cm->id&framename=top\">\n";
print "<frame src=\"view.php?id=$cm->id&framename=main\">\n";
print "<frame title=\"$txttoptitle\" src=\"view.php?id=$cm->id&framename=top\">\n";
print "<frame title=\"$txtmaintitle\" src=\"view.php?id=$cm->id&framename=main\">\n";
print "<noframes>\n";
print "<p>$txtframesetinfo</p>\n";
print "<ul><li><a href=\"view.php?id=$cm->id&framename=top\">$txttoptitle</a></li>\n";
print "<li><a href=\"view.php?id=$cm->id&framename=main\">$txtmaintitle</a></li></ul>\n";
print "</noframes>\n";
print "</frameset>\n";
print "</html>\n";
break;