45 Commits

Author SHA1 Message Date
Petr Škoda
574909efce MDL-39174 fix phpdocs packages in themes 2013-04-27 13:22:59 +02:00
Aparup Banerjee
728ebac7f2 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/" 2011-07-05 14:27:31 +08:00
Sam Hemelryk
0fb14e5125 theme-standard MDL-19235 Added phpdoc and boilerplate to the standard themes config.php 2010-06-24 01:50:05 +00:00
Martin Dougiamas
99cca8470e MDL-19124 Continued misc user profile cleanups
- fixed user styles in base theme
    - added new divs for better control on user profile and user index pages
    - reduced data on course user profiles down to minimum
    - removed user/tabs.php completely and all uses of it
    - changed default user icon pix to something very bland (bye bye smiley cake)
2010-05-16 08:21:12 +00:00
Sam Hemelryk
90723839ca themes MDL-21862 Implements base theme and standard theme.
Very big theme changes, standardold theme has been split into two themes base and standard. Base theme contains only CSS that is absolutly required (e.g. layout, white space rules, specific widths) and standard (which now looks like standardwhite) contains all the frills.
The following noteable changes have also been made:
  * Plugin CSS has been pushed back into the plugin directories as styles.css files.
  * Install_print_header has been corrected.
  * Redundant or deprecated rules have been removed.
  * Several minor class changes throughout Moodle.
  * CSS is now single line rules not multiline indented.
  * Installs with theme=standardold automatically switch to standard.
  * body classes / id now have prefixes to make it clearer what they are and avoid conflicts.
Also worth noting:
  * There is still alot of tweaking that is required to get everything looking as it is supposed to, please be patient or better yet help out.
  * I am currently working on the documentation for the themes system... it will be here soon.
2010-03-25 06:38:21 +00:00
Petr Skoda
3d38a00bc8 MDL-21149 renamed 'standard' theme to 'standardold' - this should finally make clear that new themes should not be based on legacy standard theme; all new core themes will be based on fresh new minimalistic 'base' theme, highly customised abnd experimentatl themes do not have to use base at all 2010-01-12 17:26:46 +00:00
Petr Skoda
244a32c617 MDL-21119 lang menu and login info now handled by themes 2009-12-29 17:26:29 +00:00
Petr Skoda
191b267bcd MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically 2009-12-27 12:02:04 +00:00
Petr Skoda
358c13cbbf MDL-21124 full support for JS in theems finished 2009-12-23 17:18:46 +00:00
Petr Skoda
38aafea249 MDL-21124 towards full JS support in themes 2009-12-20 21:50:46 +00:00
Petr Skoda
6f0a938be5 MDL-20204 more BC in standard theme CSS 2009-12-20 19:41:47 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
dongsheng
d8b3ca9bb1 "MDL-20221, fixed typo of embedded" 2009-09-04 05:38:03 +00:00
dongsheng
ff1b34157b "MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't have footer and header" 2009-09-04 05:26:18 +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
99a70a7c08 Clarify comment. 2009-07-10 05:42:54 +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
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
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
08eab89703 blocklib: MDL-19010 add block and get_blocks methods 2009-05-06 09:14:42 +00:00
nfreear
f4a9c8b213 Fixes bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6". Merged. 2007-05-11 11:29:46 +00:00
moodler
79f533c388 Added some new settings to theme config.php so that a file meta.php can be
automatically included into the HEAD section of the current theme.

Supports parent and standard files too.

I added this to support the inclusion of some IE specific CSS  :-( which needs
to be done from HTML and not CSS, (MDL-7782) but it could be used to include other things
as well, or even to run some PHP code, set various vriables etc without messing
up the theme header.html (and regardless of the theme being used).
2007-01-24 09:20:32 +00:00
sam_marshall
ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +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
urs_hunkler
d345a18967 'added space before styles_form to correct CSS loading' 2006-09-26 13:48:00 +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
moodler
54a7469271 Removed some obsolete stuff 2006-09-20 06:52:54 +00:00
nfreear
57100a9098 Fixes bug MDL-6360 "Resizable image in breadcrumb trail..."
- files block_search_forums.php, calendar/lib.php, lang/en_utf8/access.php, weblib.php, theme/standard/config.php, styles_color.css
2006-09-19 11:36:21 +00:00
moodler
4a8be6e456 Info about two new variables for controlling navbarlist 2005-03-29 14:20:11 +00:00
moodler
848aafa81a Some cleanup ... styles_moz.css is now not included with "standard" by default 2005-03-25 17:14:01 +00:00
moodler
d0cbe0fd1c Some clean ups, and the blocks/mod scanning for styles.php is now enabled
by default ... I am going to be moving some of these module styles out
to the modules.
2005-03-25 16:04:47 +00:00
moodler
c15f43c849 This is how you set colours for the MP3 players 2005-03-22 17:46:03 +00:00
moodler
179332ab56 Three new settings in THEME. These will allow the use of "styles.php"
stylesheets within activity modules, blocks and languages, allowing these
plugins to have some say over their appearance (if required).
2005-03-22 17:38:47 +00:00
moodler
6fde77de24 Modifications to allow parent theme, and some genral cleanups 2005-01-30 18:17:44 +00:00
moodler
c646b18032 Fixed inline comments (I had tried a couple of schemes). 2005-01-26 14:18:36 +00:00
moodler
b3f748f655 There is a new configuration variable called
$THEME->standardsheets

that a theme can use to control how much of the
standard theme is included before the actual current
theme sheets.

When true, use all subsheets from "standard"

When not existent, use all subsheets from "standard" (this is to help old
themes work better out of the box)

When false, don't use standard at all

When an array of filenames, only use those (in that order).
2005-01-26 14:14:16 +00:00
moodler
3e92eca303 I've set the old THEME variables to bright green to help identify
where hard-coded colours need to be removed
2005-01-25 13:20:44 +00:00
moodler
dfe052fcfd Some additions to standard styles 2003-10-21 06:39:05 +00:00
moodler
d8ff63f276 Added styles and colour for autolink'ed text 2003-10-16 03:21:09 +00:00
moodler
81ed361792 Added new style for hidden topics as well as some docs about
all the changes in this version
2003-05-04 07:58:15 +00:00
moodler
9d2dda0f85 Added new custompix parameter 2003-04-28 04:45:15 +00:00
moodler
8120317e2e Changes for new styles and scheme 2002-12-09 16:10:57 +00:00
moodler
b27f9a32bc Slight changes 2002-12-09 07:45:45 +00:00
moodler
5e367a2d56 Various little tweaks to improve the display of course home
pages and front page ... still have some work to do though
2002-12-09 07:35:40 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00