Commit Graph

55 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
ptrkmkl a0c7dbcaa0 Cornflower theme: MDL-19607 Removed float from sideblock commands. 2009-06-26 01:59:32 +00:00
tjhunt 5af6ec1b2e MDL-19600 remove remaining traces of docstyles.php.
(Not used since Moodle 1.6.)
Also remove the remaining bits of lang/en_utf8/docs.
2009-06-23 04:39:11 +00:00
fmarier 316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +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
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
poltawski 67596de47d MDL-12668 - Various themes not respecting theme varaibles
merged from MOODLE_19_STABLE
2007-12-20 17:32:08 +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
Martin Langhoff 0ed81c4f9c cvsimport fixups binary files 2007-08-29 13:10:26 +12:00
Martin Langhoff 359abcacab cvsimport fixups binary files 2007-08-29 13:10:20 +12:00
nfreear 59aa15d650 MDL-5400 "Accessibility modifications..." - fixing the 4 themes that don't use <h1>. 2007-08-20 10:52:57 +00:00
Martin Langhoff 08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
poltawski 9f439b177d MDL-9742 Replaced stray tabs with spaces 2007-05-08 16:25:18 +00:00
moodler 8010cc7d3b Updated XHTML and dos2unix 2007-03-28 02:52:01 +00:00
stronk7 c0cdb3b314 Changing one generic class-name to a glossary specific one in themes.
Merged from MOODLE_18_STABLE
2007-03-19 23:59:02 +00:00
moodler ec45c67924 FIxed some colors 2007-02-02 08:38:44 +00:00
moodler 06f8943cb3 Some changes to make this theme sort of work, but it still needs a lot of love <3 2007-02-02 08:29:45 +00:00
skodak ff8889d8cf MDL-7861 still some icons left ;grr previous commid had wrong MDL id 2007-01-08 20:38:03 +00:00
skodak b0ec5c662b MDL-8105 fixed theme colors in login page after recent div optimisation 2007-01-08 19:49:28 +00:00
skodak 9a34376e21 MDL-7861 xhtml strict fixes - login page - final CSS cleanup, finished! 2007-01-05 19:41:51 +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
urs_hunkler 9596181286 merged from 1.6 - MDL-6824 2006-10-04 15:49:41 +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
skodak 0629da47d2 removed reliance on register globals; merged from MOODLE_16_STABLE 2006-05-23 09:16:17 +00:00
gustav_delius a159b825a3 Fixed empty lines 2006-04-29 19:46:41 +00:00
urs_hunkler 2ca8a6c672 Bug #4315 - Use current_theme() instead of the $CFG-theme 2006-04-23 19:02:17 +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
moodler 85f393ea4d Just updating some old changes here 2006-01-05 07:14:14 +00:00
moodler d19d632067 Merged changes from stable 2005-06-09 08:30:55 +00:00
urs_hunkler c21a621714 some typos 2005-05-23 08:48:30 +00:00
stronk7 3fdbfb951b Tabs are out
(please don't use tabs in code, configure your editor to 4 cc per tab)
2005-05-17 00:06:51 +00:00
moodler 8f6579f472 New cornflower from Jeffery Watkins! 2005-04-26 01:56:11 +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
urs_hunkler fffb40d915 Added docstyle.php for the changed german docs.
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.
2005-01-24 12:43:11 +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
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