Commit Graph

10 Commits

Author SHA1 Message Date
nicolasconnault fd09397ee1 MDL-19824 upgraded calls to print_container* 2009-08-20 08:50:03 +00:00
tjhunt 793a204e7b themes MDL-19077: Update deprecated stuff in all theme config.php files. 2009-07-09 02:06:22 +00:00
tjhunt b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
tjhunt 7544d13c28 MDL-19077 - re-fix the problem of exceptions being thrown in $OUTPUT->header
Also, fix lines theme.
2009-06-30 05:34:50 +00:00
tjhunt 25ddb7efc9 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
This is the final batch.
2009-06-15 07:57:53 +00:00
tjhunt d9661df14e XHTML strict! 2009-06-10 03:54:22 +00:00
fmarier 6a77823cb6 MDL-17037 Lossless optimization of all PNG and JPEG images 2008-10-28 01:50:10 +00:00
skodak a78bee285d MDL-16433 themes and javascript files are not blocked by running upgrade anymore 2008-09-14 08:40:23 +00:00
urs_hunkler a3dfd2ff21 I cleaned up the worst issues with these 1.9 themes under 2.0 and added missing images. 2008-07-21 07:41:36 +00:00
moodler 5a4825fa76 Added lines theme (beta) from Urs 2008-07-20 08:22:52 +00:00