Commit graph

16 commits

Author SHA1 Message Date
samhemelryk
ceebb2ec5f core MDL-19799 Upgraded deprecated calls and minor documentation improvement 2009-09-30 06:14:58 +00:00
samhemelryk
4bf1c3a5e7 theme MDL-19824 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 02:43:28 +00:00
nicolasconnault
ebb19abaab MDL-19824 Converted print_box* to $OUTPUT->box* 2009-08-10 05:49:57 +00:00
nicolasconnault
344ca4c9ef MDL-19824 Converted all print_footer() calls 2009-08-06 14:25:44 +00:00
nicolasconnault
cdc6222077 MDL-19824 Migrated calls to print_heading 2009-08-06 08:25:18 +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
d6c5e269b5 Fix deprecated function calls. 2009-06-29 03:10:06 +00:00
dongsheng
4f2a63c81e "MDL-14129, fix print_error" 2008-06-15 10:13:30 +00:00
dongsheng
957f6fc9d2 "MDL-14460, fix all the other get_context_instance, merged from MOODLE_19_STABLE" 2008-05-02 04:37:02 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
skodak
a44091bffe Fixing Theme Config Variables MDL-6784 2006-10-09 10:12:41 +00:00
toyomoyo
ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
moodler
9c4e6e2177 Really big cleanup of how "forced" themes were implemented.
Course themes now work better.

theme/xxxx/styles.php is now really short because all the logic
is in weblib.php.
2005-02-13 08:34:10 +00:00
moodler
d65a650133 Fixes for Theme preview 2005-01-31 05:58:03 +00:00
moodler
8ba55c01ae New theme chooser (with better preview using iframes)
It's a bit rough but it works.
2005-01-30 19:27:46 +00:00