Commit Graph

59 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
tjhunt ac9e220734 admin settings/blocklib: MDL-19108 Error when saving any admin settings
Regression from MDL-19010
2009-05-08 02:43:06 +00:00
tjhunt b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +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 66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +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 830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +00:00
tjhunt ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt d7ab887938 moodle_page: MDL-14306 (part of MDL-12212) class name on body with ->category
If ->allowcategorythemes is set, includes all parent categories too
2009-05-06 08:46:48 +00:00
tjhunt ad5d5997ed moodle_page: MDL-12212 more ->pagepaths to kill 2009-05-06 08:43:51 +00:00
tjhunt f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
Jonathan Newman 4d933beb8a cvsimport fixups 2009-01-20 23:53:34 +00:00
skodak d4a1fcaf11 MDL-16613 sesskey cleanup 2009-01-02 10:36:25 +00:00
scyrma 2a68c5d9b9 MDL-16318: remove a few calls use_html_editor() (more to come) 2008-09-03 03:09:56 +00:00
skodak 294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak 1d8bf5f0ab MDL-14679 towards /admin conversion 2008-05-30 21:36:57 +00:00
skodak 9a7a785161 MDL-12714 no guest autologin for admin settings; merged from MOODLE_19_STABLE 2007-12-23 11:53:31 +00:00
skodak 220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +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
urs_hunkler 0dc89caf21 added clearfix to class settingsform to correct collapsing 2007-07-18 15:53:07 +00:00
urs_hunkler 939c95479b added/changed custom corners lib and calls to add the necessary divs 2007-05-09 14:39:13 +00:00
defacer 99571c3e85 Putting up a title and moving the heading to the top for consistency
with the 'setting up primary admin' screen.

Is it just me or does Moodle look REALLY awful during setup? :/
2007-02-23 04:08:55 +00:00
toyomoyo 86d345d5cd removing undefined variable 2007-02-13 01:54:25 +00:00
urs_hunkler ec3938f3d1 'added check if right column is empty - needed for round corners' 2007-02-07 08:22:20 +00:00
urs_hunkler e5afdd2710 'added felxible columns and round corner code' 2007-02-06 22:23:08 +00:00
moodler 53add79acf Added a surrounding div to make the form xhtml strrrrrict 2007-01-09 08:16:31 +00:00
skodak b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
moodler fb87a6192c Added skip link to admin page 2007-01-03 15:38:28 +00:00
skodak 56909d267f MDL-7749 fixed stripslashes when saving admin configuration values 2006-11-30 20:37:14 +00:00
skodak 9cdb766d61 Broken handling of magic quotes in admin settings and set_config in general MDL-7668 2006-11-27 08:44:38 +00:00
skodak 23a97d83e8 reverting moved $SITE reinitialisation into setting method, it was not a good idea after all; merged from MOODLE_17_STABLE 2006-10-16 08:54:37 +00:00
skodak 6192fd6860 fixed error message when empty site full or short name - moved $SITE reinitialisation into setting method; merged from MOODLE_17_STABLE 2006-10-16 07:54:22 +00:00
skodak b89639f9ef fixed error message when empty site full or short name; merged from MOODLE_17_STABLE 2006-10-16 07:37:41 +00:00
skodak e268cc4a5d moved header after the redirects and require_logout; merged from MOODLE_17_STABLE 2006-10-16 06:52:01 +00:00
moodler c6d33fce5b Merged fixes from stable 2006-10-12 03:31:48 +00:00
moodler 010b211f51 Fixes for naming of forms to make them XHTML compatible 2006-10-06 06:02:17 +00:00
moodler 15a169222b Some extra changes from the duplicate work I did on upgradesettings.php
main change is that adminsettings is now an ID on the form
2006-09-27 07:49:34 +00:00
skodak 6859360cd4 coverted /admin/ to proper /$CFG->admin/ in paths 2006-09-26 21:10:14 +00:00
moodler a06c8c2cd1 Fixed some width="*" in layout tables 2006-09-25 14:40:26 +00:00
moodler 14f358562d Fixed div around submit button 2006-09-25 08:44:22 +00:00
moodler afee986420 Updates for better CSS hooks 2006-09-25 08:20:14 +00:00
moodler fa040029f0 Fix the editor and the surrounding table for settings 2006-09-25 07:55:10 +00:00
skodak eef868d17d major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
moodler b1ce7811ad Fixed MDL-6479 by adding two block columns on admin pages.
Also we now hide the blocks and headers completely until $SITE is properly
defined.
2006-09-12 09:22:27 +00:00
skodak 55f3a4db69 removed useless "changes saved" messages from redirects in administration and user management 2006-09-11 18:56:41 +00:00
skodak fefea008bc fixed errors when switching dbsessions from amin gui 2006-09-10 11:15:31 +00:00
vinkmar 7f35bd73b4 removed hard-coded language strings (MDL-6448) 2006-09-06 02:20:16 +00:00
moodler 6ea5ff3ab7 Make Moodle Docs work for settings pages 2006-09-04 08:33:57 +00:00
skodak e9a207595c allow deleting of block when original code not present 2006-09-03 17:46:27 +00:00
moodler bee4702d10 Various tidying up of the admin pages.
Reports now don't need mod.php but they should include the admin headers/footers.

There are undoubtedly bugs in this but this framework should be more sane
2006-09-03 14:45:57 +00:00