themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
authortjhunt <tjhunt>
Thu, 9 Jul 2009 07:35:03 +0000 (07:35 +0000)
committertjhunt <tjhunt>
Thu, 9 Jul 2009 07:35:03 +0000 (07:35 +0000)
commitd4a03c00ea3885ac2b264b7d7a8c6c635d5714d2
tree48bd0c13661b907da1d9be4b45030b63cb057b3b
parentabdcded6c709df38a9ee84928461e988bffbaeeb
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.
58 files changed:
admin/index.php
admin/settings.php
admin/settings/plugins.php
admin/stickyblocks.php [deleted file]
blocks/moodleblock.class.php
blog/footer.php
blog/header.php
course/edit.php
course/format/scorm/format.php
course/format/social/format.php
course/format/topics/format.php
course/format/weeks/format.php
course/modedit.php
course/rest.php
course/view.php
index.php
install.php
lib/adminlib.php
lib/ajax/ajaxlib.php
lib/blocklib.php
lib/deprecatedlib.php
lib/javascript-static.js
lib/outputlib.php
lib/pagelib.php
lib/questionlib.php
lib/setup.php
lib/setuplib.php
lib/upgradelib.php
lib/weblib.php
mod/chat/view.php
mod/data/view.php
mod/lesson/view.php
mod/quiz/accessrules.php
mod/quiz/attempt.php
mod/quiz/attemptlib.php
mod/quiz/locallib.php
mod/quiz/review.php
mod/quiz/view.php
mod/resource/lib.php
my/index.php
tag/index.php
tag/search.php
test.php [new file with mode: 0644]
theme/anomaly/config.php
theme/custom_corners/config.php
theme/custom_corners/renderers.php
theme/standard/config.php
theme/standard/layout-home.php
theme/standard/layout-popup.php [moved from theme/standardwhite/layout.php with 83% similarity]
theme/standard/layout.php
theme/standard/styles_color.css
theme/standard/styles_ie6.css
theme/standard/styles_ie7.css
theme/standard/styles_layout.css
theme/standardwhite/config.php
theme/standardwhite/layout-home.php [deleted file]
theme/standardwhite/layout-popup.php [deleted file]
user/editadvanced.php