90 Commits

Author SHA1 Message Date
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
fmarier
316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +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
scyrma
5a254a2938 MDL-14279: use get_file_url instead of checking $CFG->slashargument manually (merge from 1.9) 2008-07-10 09:55:11 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
9f7f1a74a0 MDL-12221 custom themes revisited - implemented container concept; merged from MOODLE_19_STABLE 2007-11-23 16:49:51 +00:00
nicolasconnault
54c0f82b1d MDL-10970 Reverted changes 2007-08-24 12:45:16 +00:00
nicolasconnault
364fffda3b MDL-10723 Removed all uses of print_navigation() throughout moodle, the function call is now entirely deprecated. 2007-08-24 04:22:30 +00:00
moodler
d7275959a6 FIxes for XHTML strict 1.0 MDL-7861 2007-01-04 04:44:54 +00:00
moodler
9e3e44e141 more Strict bending over 2007-01-03 16:04:08 +00:00
skodak
a44091bffe Fixing Theme Config Variables MDL-6784 2006-10-09 10:12:41 +00:00
jamiesensei
909ec807cb moved styles in theme\standard\styles_form.css to theme\standard\styles_layout.css and removed theme\standard\styles_form.css and all references to it. In line with discussion here : http://moodle.org/mod/forum/discuss.php?d=54907 2006-09-28 10:32:23 +00:00
jamiesensei
da6f876395 This is a first cut of a new formslib.php a library of classes for creating and securely processing forms in Moodle, based on PEAR QuickForms. Only uses XHTML and CSS and no table tags.
This is NOT YET PART OF THE MOODLE API it is here for experimental purposes.
2006-09-24 17:04:51 +00:00
skodak
10ab3efc35 Bug #5820 - IE returns unsecure items with SSL on login; merged from MOODLE_16_STABLE 2006-07-06 15:53:46 +00:00
nfreear
e99e2d126d Ongoing, fix bug 5400, navbar/breadcrumb TABLE to DIV, to improve semantics. Merged from stable branch. 2006-05-22 10:00:18 +00:00
nfreear
f08ab5f020 Ongoing, fix bug 5400, DIV to H1, to improve semantics. Merged from MOODLE_16_STABLE. 2006-05-19 13:30:25 +00:00
nfreear
1211e73244 Fix bug 5434 - hardcoded missing Alt text, with a warning comment. Merged from branch MOODLE_16_STABLE. 2006-05-19 10:33:13 +00:00
moodler
08777eaf25 Set the last modified time of the style sheet to the current time 2006-04-07 15:07:52 +00:00
moodler
6bf277d7c5 Fixing a typo: http://moodle.org/mod/forum/discuss.php?d=41814#199162 2006-04-07 15:03:51 +00:00
vyshane
850435e777 Made footer.html use get_string when displaying the moodle docs link. 2006-03-02 02:25:55 +00:00
vyshane
63339fc88c Added moodle docs link to footer of the themes. The link is generated by the
page_doc_link function.
2006-03-01 07:49:53 +00:00
urs_hunkler
e236ac3c7c Merged from 1.5. Changed $CFG-theme to current_theme() to make the theme working as course or session theme, see Bug #4315 2005-11-13 17:44:23 +00:00
moodler
eaf4b379a9 Removed some debugging stuff 2005-05-17 14:04:55 +00:00
moodler
6ae3761819 Remove the validation links 2005-05-13 15:54:40 +00:00
moodler
5080c0ad5e Added transparency 2005-05-13 15:51:41 +00:00
moodler
ffeeff2d00 Add standard white gradients to standardlogo 2005-05-13 14:00:55 +00:00
moodler
c38fd30fb4 Fixed the logo, and now logo.gif or logo.jpg can be used 2005-05-13 13:48:12 +00:00
moodler
d726ea77f9 Updated to 1.5 (needs work though) 2005-04-02 15:29:47 +00:00
moodler
7432795256 Quick fix for user login string styles 2005-02-25 06:24:22 +00:00
moodler
d65a650133 Fixes for Theme preview 2005-01-31 05:58:03 +00:00
moodler
18fc7e7c67 Moving style information from XHTML code to stylesheets 2004-09-30 06:52:49 +00:00
gustav_delius
4fd59da7ab added missing </center> 2004-09-16 18:33:35 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
moodler
63f3cbbd7d Merged $bodytags parameter in headers from STABLE 2004-07-14 06:54:43 +00:00
moodler
dca5ac23eb Added styles for site topic on front page 2004-07-14 06:51:13 +00:00
defacer
87722d4f2c A couple of new CSS rules to make the course summary block display the same as before. 2004-05-28 10:48:59 +00:00
moodler
b1049b0bdd Added styles for full event display 2004-05-23 10:29:46 +00:00
moodler
f96831ee67 Now the same colours as standard 2004-05-23 06:38:48 +00:00
moodler
7387fa2620 Improved Standard Logo theme now actually uses the standard logo. ;-)
Replacing the logo is as easy as dropping a logo.jpg in the Moodle
home directory OR in the site files
2004-05-22 08:53:22 +00:00
moodler
2367e13d6c LOTS of theme fixes for calendars etc 2004-05-22 07:53:40 +00:00
moodler
c488e669cc Updated standard styles for new calendar popups 2004-05-22 07:03:55 +00:00
defacer
562727705f Upgrade with more intelligent CSS rules.
Maybe needs some color changes, but I 'm not really much of an interior decorator... :)
2004-04-20 12:14:57 +00:00
moodler
974511397d Improved Favicon matches the logo 2004-03-31 09:11:58 +00:00
moodler
829b0c27a3 Added styles as per Jon's recommended install. Things may change though. 2004-03-29 15:40:15 +00:00
moodler
ad0abe9d77 Added new style headingblockcontent 2004-02-15 13:58:22 +00:00
moodler
5604f7798f New style for tabledivider, and some fixups 2004-01-26 10:14:22 +00:00
moodler
e1518b0c1c Added two new styles for smallinfo displays on the side 2003-12-28 05:56:34 +00:00
moodler
ba1ce4c0eb new style forumheaderlist (instead of re-using forumpost as before) 2003-10-29 06:24:49 +00:00
moodler
5bc6e68fbe Put rounded corners on category box too 2003-10-21 06:55:02 +00:00