mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions
This commit is contained in:
parent
48a67d9f01
commit
4bcc51185c
113 changed files with 442 additions and 970 deletions
|
@ -548,7 +548,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
|
|||
);
|
||||
|
||||
print '<tr><td>';
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot'));
|
||||
echo $OUTPUT->help_icon('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot');
|
||||
print '</td><th align="right" scope="col">'.get_string('reportcontent', 'hotpot').':</th><td colspan="7">';
|
||||
foreach ($menus as $name => $options) {
|
||||
$value = $formdata[$name];
|
||||
|
@ -587,7 +587,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
|
|||
);
|
||||
|
||||
print '<tr><td>';
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('reportformat', get_string('reportformat', 'hotpot'), 'hotpot'));
|
||||
echo $OUTPUT->help_icon('reportformat', get_string('reportformat', 'hotpot'), 'hotpot');
|
||||
print '</td>';
|
||||
foreach ($menus as $name => $options) {
|
||||
$value = $formdata[$name];
|
||||
|
|
|
@ -136,7 +136,7 @@ class hotpot_report extends hotpot_default_report {
|
|||
if (empty($table->caption)) {
|
||||
$table->caption = get_string('indivresp', 'quiz');
|
||||
if ($is_html) {
|
||||
$table->caption .= $OUTPUT->help_icon(moodle_help_icon::make('responsestable', $table->caption, 'hotpot'));
|
||||
$table->caption .= $OUTPUT->help_icon('responsestable', $table->caption, 'hotpot');
|
||||
}
|
||||
}
|
||||
$hints = empty($response->hints) ? 0 : $response->hints;
|
||||
|
@ -260,14 +260,14 @@ class hotpot_report extends hotpot_default_report {
|
|||
$br = $is_html ? '<br />' : "\n";
|
||||
$space = $is_html ? ' ' : "";
|
||||
$no_value = $is_html ? '--' : "";
|
||||
$help_button = $is_html ? $OUTPUT->help_icon(moodle_help_icon::make("discrimination", get_string('discrimination', 'quiz'), "quiz")) : "";
|
||||
$help_button = $is_html ? $OUTPUT->help_icon("discrimination", get_string('discrimination', 'quiz'), "quiz") : "";
|
||||
// table properties
|
||||
unset($table);
|
||||
$table->border = 1;
|
||||
$table->width = '100%';
|
||||
$table->caption = get_string('itemanal', 'quiz');
|
||||
if ($is_html) {
|
||||
$table->caption .= $OUTPUT->help_icon(moodle_help_icon::make('analysistable', $table->caption, 'hotpot'));
|
||||
$table->caption .= $OUTPUT->help_icon('analysistable', $table->caption, 'hotpot');
|
||||
}
|
||||
// initialize legend, if necessary
|
||||
if (!empty($options['reportshowlegend'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue