Commit Graph

17 Commits

Author SHA1 Message Date
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 bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
tjhunt f4d38d20fb blocklib: MDL-19010 and now you can delete blocks too! 2009-05-08 06:34:40 +00:00
tjhunt 93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
skodak cd9224ab51 MDL-16226 coding style improvements, added deleting of module files 2008-08-27 15:47:25 +00:00
nicolasconnault 3440ec1234 MDL-12198 2008-08-08 05:25:54 +00:00
skodak 2ba8bdb84c MDL-15094 some more updates 2008-06-05 14:09:34 +00:00
skodak 6bb0816313 MDL-14679 towards course conversion 2008-06-02 08:13:24 +00:00
skodak edc06a5399 MDL-13220 rebuild course cache after ajax edits - patch by Myles Carrick; merged from MOODLE_19_STABLE 2008-02-01 08:23:11 +00:00
vyshane 607c1bc1c6 Merged from 1.7. 2006-11-22 07:36:41 +00:00
vyshane 29ca8b882d Merged from 1.7. 2006-11-16 03:28:09 +00:00
vyshane f45cc76fb3 Merged from 1.7. 2006-10-24 08:13:13 +00:00
vyshane c4ce5def5a Merged from 1.7 2006-10-16 02:45:38 +00:00
vyshane 37fb48e0f5 Merged from 1.7 2006-10-11 05:45:44 +00:00
cap2501 bb781a70c5 made changes to the way the block movment was handled to eliminate some errors that came up. 2006-10-08 20:24:15 +00:00
moodler 1bbcb7c01a Some more debugging in course/rest.php (to error log) 2006-09-27 08:02:26 +00:00
moodler b205403813 Moved the REST interface for course modification from
course/format/topics/commands.php to a more generic place
2006-09-23 13:23:18 +00:00