Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: 1.6 theme upgrade.

Talk:1.6 theme upgrade

From MoodleDocs

Brilliant guys, thanks! - Martin D

moodledocslink in footer

Starting with Moodle 1.6 it is possible to make a link to Moodle Docs available (to admin or teacher, not to student) by adding the following to the footer.html file of your theme:

page_doc_link(get_string("moodledocslink"))

If you want to make a theme which is compatible both with Moodle 1.5 and 1.6 you should test the existence of the page_doc_link function. Otherwise you'd get a call to undefined function error.

if (function_exists('page_doc_link')) {
   echo(page_doc_link(get_string("moodledocslink")));
}

Joseph