Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Custom corners theme: Difference between revisions

From MoodleDocs
Created page with "{{Themes}}{{Moodle 1.9}}The custom corners theme contains graphics for customising corners and borders. It makes use of a technique described by Roger Johansson - see http://www...."
 
removing theme template
Line 1: Line 1:
{{Themes}}{{Moodle 1.9}}The custom corners theme contains graphics for customising corners and borders. It makes use of a technique described by Roger Johansson - see http://www.456bereastreet.com/archive/200506/customising_custom_corners_and_borders/ However, the custom corners theme doesn't use all the JavaScript mentioned by Roger Johansson. Instead, divs are added when "$THEME->customcorners = true;" is set in config.php.
{{Moodle 1.9}}The custom corners theme contains graphics for customising corners and borders. It makes use of a technique described by Roger Johansson - see http://www.456bereastreet.com/archive/200506/customising_custom_corners_and_borders/ However, the custom corners theme doesn't use all the JavaScript mentioned by Roger Johansson. Instead, divs are added when "$THEME->customcorners = true;" is set in config.php.


Custom corners may be used as a parent theme for creating your own custom themes.
Custom corners may be used as a parent theme for creating your own custom themes.
Line 30: Line 30:
*[[Creating a custom theme]]
*[[Creating a custom theme]]
* MDL-13648 Reword custom_corners README.html tracker report
* MDL-13648 Reword custom_corners README.html tracker report
[[Category:Themes]]

Revision as of 15:23, 22 April 2013

Moodle1.9 The custom corners theme contains graphics for customising corners and borders. It makes use of a technique described by Roger Johansson - see http://www.456bereastreet.com/archive/200506/customising_custom_corners_and_borders/ However, the custom corners theme doesn't use all the JavaScript mentioned by Roger Johansson. Instead, divs are added when "$THEME->customcorners = true;" is set in config.php.

Custom corners may be used as a parent theme for creating your own custom themes.

Note: Custom corners is included in Moodle 1.9 as an experimental feature.

Custom corners was created by Urs Hunkler http://www.unodo.de/.

Additional information

Custom corners uses the Chameleon theme engine. Hooks should NOT be written as comma separated lists of elements, for example

td#middle-column div.bt,
div#middle-column div.bt {
   ...
}

Instead two separate statements should be used, for example

td#middle-column div.bt {
   ...
}
div#middle-column div.bt {
   ...
}

See also