MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions

This commit is contained in:
Petr Skoda 2009-12-30 15:19:55 +00:00
parent 48a67d9f01
commit 4bcc51185c
113 changed files with 442 additions and 970 deletions

View file

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