mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -357,11 +357,7 @@
|
|||
// Do the Action
|
||||
# "setpageflags", "removepages", "strippages", "checklinks", "revertpages"
|
||||
|
||||
$helpicon = new moodle_help_icon();
|
||||
$helpicon->text = get_string($action,"wiki");
|
||||
$helpicon->page = $action;
|
||||
$helpicon->module = "wiki";
|
||||
echo $OUTPUT->heading_with_help($helpicon);
|
||||
echo $OUTPUT->heading_with_help(get_string($action,"wiki"), $action, 'wiki');
|
||||
|
||||
include $action.".html";
|
||||
echo $OUTPUT->box_end();
|
||||
|
|
|
@ -28,7 +28,7 @@ if($err->remark) {
|
|||
<td>
|
||||
<input type="text" name="authorfieldpattern" size="30" value="<?php p($form->authorfieldpattern) ?>" />
|
||||
<?php
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki'));
|
||||
echo $OUTPUT->help_icon('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
|
||||
if (!empty($err->authorfieldpattern)) { echo $OUTPUT->error_text($err->authorfieldpattern); }
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -365,7 +365,7 @@
|
|||
|
||||
/// Formatting Rules
|
||||
echo '<td class="howtowiki">';
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('howtowiki', get_string('howtowiki', 'wiki'), 'wiki'));
|
||||
echo $OUTPUT->help_icon('howtowiki', get_string('howtowiki', 'wiki'), 'wiki');
|
||||
echo '</td>';
|
||||
|
||||
echo '</tr></table>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue