89 Commits

Author SHA1 Message Date
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
Petr Skoda
e5180580c8 MDL-17135 fixed fatal installation and ugprade error 2009-11-08 22:12:36 +00:00
Petr Skoda
a56c457e52 MDL-20699 more abstraction in default exception handler 2009-11-01 10:00:30 +00:00
Petr Skoda
c19bc39c00 MDL-20676 refactoring and cleanup in default exception handler 2009-10-31 13:52:39 +00:00
skodak
c976e271c5 MDL-20274 upgrade and install support for db/services.php 2009-09-13 21:26:51 +00:00
samhemelryk
de6d81e667 admin MDL-19799 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-03 06:59:25 +00:00
nicolasconnault
aa9a686740 MDL-19799 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:20:12 +00:00
skodak
9b683d130a MDL-20015 a way to recover from problems in db/install.php 2009-08-06 19:59:16 +00:00
skodak
45440ceb61 fixed wrong error string 2009-08-06 18:20:08 +00:00
nicolasconnault
7e0d66753e MDL-19799 Converted all print_footer() calls 2009-08-06 14:21:34 +00:00
nicolasconnault
3c15938527 MDL-19799 Migrated calls to print_heading 2009-08-06 08:19:21 +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
skodak
2e3da29789 MDL-16089 entry in modules table created before calling install.php because it might be used there already, also if something fails in install.php the db will be in a more consistent state 2009-07-03 13:35:36 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +00:00
tjhunt
fd1a792e13 themes: MDL-19640 / MDL-19077 remove other references to _print_normal_error 2009-06-29 00:34:49 +00:00
tjhunt
e29380f3c4 themes: MDL-19077 fix install regression 2009-06-26 09:38:14 +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
skodak
520cea9216 MDL-16438 standardized component names 2009-06-26 09:02:05 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
b4154c2d64 MDL-14990 implemented query loggin in new native DML drivers 2009-06-13 15:59:55 +00:00
skodak
c3d0e1492e MDL-17458 fixing installation regressions - no output and timeout 2009-06-07 08:46:13 +00:00
skodak
4f12838e3e MDL-17458 moving lib/db/upgradelib.php to upgrade.php in order to maḱe it the the same for all plugins 2009-05-31 17:38:18 +00:00
stronk7
ba04999ceb MDL-19349 upgrade_plugin_savepoint() added 2 suggestions 2009-05-30 18:51:47 +00:00
skodak
194cdca89b MDL-15249 more cleanup and refactoring - towards cli upgrade 2009-05-26 19:02:11 +00:00
skodak
3316fe24d5 MDL-15249 more cleanup and refactoring - towards cli upgrade 2009-05-26 17:44:25 +00:00
skodak
8580535b81 MDL-15249 refactoring towards cli install script 2009-05-26 09:52:38 +00:00
samhemelryk
72fb21b65b lib MDL-19236 Added boilerplates and copyrights 2009-05-26 05:18:52 +00:00
skodak
96db14f9b4 MDL-15249 preparation for new cli installer + license header 2009-05-25 17:44:05 +00:00
mudrd8mz
c1fe2368b0 Module can define its version to 0 so it is not installed. 2009-05-12 08:12:48 +00:00
tjhunt
9d1d606e0d blocklib: MDL-19010 fix new install.
* Fix the blocks bit of build_context_path
* Replace blocks_repopulate_page
* Make starting_output work during setup
2009-05-07 07:05:22 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
f8b80dbd95 moodle_page: MDL-12212 completely remove the old tag and admin page classes 2009-05-06 09:11:07 +00:00
tjhunt
c13a5e71cc moodle_page: MDL-12212 start of new moodle_page class
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
skodak
551fe0e535 MDL-17458 standardised lang upgrade code + updating also parent language 2009-02-08 23:14:13 +00:00
skodak
9ace50944f MDL-14924 the same title now used on each upgrade/install page (Moodle - 2.0...) + the same footer with moodle logo now used during installation and upgrade - links to admin docs 2009-02-07 17:56:40 +00:00
skodak
2d6b0b04c1 MDL-17458 scrolling to errors is not needed anymore, we stop after every error now 2009-02-01 17:24:34 +00:00
skodak
9050958240 MDL-10275 moving all installation time environment tests into /admin/index.php - this will simplify install.php a LOT and will make installation/upgrade more consistent + fixed a bug in enviroment if docroot not set 2009-02-01 12:52:30 +00:00
skodak
795a08adb7 MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements 2009-01-31 20:07:32 +00:00
skodak
db9d4a3d0a MDL-17427 moving upgrade code from adminlib to upgradelib + new upgrade logging functions 2009-01-29 21:17:52 +00:00