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
|
@ -496,7 +496,7 @@
|
|||
$select->nothinglabel = $strchoosefiletoedit;
|
||||
$select->set_label($selectionlabel);
|
||||
echo $OUTPUT->select($select);
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('langswitchstorage', $strfilestoredinhelp));
|
||||
echo $OUTPUT->help_icon('langswitchstorage', $strfilestoredinhelp);
|
||||
echo $OUTPUT->box_end();
|
||||
|
||||
if ($currentfile <> '') {
|
||||
|
@ -763,7 +763,7 @@
|
|||
$select->nothinglabel = $strchoosefiletoedit;
|
||||
$select->set_label($selectionlabel);
|
||||
echo $OUTPUT->select($select);
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('langswitchstorage', $strfilestoredinhelp));
|
||||
echo $OUTPUT->help_icon('langswitchstorage', $strfilestoredinhelp);
|
||||
echo $OUTPUT->box_end();
|
||||
|
||||
if (!empty($currentfile)) {
|
||||
|
@ -812,11 +812,11 @@
|
|||
echo '<div>';
|
||||
|
||||
if ($uselocal) {
|
||||
$strsavetotitle = $strlanglocalpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlanglocalpackage));
|
||||
$straltdirtitle = $strlangmasterpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterpackage));
|
||||
$strsavetotitle = $strlanglocalpackage . $OUTPUT->help_icon('langpackages', $strlanglocalpackage);
|
||||
$straltdirtitle = $strlangmasterpackage . $OUTPUT->help_icon('langpackages', $strlangmasterpackage);
|
||||
} else {
|
||||
$straltdirtitle = $strlanglocalpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlanglocalpackage));
|
||||
$strsavetotitle = $strlangmasterpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterpackage));
|
||||
$straltdirtitle = $strlanglocalpackage . $OUTPUT->help_icon('langpackages', $strlanglocalpackage);
|
||||
$strsavetotitle = $strlangmasterpackage . $OUTPUT->help_icon('langpackages', $strlangmasterpackage);
|
||||
|
||||
}
|
||||
|
||||
|
@ -876,7 +876,7 @@
|
|||
}
|
||||
if (is_readable($ensrc)) {
|
||||
echo '<fieldset><legend>'.$strlangmasterenglish;
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterenglish));
|
||||
echo $OUTPUT->help_icon('langpackages', $strlangmasterenglish);
|
||||
echo '</legend>';
|
||||
echo "<div class='mdl-align'>\n<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"\">";
|
||||
echo htmlspecialchars(file_get_contents($ensrc));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue