Commit graph

93 commits

Author SHA1 Message Date
samhemelryk
523d30942d standardwhite MDL-20221 added embedded type to standardwhite as it was overriding standard config
Checked other themes and currently all others fine
2009-09-08 03:28:56 +00:00
nicolasconnault
fd09397ee1 MDL-19824 upgraded calls to print_container* 2009-08-20 08:50:03 +00:00
skodak
ea87845660 MDL-16089 new general page type needed for framed resources, this is not accessible but unfortunately it works much better than object embedding; it will be also used by phpmyadmin integration 2009-07-14 06:33:34 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
tjhunt
69d3cd7f67 themes: MDL-19077 - take out test code I did not mean to include in my last commit. 2009-07-07 05:06:38 +00:00
tjhunt
fdeb7fa192 themes: MDL-19077 - more work on the theme_config class.
* Writing lots more PHPdoc comments for all the settings.
* Strip the comments from the standard theme config.php (see below)
* Move finding the layout template from moodle_core_renderer to the theme_config class
* Move loading meta.php files from moodle_core_renderer to the theme_config class
* MDL-19719 Remove support for $THEME->langsheets, and lang/.../styles.php
* MDL-19719 Put the Vietnamese-specific code into the standard theme
* Support for styles.php in all plugin types (at the theme's discretion). (c/f MDL-16438)
* More PHP doc comments for moodle_core_renderer methods.

About stripping comments from config.php: I'm not sure if this
is a good idea, and I may revert this bit. I am hoping that once
http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html has
been updated, that will be better than copying and pasting these
comments into every theme. I intend to post in the themes forum
to canvas opinions.
2009-07-07 05:05:06 +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
samhemelryk
17a6649b95 output MDL-19077 Implemented periodic refresh to meta refresh by delay
Also created layout-popup.php for standardwhite theme to provide a simpler template
2009-06-30 07:57:41 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
tjhunt
692103a2a5 Let any table have rotated text in its headers. Stolen from sam's activity completion report. 2008-11-18 10:17:27 +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
skodak
0ad439bb42 MDL-12221 custom themes revisited - fixed bug in previous commit, added more developer debug; merged from MOODLE_19_STABLE 2007-11-23 20:26:16 +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
skodak
71eee5f216 MDL-8343 reorganize frontpage settings in admintree - fixed installation bug and warnings 2007-01-30 09:33:11 +00:00
moodler
698a966098 Fixes to styles and new images to finalise new tabs as per MDL-7782
Looking much better!  Thanks, Urs!
2007-01-25 04:44:51 +00:00
moodler
b5252261f1 POssible slight improvement to looks in standardwhite 2007-01-13 05:56:45 +00:00
skodak
cfadda5dd0 MDL-8063 Fixed links to validation services to be XHTML Strict - in other templates now too 2007-01-05 19:48:58 +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
moodler
f4ba7e1a54 Bend over for XHTML 1.0 Strict ... MDL-8049
Removed Javascript language attribute tags and added CDATA
2007-01-03 14:44:17 +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
nfreear
06742c425b Fix ongoing, bug 5400, "Accessibility modifications not propagated to themes" (OU-Bugz: 1006) 2006-05-02 14:44:28 +00:00
moodler
886cb1e596 Some of the accessibility changes broke some shading 2006-04-10 15:49:28 +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
9a2cd9ca5e Just rearranging a little (not permanent) 2005-04-11 08:32:19 +00:00
moodler
61bff7e5ec Varous tweaks, mostly navbar 2005-04-02 12:44:04 +00:00
moodler
32eab86fac FIxed use of homelink 2005-03-27 17:07:36 +00:00
moodler
ed48183985 Tweaks to use new classes 2005-03-27 15:24:52 +00:00
moodler
12a487b485 FIxed reference to .navbar (was #nav-bar) 2005-03-26 06:53:30 +00:00
moodler
38f96c7a65 This shows how a theme can use the mozilla rounded corners. 2005-03-25 17:16:18 +00:00
moodler
ed8e6931d9 blocks/mod scanning for styles.php is now enabled
by default
2005-03-25 16:05:26 +00:00
moodler
d414c8a9c0 Missing closing div (SE) 2005-03-24 11:28:58 +00:00
moodler
a3b3afd1b5 Added some centering 2005-03-23 16:46:52 +00:00
moodler
291ce56b65 Added Cynthia checking for WCAG 1 2005-03-23 16:42:58 +00:00
moodler
86eb085d24 Standard white now looks like standard used to look. It's exactly the
same but it has the white gradients in the headers and navbar
2005-03-18 14:46:58 +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