diff --git a/mod/wiki/comments_form.php b/mod/wiki/comments_form.php index 0dc8640..0fd7f31 100644 --- a/mod/wiki/comments_form.php +++ b/mod/wiki/comments_form.php @@ -16,6 +16,7 @@ class mod_wiki_comments_form extends moodleform { // visible elements $mform->addElement('editor', 'entrycomment_editor', get_string('comment', 'glossary'), null, $commentoptions); + $mform->addHelpButton('entrycomment_editor', 'comments', 'wiki'); $mform->addRule('entrycomment_editor', get_string('required'), 'required', null, 'client'); $mform->setType('entrycomment_editor', PARAM_RAW); // processed by trust text or cleaned before the display diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index 68a4512..67de6eb 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -22,6 +22,7 @@ $string['backtomapmenu'] = 'Back to map menu'; $string['changerate']='Do you wish to change it?'; $string['comparesel'] = 'Compare selected'; $string['comments'] = 'Comments'; +$string['comments_help'] = 'The HTML editor is used for commenting wiki page.'; $string['commentscount'] = 'Comments ({$a})'; $string['comparewith'] = 'Comparing version {$a->old} with version {$a->new}'; $string['contributions'] = 'Contributions'; @@ -77,6 +78,7 @@ $string['formatnwiki_help'] = 'Nwiki is the Mediawiki-like markup language used To create a new page, type the new page name enclosed in double square brackets, for example [[Page 2]].'; $string['formatnwiki_link'] = 'mod/wiki/nwiki'; $string['history'] = 'History'; +$string['history_help'] = 'Show wiki page\'s change history'; $string['html'] = 'HTML'; $string['insertcomment'] = 'Insert comment'; $string['invalidlock'] = 'This page is already locked by another user.'; @@ -88,6 +90,7 @@ $string['lockingajaxtimeout'] = 'Edit page locking refresh time'; $string['lockingtimeout'] = 'Locking timeout'; $string['links'] = 'Links'; $string['map'] = 'Map'; +$string['map_help'] = 'Map'; $string['mapmenu'] = 'Map menu'; $string['migrationfinished'] = 'Migration finished successfully'; $string['migrationfinishednowikis'] = 'Migration finished, no wikis were migrated'; diff --git a/mod/wiki/pagelib.php b/mod/wiki/pagelib.php index 0a5262e..cd2b1d9 100644 --- a/mod/wiki/pagelib.php +++ b/mod/wiki/pagelib.php @@ -1183,6 +1183,16 @@ class page_wiki_history extends page_wiki { $this->print_pagetitle(); } + function print_pagetitle() { + global $OUTPUT; + $html = ''; + + $html .= $OUTPUT->container_start(); + $html .= $OUTPUT->heading_with_help(format_string($this->title), 'history', 'wiki'); + $html .= $OUTPUT->container_end(); + echo $html; + } + function print_content() { global $PAGE; @@ -1418,6 +1428,16 @@ class page_wiki_map extends page_wiki { $this->print_pagetitle(); } + function print_pagetitle() { + global $OUTPUT; + $html = ''; + + $html .= $OUTPUT->container_start(); + $html .= $OUTPUT->heading_with_help(format_string($this->title), 'map', 'wiki'); + $html .= $OUTPUT->container_end(); + echo $html; + } + function print_content() { global $CFG, $PAGE;