MDL-21695 renaming ->help_icon() to old_help_icon() and going to introduce new help_icon() with new parameters and detailed debugging - hopefully this will help during the conversion to new help

This commit is contained in:
Petr Skoda 2010-04-13 20:34:27 +00:00
parent 9f9193f623
commit 596509e431
55 changed files with 116 additions and 116 deletions

View file

@ -90,8 +90,8 @@ echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '</fieldset>';
$table = new html_table();
$table->head = array (get_string('fullname'),
get_string('content', 'notes') . $OUTPUT->help_icon('writing', get_string('helpwriting')),
get_string('publishstate', 'notes') . $OUTPUT->help_icon('status', get_string('publishstate', 'notes'), 'notes'),
get_string('content', 'notes') . $OUTPUT->old_help_icon('writing', get_string('helpwriting')),
get_string('publishstate', 'notes') . $OUTPUT->old_help_icon('status', get_string('publishstate', 'notes'), 'notes'),
);
$table->align = array ('left', 'center', 'center');
$state_names = note_get_state_names();

View file

@ -138,7 +138,7 @@ if($course->enrollable == 2) {
}
$title = get_string('extendenrol');
echo $OUTPUT->heading($title . $OUTPUT->help_icon('extendenrol', $title));
echo $OUTPUT->heading($title . $OUTPUT->old_help_icon('extendenrol', $title));
echo "<form method=\"post\" action=\"extendenrol.php\">\n";
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';

View file

@ -116,11 +116,11 @@ echo get_string('users'). ': ' . implode(', ', $userlist) . '.';
echo '</p>';
echo '<p>' . get_string('content', 'notes');
echo $OUTPUT->help_icon('writing', get_string('helpwriting'));
echo $OUTPUT->old_help_icon('writing', get_string('helpwriting'));
echo '<br /><textarea name="content" rows="5" cols="50">' . strip_tags(@$content) . '</textarea></p>';
echo '<p>' . $strpublishstate;
echo $OUTPUT->help_icon('status', $strpublishstate, 'notes');
echo $OUTPUT->old_help_icon('status', $strpublishstate, 'notes');
echo html_writer::select($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false);
echo '</p>';

View file

@ -134,7 +134,7 @@ if($course->enrollable == 2) {
}
$title = get_string('groupextendenrol');
echo $OUTPUT->heading($title . $OUTPUT->help_icon('groupextendenrol', $title));
echo $OUTPUT->heading($title . $OUTPUT->old_help_icon('groupextendenrol', $title));
echo '<form method="post" action="groupextendenrol.php">';
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';

View file

@ -851,7 +851,7 @@
$displaylist['groupextendenrol.php'] = get_string('groupextendenrol');
}
echo $OUTPUT->help_icon("participantswithselectedusers", get_string("withselectedusers"));
echo $OUTPUT->old_help_icon("participantswithselectedusers", get_string("withselectedusers"));
echo html_writer::tag('label', get_string("withselectedusers"), array('for'=>'formactionid'));
echo html_writer::select($displaylist, 'formaction', '', array(''=>'choosedots'), array('id'=>'formactionid'));

View file

@ -16,14 +16,14 @@
<td align="right" valign="middle" nowrap="nowrap">
<?php
//TODO: replace by new editor stuff!
echo $OUTPUT->help_icon("reading", get_string("helpreading"), "moodle", true);
echo $OUTPUT->old_help_icon("reading", get_string("helpreading"), "moodle", true);
echo "<br />";
echo $OUTPUT->help_icon("writing", get_string("helpwriting"), "moodle", true);
echo $OUTPUT->old_help_icon("writing", get_string("helpwriting"), "moodle", true);
echo "<br />";
echo $OUTPUT->help_icon("questions", get_string("helpquestions"), "moodle", true);
echo $OUTPUT->old_help_icon("questions", get_string("helpquestions"), "moodle", true);
echo "<br />";
if ($usehtmleditor) {
echo $OUTPUT->help_icon("richtext2", get_string("helprichtext"), "moodle", true);
echo $OUTPUT->old_help_icon("richtext2", get_string("helprichtext"), "moodle", true);
} else {
//emoticonhelpbutton("theform", "message"); to be replaced by new editor stuff
}
@ -42,7 +42,7 @@
} else {
choose_from_menu(format_text_menu(), "format", $format, "");
}
echo $OUTPUT->help_icon("textformat", get_string("helpformatting"));
echo $OUTPUT->old_help_icon("textformat", get_string("helpformatting"));
?>
</td>
</tr>