Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

XHTML

From MoodleDocs
Revision as of 10:12, 30 April 2009 by Martin Dougiamas (talk | contribs) (New page: ==XHTML Strict 1.0== Moodle output must be compliant with XHTML Strict 1.0. This means: * No tables for pure layout. * No frames * etc ==Styling== * Make sure you provide enough CSS...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

XHTML Strict 1.0

Moodle output must be compliant with XHTML Strict 1.0. This means:

  • No tables for pure layout.
  • No frames
  • etc

Styling

  • Make sure you provide enough CSS ids and classes to enable a designer to modify everything with CSS.
  • Never use inline styles
  • If you need to make basic style definitions for a module, put them in a file called styles.php in that module. This will be included into every theme.

Moodle API

  • Use the functions in lib/weblib to do as much as possible (print_header(), print_box() etc)
  • This API will change a lot in Moodle 2.0. See: Navigation_2.0