From b8db24a59c8916d0ef4dea3f198ded9333e6ca7e Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 28 Nov 2006 10:43:27 +0000 Subject: [PATCH] Fix frames accessibility on Hotpot MDL-7468 --- lang/en_utf8/moodle.php | 1 + mod/hotpot/view.php | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 36c01abe00..d19790eb76 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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'; diff --git a/mod/hotpot/view.php b/mod/hotpot/view.php index 713b8d3b1d..e6e6c71976 100644 --- a/mod/hotpot/view.php +++ b/mod/hotpot/view.php @@ -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 "\n"; print "\n"; + print "\n"; print "$title\n"; print "\n"; - print "id&framename=top\">\n"; - print "id&framename=main\">\n"; + print "id&framename=top\">\n"; + print "id&framename=main\">\n"; + print "\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 "\n"; print "\n"; print "\n"; break; -- 2.39.5